Search found 10 matches

by npereira
Tue Mar 25, 2003 3:07 pm
Forum: PHP coding => Images
Topic: ImageCreateFromJpeg
Replies: 2
Views: 1887

Then, can someone help me convert this script to use NetPBM binaries instead? I don't know where to start. <? // // MonAlbum // version 0.1 // author: Nelson Pereira - www.npereira.com // //Vous pouvez configurer ces parametre // // DEBUT DE SECTION PARAMETRABLE $mon_album = "Album créer par le...
by npereira
Tue Mar 25, 2003 1:31 pm
Forum: PHP coding => Images
Topic: ImageCreateFromJpeg
Replies: 2
Views: 1887

ImageCreateFromJpeg

What release is needed from PHP for this to work? My ISP has Release 4.0.6 and I keep getting the error: Fatal error: Call to undefined function: imagecreatefromjpeg() What should I replace the imagecreatefromjpeg with so that it works correctly? Thanks in advance for your reply.
by npereira
Tue Mar 25, 2003 8:25 am
Forum: PHP coding => Images
Topic: functions of GD and netpbm
Replies: 2
Views: 1838

Well, howcome i'm getting this error:

Fatal error: Call to undefined function: imagecreatefromjpeg() in /usr/local/psa/home/vhosts/lesharfangsdegatineau.com/httpdocs/photo/photo.php on line 72


Thanks

NPereira
by npereira
Tue Mar 25, 2003 7:28 am
Forum: PHP coding => Images
Topic: functions of GD and netpbm
Replies: 2
Views: 1838

functions of GD and netpbm

Hi all, I have a script that uses the 'imagecreatefromjpeg()' although, I think this is a function of GD version 2.0 or higher. Myprovider does not have GD 2.0, (1.6 or 1.8 or something). Is there an easy way to switch to netpbm instead? Here is the script. while ($currfile = readdir($handle...
by npereira
Mon Mar 24, 2003 7:36 am
Forum: PHP coding => Images
Topic: change default path to upload_tmp_dir
Replies: 0
Views: 1462

change default path to upload_tmp_dir

Hi all, I have my website hosted on a server and cannot make configuration changes. When getting the phpinfo.php, it shows that I have open_basedir restrictions on /usr/local/psa/home/vhosts/lesharfangsdegatineau.com/httpdocs The problem is that I use a script for photo upload, and they upload the f...
by npereira
Sun Mar 16, 2003 6:24 am
Forum: mySQL & php coding
Topic: Need help with error in a php file
Replies: 1
Views: 1126

Need help with error in a php file

Here is the error: Warning: Division by zero in /usr/local/psa/home/vhosts/lesharfangsdegatineau.com/httpdocs/include/fonctions.php on line 87 Here is the functions.php lines file: // Index de la page **Line 87** function navIndex() { global $total, $deb, $max; if ($total > 0) &...
by npereira
Thu Jan 16, 2003 12:57 pm
Forum: PHP coding => General
Topic: Calling environment variable from
Replies: 4
Views: 1393

Nice fix I saw your post, but I didn't know how to fix it.. This function is new for me, but now not anymore. Where did you find it?? I can't find any reference.. I guess it gives the relative path from the root directory. ThanX for sharing! ;) I looked around the net and on the PHP manual (got the...
by npereira
Wed Jan 15, 2003 6:14 pm
Forum: PHP coding => General
Topic: db record as drop down menu selection
Replies: 1
Views: 921

db record as drop down menu selection

How can I do this? Here is my code; This part is to delete a link in the db, but you need to know the name of it (It would be better if you could choose from a list that is in the db); <? include "inc/loader.php"; ?> <HTML> <BODY> <form method="post" action="dellink.php"...
by npereira
Wed Jan 15, 2003 5:20 pm
Forum: PHP coding => General
Topic: Calling environment variable from
Replies: 4
Views: 1393

Found a fix. Thought I would post here in case someone else asks.

What I did is just replace

Code: Select all

$filename = "/home/e-smith/files/primary/html/$content->effect.txt"; 


With

Code: Select all

$filename = $DOCUMENT_ROOT/$content->effect.txt"; 


Thanks anyway,

NPereira
by npereira
Wed Jan 15, 2003 4:08 pm
Forum: PHP coding => General
Topic: Calling environment variable from
Replies: 4
Views: 1393

Calling environment variable from

Here is my code: <? include "inc/loader.php"; $query = "SELECT * FROM ".DB_PREFIX."_intro"; $content = mysql_fetch_object(mysql_query($query)); $filename = "/home/e-smith/files/primary/html/$content->effect.txt"; $success = @unlink($filenam...