Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Curiosity PHP3 And Win95 (Image Functions)


When attempting to use PHP's image functions, Win95 "PWS4" PHP3 returns an error message.

It states:
Fatal error: Unable to open c:WEBSHAREWWWROOT/php3/circle.inc.php3 in - on line 0
No input file specified.

Of course, if I set it to "not be" an include file, I get a different error, which states that the function is not supported..

Is PHP incapable of rendering "gif" functions
on Win9x? Or.. is there a library missing perhaps?




View Complete Forum Thread with Replies

Related Forum Messages:
PHP4 Functions In PHP3
An error in my configuration-file (probably) in PHP4 installed by EasyPHP makes it neccesary to use PHP3 local. And therefore, some functions are unavailable.

Who knows a proper function for array_shift and in_array?
Somebody gave me something, but it doesn't seem to work very good:

<?
function in_array($needle,$haystack)
{for($i=0;$i<count($haystack) && $haystack[$i] !=$needle;$i++);
return ($i!=count($haystack));}
function array_shift($array) {
$value_from_beginning=$array[0];
for($i=0;$array[$i];$i++) {
$array[$i]=$array[$i+1]; }
unset( $array[$i] );
return($value_from_beginning); }?>

View Replies !
Installing PHP On Win95?
I'm successfully running PHP 4.3 on Win2000 on my desktop but my laptop is running Win95 and I noticed from the PHP site that PHP 4.X is not supported on Win95 (I actually noticed that after I tried to install it anyway!).
I am not able to upgrade my OS on the laptop as it's a company one so what can I do?
I tried installing PHP 3.0.17 and it doesn't complain about anything but it doesn't resolve the PHP code in the browser, it just displays the code as part of the source.
I'd prefer to use PHP 4.X since that's what I have on the desktop but it complains about a dll called KERNAL, I think it exists but is not the one it expects.

View Replies !
Curiosity (ini Variable) Upload_max_filesize
I've been toying with this variable today, and I noticed the manual doesn't appear to address the use of "M".. which in my copy of PHP 404 the ini uses 2M to indicate 2 mega bytes.. or (2 * pow(1024,2)).

So my question is really this.. does PHP, since it appears to know that M is a meg.. by this thinking I deduce that it understand "G", "T", "K" and "B"?

i.e. GigaByte, TeraByte, KiloByte and Byte?

Thereby meaning that if you wanted to set
upload_max_filesize to say, 2G php would know to allow a 2 Giga Byte file upload.. (note, I understand that in order to process a file of the example size, other elements of the ini would have to be accommodated, such as memory_limit, max_execution_time, and post_max_size).

View Replies !
Image Functions In Php?
I have seen some images (banners.etc) that have a src like
<img src='http://url/file.jpg?bla=bla&blabla=blah'> im assuming that the src isnt really an image but a script that echos out an image. my question is, on the server. the file extension is jpg... do u make your script executable and give it a jpg extension or what? how does on accomplish this?
also, could anyone point me in the direction of a server that supports the image functions in php? i currently am storing my scripts at http://hobbiton.org where they have php installed as a cgi. but with no image support...they provide 50mb free... so this is a pretty good server.

View Replies !
PHP Image Functions
Could anyone throw some light on the following questions, please?

1) How can I add a hyperlink to an image file generated using GD
library?
For eg., I'm using ImageString(...) function to add text to a JPEG
image. I want to make that text an hyperlink.

2) How do I insert another gif/jpeg image into an image generated using
GD library?
For eg., I've the following code......I want to include "test.gif" into
the generated JPEG (something like <img src=''> in html)

header("Content-Type: image/jpeg");
$c = ImageCreate($cw, $ch);
:
:
ImageFilledRectangle(....)
ImageRectangle(....)
ImageString(....)
:
:
ImageJPEG($c);

View Replies !
Image Functions?
I am trying to make a script that will edit every image on a webpage to be transparent.

I already have a function that will make 1 image transparent if I pass it on the address bar, but that's not what I want.

Is there any easy way for me to go through every image in a particular page and apply image functions to all images? I would like it to be usable on all pages in the domain...

View Replies !
Image Functions
why i am getting the following error when all of the other php functions are working.
Fatal error: Call to undefined function: scaleimage() in /usr/home/prescrip/public_html/mdsapp/pharmagroup/labelbuffer.php on line 8

<?php
// File and rotation
$filename = '/usr/home/prescrip/www/mdsapp/pharmagroup/labels/456326589.png'
// Content type
//header('Content-type: image/png');
// Load
//$source = imagecreatefrompng($filename);
$source = scaleImage(550,400,$filename, $quality=50);
// Rotate

$ro = imagerotate($source, 90,0);

imagedestroy($source);
.............................

View Replies !
Image Manipulation Functions
I've read that PHP has image manipulation functions. How far do these functions go?

Can I edit an original PSD (photoshop) file and place certain things on certain layers and then save it as a gif/jpg? I have nav buttons that I wish to dynamically create and was wondering if php can do this.

View Replies !
Image Processing In Functions.
I have script (main.php) that calls a secondary script (image.php)
that produces a graphic. The invocation in main.php is like this...

print "<img src=" . chr(34) . "image.php?option=$draw" . chr(34) . ">"

What I would like to do is incoporate all the code contained in
image.php into my main.php as a function. As it currently stands if I
do this, I get an error message saying that the headers already sent.

View Replies !
Functions To Upload An Image
I am using the following functions to upload an image, and store it to the database. the format for the image in database table is mediumblob. PHP Code:

View Replies !
Image Functions: Date?
I remember once coming across a bit of php code that displayed the
"created" date of a jpeg image. I cannot find it, and I cannot find
anything related to that in tfm. Can someone give me a push in the
general direction? ...

View Replies !
Using The Image Library Within Functions
I have a form checking class I wrote and im currently writing a method that creates a captcha image, but im relatively new to the image library. Every way ive seen a captcha made it uses a seperate file, is it possible to create the image using a method. Heres my current method, its entirely a work in progress. Code:

View Replies !
PHP Image Functions Don't Allow Me To Use Print()
I made a poll which takes the user's vote and turn it into a pie graph. Everything works fine except when I wanted to print the poll question on top of the pie graph, it doesn't let me do it. I understand this is due to the header function: header("Content-type: image/jpeg");

which i must pass through the page first before anything is passed. So I put the header function the first thing on the page, then put some print() functions the end of the page. But it still doesn't allow me to print anything. Is it just not possible to use print() when I use those image functions?

View Replies !
Use Php Image Functions ( Imagejpeg();
It would like to know when I use php image functions ( imagejpeg(); , etc) what consumes of the server.

View Replies !
Image With Functions And Font Face.
does anybody know how to change font-face in Arial,Verdana etc. when i'm
using image-functions of PHP?

Font-Size is clear to me...
$fontSize=2
imagestring($im, $fontSize, $px, 34+($i*1.2), $line, $orange);

View Replies !
How All The Image Manipulation Functions Work.
I'm trying to figure out how all the image manipulation functions work. here's the code I've got so far: PHP Code:

View Replies !
Image Functions With Blobbed Images
I have Mysql database with among other things a table with blobbed images. Now, I would like to use the function getimagesize to get the size specification of the images stored in the database. I have tried getting this to work but it seems this function won't work with "blobbed" images.

View Replies !
Image Functions Take Up Much Server Resources?
Do PHP image functions. such as resizing, adding text, sharpening, and quality settings - take up much server resources? I'm working on a PHP image gallery and so far it creates thumbnails, puts copyright info onto images and sets the quality of the images as the images are viewed, the images are then destroyed after. I might also add PHP sharpening. But if PHP requires lots of server resources to manipulate images I will leave out the sharpening.

View Replies !
Get The Type Of A Image Without Exif Functions
I only know how to get the image type with exif functions exif_imagetype() is there any other way to do it?

View Replies !
Secure Image Uploader With A Few Functions
I'm trying to construct an Image up-loader, and looked at a few scripts all which are far from what I need. Now I'm trying to get an up-loader that will eventually do this:

Check maximum file size (say 20kb)Check file types, and only allow gif, jpgRe size the image to (150 x 150). (if possible compress image were needed.)And add a 2px black border to the image. (Not really needed now, maybe something to add on)Have it secure?

(don't know what I need to do here?)Then rename the image then upload it to a directory
How would I go about doing this? Ive looked at some php sites, unsuccessfully, so what I really need is a script that is simple and secure that I can learn of off.

View Replies !
Printer Functions And GD Created Image (Windows)
I have created an image using GD lib and now I would like to print it
using the Printer functions (on Windows XP). Does anyone know how to
write the image in memory to the printer (I assume I can use the Printer
functions)?

(Is there a method that involves saving it as a file first?)

View Replies !
Memory Leak - Possibly Image Functions
This one is tough. My PHP script slowly eats away at the memory until it finally crashes because it has used too much memory. I have spent hours looking over the code and I cant figure it out. Does anyone see where I could be leaking memory? Here are all of the functions that might be causing the problems: Code:

View Replies !
Draw The Pixels [the Functions], And Save The Image
How would I go about creating a script that takes a POST variable
like: test.php?point=1,1,2,2,3,3,4,4,5,5

Get the array of that, then make a loop that starts by taking the first two, makes a pixel there, then the second two, etc?

I know how to do all the array stuff, I just need to know how to make the image, and draw the pixels [the functions], and save the image....{I don't know how imagecreate() works...but I know it exists...and all I need is black pixels with white BG}

View Replies !
GD Functions - Creating A "Simple" Image
I want to create a "simple" square image at a variable height & width.. the image would be either transparent or perhaps use a background color.. And contain a "number" positioned in the top left corner maybe like:

-----------------
- 1 -
-----------------

Like I said "simple".. since I've yet to look into this, and I've yet to work with the gd library.. I'm wondering if someone can point me to some "examples".. Or perhaps, you already have a function to do just that..

I'm starting to work on a little calendar function, which I've written already.. I basically want to make it a little "schedular" app.. I want to create the image for an "onclick" event.. which opens a "view" of the selected day(s) event(s)...

The image will give those (who use those "ancient" browsers) something to click on.. since some older browser do not support "onClick" event assigned to a table cell.

View Replies !
Using SSI CGI In PHP3
I have my site in .php3 and I am getting some CGI files. They are counters, polls and date information. Also stat information for graphs and such. My problem is that every CGI I get it says to put in the SSI code:

<!--#exec cgi="/cgi-bin/sigfigdate.cgi"-->

Well, it don't work in PHP3. Is there a way to make SSI CGI work in my PHP3 document?

View Replies !
Php3.cgi And Php3.ini
I'm working with a web host that runs PHP3 by php3.cgi and don't have access to php3.ini but I need to modify the setting for upload_max_filesize. The exact version of PHP is 3.0.9.

Is there anyway to override the value for just my program? And can someone explain to me what the difference is between the master and local settings displayed by phpinfo()? Does 'master' refer to compile time settings and 'local' the values set by php3.ini?

View Replies !
Php3 With Php-4.0.5
I have an index.php3 file and when itry and view it i am prompted to download it
4.0.5 is installed?

View Replies !
PHP3 And PHP 4
What is the difference between PHP4 and PHP 3? I tried the codes from a book which is based on PHP 3 on PHP4..but unfortunately it doesn't work? what should i do?

View Replies !
PHP3 And PHP4 Together
I'm a little new to the PHP thing. I want to try to setup my server to handle PHP3 and PHP4 requests easily. e.g. I have some scripts that are PHP3 and want to start learning PHP4. Instead of doing the simple (like anything I do is simple URL ) thing, I am attempting to set up apache to support MySQL, PHP3, PHP4, SSL, ColdFusion, SteelBlue, and maybe even Frontpage.
Tell me I'm insane.
Now I have read the "Soothingly Seamless" setup from the website, and had it mostly working, until some unforseen circumstances caused me to have to start over.
I can set up Apache to use PHP4, MySQL, and SSL, but for those PHP3 scripts, I am a bit lost.
Finally, my question. Is there a simple way (using the Sootingly Seamless page as a reference) to add PHP3 into the mix. Any help on this would be great!

View Replies !
PHP3 Or PHP4
I am starting to write some scripts. Now should I wait until PHP4 documentation and tutorials arise and write in PHP4, or should I just do everything in PHP3? I have a book on PHP3 and I want to know if the language has changed enough to make this book invalid. Thanks. Any clear input is appreciated.

View Replies !
Reauthentication In PHP3
I´m trying to reauthenticate users using PHP3 but variables like PHP_AUTH_USER can´t be unset. The only I have achieved is to obligue the user to change his name or his password using the Hidden element. However, if he doesn´t change anything the dialog box pops up until the Cancel button is pressed.

Is possible to define variables like PHP_AUTH _USER that last until the session is closed? If not, is possible to reauthenticate?

View Replies !
Access And PHP3?
Is it possible to use a MS Access database with php3?
If "yes" any help how to begin?

View Replies !
How To Do Paging In Php3
I want solution for how to implement paging concept in php3.If any one have solution for that please give me the solution for that.

View Replies !
Php3 On Redhat 6.1
I have never tried to get php3 to work on my home Linux PC until now. I am running Redhat Linux 6.1. Apache and PHP3 are both installed, but I don't think that they are configured by default. I haven't been able to find any information on-line specifically for this setup.

View Replies !
Filemaker Pro & Php3
Does anybody have experience with filemaker pro and php. I'm currently running a mysql database with php3 but a client of mine wants to use his filemaker pro database. So what problem may I expect?

View Replies !
Netscape And PHP3
when i search for data in MySQL and then create a link of the data returned to another
page so users can click on the link and then edit the data associated with their selection, thats were Netscape fails to pass the data to the next page so when users click on the links nothing comes up except if they are using IE 4.0+ which passes the data with no plroblem. i already tried the forms in HTML and PHP but wiht no success.

View Replies !
Uninstall Php3?
I want to install a php4 rpm, but it says I have php3 installed already and to uninstall it. I did a search and the only thing I found was that I should delete all the php stuff I can find. I *think* it was installed binary style, not with an rpm. If I do it this way, should I edit any conf files also? Please help as I can not find anything on how to remove a binary installation!

View Replies !
Users IP On PHP3?
I have a project and PHP 3.0.12 is installed...rediculous I know, but its
not my fault.

what is the syntax for getting the visiting users IP? Nothing I try seems to
work.

View Replies !
PHP3 + MySQL
I'm trying to design a form using PHP3 which will only print results should their be information in the appropriate column in MySQL. I thought the syntax was something like this, but to no avail.

if ($row["column"] == [A-Za-z]){
print ("This column is full")
} else {
print ("This column is empty")}

Explanation: If there is text in the column, print "The column is full", otherwise, print "The column is empty".

View Replies !
PHP3 & Flash 4
Anyone know how to use PHP3 $variables in a flash4 movie?

View Replies !
Changing Php3.ini !!
I need to enable magic_quotes_gpc. I have learned to get to php3.ini through FTP, have changed it's value, and uploaded the file again. However, the value does not seem to change. I am running a dedicated server, and have attempted to reboot the server. Any ideas to why the settings won't change? Could permissions be a factor?

View Replies !
.php Parsed But Not .php3?
can somebody tell me why my web server will parse .php files but not .php3 files? heres all the stuff in my httpd.conf.. Code: AddModule mod_php4.c

<IfModule mod_dir.c>
DirectoryIndex index.html index.shtml index.php index.php3
</IfModule>

AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

is there anything i'm missing? .php3 files just show up as plain text my web browser but .php files get parsed and displayed.

View Replies !
.php Or .php3 Or .php4
With the advent of php4, which extension should we use. A lot of php3 pages use the .php3 extension, but by deafault the extension in the apache httpd.conf is .php. Should we just adapt .php4 or use .php to make sure future upgrades don't cause any issues with already existing code. I would welcome any thoughts.

View Replies !
UPLOAD WITH PHP3
I've built a form for uploading a user file, it works for sure, and PHP3 is even telling the name of temporary file in specified directory - BUT there's no such file there! And I can't find it any where in the system. I'm using Apache 1.3 on Linux RH 6.0 Hedwig.

View Replies !
Links In Php3
echo "<a href="link.htm" onMouseOver="window.status='Hie , I am Wallace ' return true ">Home</a><p>"; This script works fine in html page but when I put it in a php3 page an error message appears in the status bar .

View Replies !
Sessions In PHP3
I am trying to avoid recreating the wheel in developing a session object. Essentially, we want a session object that stores all of teh information we are collecting in a session table in the dbase. We want to store only the session ID in a cookie.

View Replies !
Php3-error
ive got php-4.3.9-3 on my fedora3....tried installing
phptimesheet-1.2.4.tar.gz on my system..extracted the folder to
document root of apache2..all the files of the timesheet have php3
extensions...

php is working fine on my sys but php3 is not interpreted...when i go
to //localhost/timesheet/timesheet.php3...i can see the source code of
the page like...
<?............................
...................................?>

ServerTokens OS

ServerRoot "/etc/httpd"

PidFile run/httpd.pid

Timeout 120

KeepAlive Off

MaxKeepAliveRequests 100

KeepAliveTimeout 15

<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>

<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

Listen 80

LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so

View Replies !
PHP3 And Define()
I know this might be an odd question, but does PHP version 3 support the define() function?  What little PHP 3 documentation I have doesn't seem to contain the function, but I would think PHP 3 would support constants.  I realize that upgrading and using PHP 4 and PHP 5 would give me the define() function, but that's not what I'm looking for, just the answer to this specific question.

When the manual says, "PHP 4, PHP 5" and excludes "PHP 3" it's not always accurate, as there are many functions supported by PHP 3 not listed in the current manual.

View Replies !
Php3 Files
When I run localhost/info.html with the code

<?
phpinfp();
?>

This is running perfect but when I do the same with localhost/info.php or /info.php3 , it says the file is not found. I have checked all the possible mistakes. My apache config file has these lines

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .html
Action application/x-httpd-php "/php/php.exe"

View Replies !
DBM Functions:: Undefined Functions Error
I have been trying to use the DBM Functions (dbmopen etc) in php but always get an undefined funtion error. Do I need to load something or change something in the .ini file to get it to work?

thanks
MIke

View Replies !
File System Functions &amp; FTP Functions
I guess what I am really after is more of an explaination to what are the differences between the two sets. The manual really does a piss-poor job of explaining things sometimes. Some miss the 'introduction' completely Either way, I tried google and a search before I posted but here I am.

View Replies !
.phtml Vs .php3 Vs .html
I'm looking for some advice about the pros and cons of different file name extensions for html/php documents. I'm working from the basic premise that it's not a good idea to keep changing the extension of a file because, for example, those hard-earned search engine references will be compromised if you change the name of a file in any way.

It would seem shortsighted to give a php document a .php3 file extension since php4 is just around the corner. So I tend to prefer naming any document containing any version of php with the generic extension of .phtml. However, I could go the whole hog and give all my web page documents an extension of .html - whether or not they include php. But, as I understand it, the price I pay is that non-php code must now go through the php parser regardless, thereby (marginally) slowing down access to those pages. Is that a big overhead?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved