[PHP] cookie problem....

2003-02-13 Thread Terry Lau
Hello, I created a PHP page that included cookie, here is the PHP code: ?php if (isset($HTTP_POST_VARS['Name'])) { setcookie(Name, $HTTP_POST_VARS['Name'], time()+86400*10); } html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=big5 /head body form

php-general Digest 13 Feb 2003 08:07:17 -0000 Issue 1880

2003-02-13 Thread php-general-digest-help
php-general Digest 13 Feb 2003 08:07:17 - Issue 1880 Topics (messages 135350 through 135395): Re: Passing PostgreSQL resource 135350 by: Joshua Moore-Oliva 135351 by: Joshua Moore-Oliva Re: php javascript drop down menu??? 135352 by: Jeff Bluemel Re: setcookie on

Re: [PHP] when is OOP a good choice?

2003-02-13 Thread SLanger
Hello There isn't an easy answer to this but I guess the most important thing being that it is easier to maintain in big projects and this makes it more robust since you can test in a more modular way. Also it makes it easier to reuse code also this seems to be one of those urban legends. At

[PHP] PHP mail function From header not working

2003-02-13 Thread Marco Alting
When I try to use a php script, to send an email, the From header is replaced by a senders email address of my provider. Is there any way to make it so my email address shows up in the From header? In the script I used fake addresses, because of client privacy reasons... ? $email = [EMAIL

Re: [PHP] Confirmation e-mail

2003-02-13 Thread Krzysztof Dziekiewicz
I am developing a website with a user login system, i would like to send an confirmation e-mail to the user when he/she registers for the site, asking for confirmation...for instance click on a link to activate thier account. My question is what would be the best approach to achieve this? How

Re: [PHP] Newbie php.ini

2003-02-13 Thread Krzysztof Dziekiewicz
Thursday, February 13, 2003, , wrote: In my opinion php.ini is the least problem. Appache configuration is also important. You must secure your server, switch off unused ports. There is no default security configuration because it depends on the whole system. I'm completely new to php but am

[PHP] File handling

2003-02-13 Thread Kenneth Suralta
How do i delete all file in a directory??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] File handling

2003-02-13 Thread Tony Crockford
How do i delete all file in a directory??? You could use a function like this: (html code at end) function delFiles($filter, $sDir) { $cDirectory = includeTrailingSlash($sDir); $handle = opendir($cDirectory); while ($file = readdir($handle)) { if ($file == '.' ||

Re: [PHP] restricting access to files using PHP

2003-02-13 Thread Shams
Ooops, I didn't mean to post my question a number of times! Just that my message didn't appear (in Outlook Express), so I reposted it. Thanks to everyone who replied. I'd rather not convert .HTML files to .PHP files because there are other files in the members area that I also wish to protect

Re: [PHP] File handling

2003-02-13 Thread Kevin Waterson
This one time, at band camp, Kenneth Suralta [EMAIL PROTECTED] wrote: How do i delete all file in a directory??? bit ugly but... function del_dir($dirname) { $dh = opendir($dirname); while(false !== ($file = readdir($dh))) { if($file != '.' $file != '..') {

[PHP] mail question

2003-02-13 Thread Jonas Geiregat
is it possible to do something like mail([EMAIL PROTECTED],subject,hello if($a){ return andreas; }); or what would be the best solution for this ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: File not rewritable - why? Help needed.

2003-02-13 Thread Marek Kilimajer
If the file does not exists, the web server needs write priviledge to the directory where you want to create it. Paul Dunkel wrote: Marek Kilimajer wrote: use chmod 755 directory on each directory that is in the way to your file I tried that, too. Didn't help. Here is the code, stripped

[PHP] Best way to create a preference-file?

2003-02-13 Thread Victor Spång Arthursson
I would like to create a file that holds the preferences for a site, for example the name of the database, the size of thumbnail pictures etc… But which is the best way to do this and to access the file? It would be nice with an xml-file, but perhaps it is an overkill… Anyway it must be

Re: [PHP] restricting access to files using PHP

2003-02-13 Thread Justin French
on 13/02/03 9:19 PM, Shams ([EMAIL PROTECTED]) wrote: Also, is there no way I can allow a user to login using a PHP login script, and then pass the username and password over to .htaccess to verify ? Just use .htaccess for the whole lot Justin -- PHP General Mailing List

[PHP] How can I have PHP set the linux system date/time?

2003-02-13 Thread Daevid Vincent
Yep, I am trying to have a php web page change the linux system date/time, but obviously running into the snag that /bin/date, while chmod 775 doesn't allow a user to set the date/time. Why is that, given the permissions? Sure it makes sense, but it's annoying. Ideas on how to circumvent this

[PHP] Re: Best way to create a preference-file?

2003-02-13 Thread Mark Harwood
What about an .ini file? http://www.php.net/manual/en/function.parse-ini-file.php If you want read/write from php, try a searching http://www.phpclasses.org/ for inifile. Mark Victor wrote: Victor spång arthursson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] IIS

2003-02-13 Thread Jason Wong
On Thursday 13 February 2003 13:06, Joe Njeru wrote: I'm using IIS on win2k. Well done. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development *

[PHP] counter question

2003-02-13 Thread electroteque
hi guys i am trying to increment a counter echoed out to the screen to be used for flash for ($i=0; $i 10; $i++) { //$string = $i; echo varText=$i; flush(); ob_flush(); sleep(1); } i cant seem to get each one out at a time , it will go through it then output at the end ?? -- PHP

Re: [PHP] How can I have PHP set the linux system date/time?

2003-02-13 Thread Marek Kilimajer
You need root priviledges, that means /bin/date must run as root. You can use sudo Daevid Vincent wrote: Yep, I am trying to have a php web page change the linux system date/time, but obviously running into the snag that /bin/date, while chmod 775 doesn't allow a user to set the date/time. Why

[PHP] implement gpgext

2003-02-13 Thread Ermelir
hello everybody, I'm very interesting in using gpg to encrypt my mails in my php script. so I have download the gpgext file http://www.sourceforge.net/projects/gpgext/ but I don't understand how use it? I suppose that I must inform my php.ini that I want using this librairy, but I don't

[PHP] Parsing CSV with parameters?

2003-02-13 Thread Leif K-Brooks
I'm trying to parse CSV data with parameters, i.e. foo(something),bar(something),something(foobar). Any suggestions on doing this, hopefully with some way to escape )s in the parameters? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will

[PHP] Re: mail question

2003-02-13 Thread Simon
Jonas Geiregat wrote: is it possible to do something like mail([EMAIL PROTECTED],subject,hello if($a){ return andreas; }); or what would be the best solution for this ? i dont think that anybody understand this... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] counter question

2003-02-13 Thread Marek Kilimajer
You might still have a buffer at apache or system level, you can try to output spaces or coments, but I'm not sure something like this is possible in flash electroteque wrote: hi guys i am trying to increment a counter echoed out to the screen to be used for flash for ($i=0; $i 10; $i++) {

[PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
After upgrading to MySQL 4.0.1.2 I ma getting the message : Fatal error: Call to undefined function: mysql_connect() in /home/penpals/pub/mysql.php on line 3 Please help my production server is down! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Parsing CSV with parameters?

2003-02-13 Thread Marek Kilimajer
fgetcsv() - for reading the file str_replace('(', '\(', $string) - for escaping )s Leif K-Brooks wrote: I'm trying to parse CSV data with parameters, i.e. foo(something),bar(something),something(foobar). Any suggestions on doing this, hopefully with some way to escape )s in the parameters?

RE: [PHP] How can I have PHP set the linux system date/time?

2003-02-13 Thread Daevid Vincent
I'm not sure what I'm doing wrong... In changetime.php: $binDate = date (mdhiY, mktime($hour,$minute,0,$month,$day,$year)); $execString = /usr/bin/sudo /bin/date .$binDate.BR; //echo $execString.BR; exec($execString); And then in /etc/sudoers: nobody

[PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
Just so you know, MySQL is working. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing CSV with parameters?

2003-02-13 Thread Leif K-Brooks
Thanks, but you totally misunderstood me. I'm not looking to get normal CSV data (as in foo,bar,foobar), I'm looking to get CSV data with parameters and get each piece of data and its parameter. For example, I have a string something like foo(data),bar(data),foobar(data). I need to get each

Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Kevin Waterson
This one time, at band camp, Vernon [EMAIL PROTECTED] wrote: After upgrading to MySQL 4.0.1.2 I ma getting the message : Fatal error: Call to undefined function: mysql_connect() in /home/penpals/pub/mysql.php on line 3 hmm, did you install from RPM?? Kevin -- __

RE: [PHP] counter question

2003-02-13 Thread Dan Rossi
i mean can u output the counter to the screen with php ? like 1 wait a few seconds 2 wait a few more seconds 3 etc .., atm it will go through the loop first then output -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 11:12 PM To:

Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
Yes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail question

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 18:53, Jonas Geiregat wrote: is it possible to do something like mail([EMAIL PROTECTED],subject,hello if($a){ return andreas; }); or what would be the best solution for this ? Try it. I would prefer: if ($a) { $name = 'andreas'; } else { $name = ''; }

Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Jason Wong
On Thursday 13 February 2003 20:12, Vernon wrote: After upgrading to MySQL 4.0.1.2 I ma getting the message : Fatal error: Call to undefined function: mysql_connect() in Search archive on the above. Please help my production server is down! If it's critical shouldn't you test all upgrades

Re: [PHP] counter question

2003-02-13 Thread Jason Wong
On Thursday 13 February 2003 20:23, Dan Rossi wrote: i mean can u output the counter to the screen with php ? like 1 wait a few seconds 2 wait a few more seconds 3 etc .., atm it will go through the loop first then output In theory yes. But it depends on your webserver. Search the archives.

[PHP] Char check

2003-02-13 Thread Fredrik
Hi I want to check if $var is a char or an int. Freddy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Char check

2003-02-13 Thread Jason Wong
On Thursday 13 February 2003 20:38, Fredrik wrote: I want to check if $var is a char or an int. manual Variable Functions -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development *

[PHP] Unit-testing PHP code

2003-02-13 Thread Karl Traunmueller
Hi all, I've written some small Web applications with PHP and I like it. Since I'm accustomed to thinking OO, I was using the object-oriented language features. This worked quite well, giving a reasonably clean design. However, as with all software projects beyond a certain scope, things start

Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
This is not helping me. I know very well that I should not and I tried the upgrade on two other machines and all went wll. My problem still stands and a search does ntohiong but tell me to check that the path is correct. If it worked before then obviously the path is fine, unless something has

Re: [PHP] How can I have PHP set the linux system date/time?

2003-02-13 Thread Marek Kilimajer
$execString = /usr/bin/sudo /bin/date .$binDate.BR; ^ I believe the problem is here Daevid Vincent wrote: I'm not sure what I'm doing wrong... In changetime.php: $binDate = date (mdhiY, mktime($hour,$minute,0,$month,$day,$year));

[PHP] Re: PHP mail function From header not working

2003-02-13 Thread Lee W
Marco Alting [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... When I try to use a php script, to send an email, the From header is replaced by a senders email address of my provider. Is there any way to make it so my email address shows up in the From header? In

Re: [PHP] Parsing CSV with parameters?

2003-02-13 Thread Marek Kilimajer
Then use (after fgetcsv) preg_match_all to get your data and parameters. It is a bit more difficult so I won't give an example Leif K-Brooks wrote: Thanks, but you totally misunderstood me. I'm not looking to get normal CSV data (as in foo,bar,foobar), I'm looking to get CSV data with

[PHP] Re: PHP mail function From header not working

2003-02-13 Thread Lee W
Marco Alting [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... When I try to use a php script, to send an email, the From header is replaced by a senders email address of my provider. Is there any way to make it so my email address shows up in the From header?

Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Marek Kilimajer
What are apache logs telling you? Vernon wrote: After upgrading to MySQL 4.0.1.2 I ma getting the message : Fatal error: Call to undefined function: mysql_connect() in /home/penpals/pub/mysql.php on line 3 Please help my production server is down! -- PHP General Mailing List

Re: [PHP] counter question

2003-02-13 Thread electroteque
ahuh Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thursday 13 February 2003 20:23, Dan Rossi wrote: i mean can u output the counter to the screen with php ? like 1 wait a few seconds 2 wait a few more seconds 3 etc .., atm it will go through

RE: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Mark Charette
-Original Message- If it worked before then obviously the path is fine, unless something has changed. Obviously something changed if it worked on 2 other servers. Check all your logs. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
For some reason I do not see any error logs for today. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
I think the point is here that I can connect with a MySQL client, so MySQL is running. I cannot however connect using PHP. What would cause this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Jason Wong
On Thursday 13 February 2003 20:42, Vernon wrote: This is not helping me. I know very well that I should not and I tried the upgrade on two other machines and all went wll. My problem still stands and a search does ntohiong but tell me to check that the path is correct. If it worked before

Re: [PHP] cookie problem....

2003-02-13 Thread Jason Wong
On Thursday 13 February 2003 16:07, Terry Lau wrote: Hello, I created a PHP page that included cookie, here is the PHP code: ?php if (isset($HTTP_POST_VARS['Name'])) { setcookie(Name, $HTTP_POST_VARS['Name'], time()+86400*10); } [snip] But when I called the cookie variable in another

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Marek Kilimajer
try ldd /usr/lib/php4/mysql.so Vernon wrote: I think the point is here that I can connect with a MySQL client, so MySQL is running. I cannot however connect using PHP. What would cause this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] cookie problem....

2003-02-13 Thread Marek Kilimajer
This cannot be the problem, session_start is for sessions Jason Wong wrote: On Thursday 13 February 2003 16:07, Terry Lau wrote: Hello, I created a PHP page that included cookie, here is the PHP code: ?php if (isset($HTTP_POST_VARS['Name'])) { setcookie(Name, $HTTP_POST_VARS['Name'],

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
I'm sorry I have no idea what that means. Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... try ldd /usr/lib/php4/mysql.so -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Marek Kilimajer
Sorry, this is a shell command, you need to log in to your server. Also I'm not sure about the path, it could be different on your system. This command should print you something like libmysqlclient.so.10 = /usr/lib/mysql/libmysqlclient.so.10 (0x4000b000) libc.so.6 =

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Francesco Leonetti
it happened to me something pretty similar when I upgraded to mysql 3.23.54a. While solving the problem, I suggest to uninstall mysql 4.0.1 and reinstall your previous working version (unless there's a real urge to upgrade to 4.0.1) and then try to upgrade to a devoloper server reinstalling not

[PHP] Re: Unit-testing PHP code

2003-02-13 Thread Mark Harwood
Check out. http://www.phpbuilder.com/columns/reiersol20030126.php3 http://pear.php.net/manual/en/packages.phpunit.tutorial.php Mark Karl Traunmueller [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I've written some small Web applications with PHP

Re: [PHP] restricting access to files using PHP

2003-02-13 Thread David T-G
Shams -- ...and then Shams said... % ... % I'm interested in your solution David, what is the format of the external % auth script that you use.. is there some kind of return you have to give % .htaccess ? Yep. It's just a simple perl script; it's attached for reference. % % Also, is there

Re: [PHP] cookie problem....

2003-02-13 Thread Rick Emery
I always use 4 parameters in my setcookie(cookie_name,cookie_value,time,/) Also, verify that $HTTP_POST_VARS['Name'] exists by printing it - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 7:20 AM Subject: Re: [PHP] cookie

RE: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Cal Evans
IMPERSONATE id='Ernest P. Worrel'Hey Vern/IMPERSONATE, PHP does not think you have the MySQL module installed. none of the mysql_* commands are going to work. check the output of phpinfo() to verify. What version of PHP are you running? Since you are using RPMs the only (helpful) advice I can

[PHP] module php4_module is already loaded

2003-02-13 Thread bob pilly
Hello Recently i have installed apache 2.0.40-11 that comes with Redhat 8.0 Linux, i have tried installing php 4.2.2-8.0.7 with it but when i put the LoadModule php4_module modules/libphp4.so i get the following error when running apache. [warn] module php4_module is already loaded, skipping

Re: [PHP] module php4_module is already loaded

2003-02-13 Thread Marek Kilimajer
You might have LoadModule libphp4.so somewhere before where you added it bob pilly wrote: Hello Recently i have installed apache 2.0.40-11 that comes with Redhat 8.0 Linux, i have tried installing php 4.2.2-8.0.7 with it but when i put the LoadModule php4_module modules/libphp4.so i get the

Re: [PHP] module php4_module is already loaded

2003-02-13 Thread bob pilly
No i have searched my httpd.conf file and i dont. --- Marek Kilimajer [EMAIL PROTECTED] wrote: You might have LoadModule libphp4.so somewhere before where you added it bob pilly wrote: Hello Recently i have installed apache 2.0.40-11 that comes with Redhat 8.0 Linux, i have tried

[PHP] PEAR with php 4.2.3 on Apache 1.3.27 on WinXP

2003-02-13 Thread Manoj Nahar
Hi guys, I have been trying to setup PEAR with php 4.2.3 on Apache 1.3.27 on WinXP. I have followed all the installation instructions religiously and installaion is done properly. I have also tried PEAR webbased installer and working fine. But when i try to use DB it doesn;t seem to like the

[PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
When I try to restart Apche I get the following error: PHP Warning: Unable to load dynamic library '/usr/lib/php4/mysql.so' - /usr/lib/php4/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 Any ideas, pleas ethis thing is still down. -- PHP General

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Lucas Lain
ldd /usr/lib/php4/mysql.so? Vernon wrote: When I try to restart Apche I get the following error: PHP Warning: Unable to load dynamic library '/usr/lib/php4/mysql.so' - /usr/lib/php4/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 Any ideas, pleas

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
There is no mysql.so file Lucas Lain [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ldd /usr/lib/php4/mysql.so? Vernon wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Lucas Lain
did you install php-mysql support?? Vernon wrote: There is no mysql.so file Lucas Lain [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ldd /usr/lib/php4/mysql.so? Vernon wrote: -- Lucas Lain [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
When I try to install that I am told: libmysqlclient.so.10 is needed by php-mysql-4.1.2-7.2.6 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
OK, I looked up that file and found that I needed to install the MySQL-shared-3.23.51-1.i386.rpm which I did and realized that I already have the php-mysql installed. But am still getting the same erro message when restarting. However I did find the file you were asking about but in the

[PHP] Re: Before you upgrade mod_php4 on FreeBSD!

2003-02-13 Thread lists
I too have been very dismayed by their decision to remove the CyberCash module. I'm consequently forced to never upgrade my PHP again as I depend on that module. Verisign, as you mention, *DOES* support Cybercash still, and switching to payflow will cost us money - not only with Verisign, but

Re: [PHP] GD and 4.3

2003-02-13 Thread Joseph Bannon
Are there any special configuration commands I have to include at install to use GD? J. __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
I finally got it! I had to downgrade to an older verison of the php-mysql for God know what reason. I am back up now. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD and 4.3

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 00:22, Joseph Bannon wrote: Are there any special configuration commands I have to include at install to use GD? Depending on what you mean by special the answer could be YES or NO. --with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png-dir=/usr

RE: [PHP] cookie problem....

2003-02-13 Thread Bryan Lipscy
From your code snip it looks like you are missing ? after the if contruct. Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Before you upgrade mod_php4 on FreeBSD!

2003-02-13 Thread Kirk Strauser
msg96819/pgp0.pgp Description: PGP signature

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Marek Kilimajer
So the file is looked for in /usr/lib/php4, but resides in /usr/lib/php, you should move it Vernon wrote: OK, I looked up that file and found that I needed to install the MySQL-shared-3.23.51-1.i386.rpm which I did and realized that I already have the php-mysql installed. But am still getting

[PHP] SNMPGET returns Invalid object identifier: .1.3.6.1.2.1.1.1.0

2003-02-13 Thread Mike Lindsay
Hey All, Ok I've been going nuts (as well as spending 6hours) trying to figure out what's going on with this. When I poll my switch from the commandline using net-snmp's snmpget tool I get the proper response: adxitutil1# ./snmpget -v 1 -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.1.1.0

[PHP] sending e-mail with 'Bcc:' and 'Cc:' not working....

2003-02-13 Thread Scott Fletcher
I'm a little puzzled on why does either of these two, 'Bcc' and 'Cc' not work when I had successfully send the e-mail. My best guess is that I need additional header, if so then what are the required header needed to make this 'Bcc' and 'Cc' work? Here's the Internet Header from the To:

[PHP] Need help with PHP CLI

2003-02-13 Thread [-^-!-%-
Hello everyone! I'm having trouble accessing the argument list from a php script, from the command line. I'm calling the script as ./myscript.php argument1 argument2 myscript.php contains #!/usr/local/php -q ?php echo Total aguments passed: $argc\n; echo Argument 1: $argv[0] \n argument2:

[PHP] problems with cookies and PHP

2003-02-13 Thread Fireborn Silvaranth
I'm having problems with cookies and PHP and I'm not sure how to solve them. I've been working on a user tracking system for our site and I need to have the site remember them after they close their browser then come back. The only way I can think to do that is with cookies. I need to have PHP

Re: [PHP] mail question

2003-02-13 Thread Leif K-Brooks
Try: mail('[EMAIL PROTECTED]','subject','hello '.($a ? 'andreas')); Jonas Geiregat wrote: is it possible to do something like mail([EMAIL PROTECTED],subject,hello if($a){ return andreas; }); or what would be the best solution for this ? -- The above message is encrypted with double rot13

[PHP] problems with cookies and PHP

2003-02-13 Thread Fireborn Silvaranth
ok now it will print it's value correctly but what about actually changing the cookie's value? this line: $_COOKIE['userInfo']=userID; sets $_COOKIE['userInfo'] to userID but it does not change the cookie file itself. what must I do to accomplish that? - Original Message - From: Leif

Fw: [PHP] sending e-mail with 'Bcc:' and 'Cc:' not working....

2003-02-13 Thread Rick Emery
mail([EMAIL PROTECTED],This Is A Subject,$message,From: [EMAIL PROTECTED]\r\nCc: [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]\r\nBcc: [EMAIL PROTECTED],[EMAIL PROTECTED]); Separate addesses with commas. Separate CC and BCC with \r\n - Original Message - From: Scott Fletcher

Re: [PHP] problems with cookies and PHP

2003-02-13 Thread Rick Emery
setcookie(userinfo,userid,NULL,/); - Original Message - From: Fireborn Silvaranth [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 11:58 AM Subject: [PHP] problems with cookies and PHP ok now it will print it's value correctly but what

Re: [PHP] problems with cookies and PHP

2003-02-13 Thread Leif K-Brooks
You have to set the cookie again. Fireborn Silvaranth wrote: ok now it will print it's value correctly but what about actually changing the cookie's value? this line: $_COOKIE['userInfo']=userID; sets $_COOKIE['userInfo'] to userID but it does not change the cookie file itself. what must I do

[PHP] ftp file to client machine

2003-02-13 Thread Petre Agenbag
HI I am trying to do the following: I have an ftp server configured, but instead of the user having to use an ftp client, I'd like them to use the browser: So I'm trying to make a mini web-based ftp client. Idea is to get their username and password ( and maybe the ftp address as well?) and to

[PHP] Removing a comma from a form field

2003-02-13 Thread Ben C .
I'm trying to update a field which contains a $USD figure. But when I update it as 200,000 it become 200. I need to take out the comma. Is using ereg_replace function the best way of doing so? What do you think. Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To

[PHP] form within form

2003-02-13 Thread Edward Peloke
I am creating a form to allow the user to change his/her password. After the user enters their username and old password, I need to verify that info before they can change their user name and password. So I tried using a form within a form but am having some problems with passing the parameters

Re: [PHP] Removing a comma from a form field

2003-02-13 Thread Leif K-Brooks
If the comma is all you have to worry about, you don't need regex. Use www.php.et/str-replace. Ben C. wrote: I'm trying to update a field which contains a $USD figure. But when I update it as 200,000 it become 200. I need to take out the comma. Is using ereg_replace function the best way of

Re: [PHP] Removing a comma from a form field

2003-02-13 Thread Rick Emery
$thestr = str_replace(,,,$thestring); - Original Message - From: Ben C. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 12:13 PM Subject: [PHP] Removing a comma from a form field I'm trying to update a field which contains a $USD figure. But when I update it as

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Lucas Lain
you can breath now ... :) Vernon wrote: I finally got it! I had to downgrade to an older verison of the php-mysql for God know what reason. I am back up now. -- Lucas Lain [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] form within form

2003-02-13 Thread Edward Peloke
ALso, global variables are off... -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 1:22 PM To: Php-General@Lists. Php. Net Subject: [PHP] form within form I am creating a form to allow the user to change his/her password. After the

Re: [PHP] form within form

2003-02-13 Thread Rick Emery
What do you mean by verify that info? Do you mena verify for content, or form, or what... - Original Message - From: Edward Peloke [EMAIL PROTECTED] To: Php-General@Lists. Php. Net [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 12:22 PM Subject: [PHP] form within form I am

RE: [PHP] form within form

2003-02-13 Thread Cory Hicks
Can we see some code? Maybe we could help.. Cory On Thu, 2003-02-13 at 12:26, [EMAIL PROTECTED] wrote: ALso, global variables are off... -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 1:22 PM To: Php-General@Lists. Php. Net

Re: [PHP] form within form

2003-02-13 Thread Cory Hicks
My bad...I see your code now. On Thu, 2003-02-13 at 12:22, [EMAIL PROTECTED] wrote: I am creating a form to allow the user to change his/her password. After the user enters their username and old password, I need to verify that info before they can change their user name and password.

RE: [PHP] form within form

2003-02-13 Thread Edward Peloke
I apologize I mean when they click the 'verify' button, I verify their username and password before I allow them to update it. Eddie -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 1:27 PM To: Edward Peloke; Php-General@Lists. Php. Net

Re: [PHP] ftp file to client machine

2003-02-13 Thread Ernest E Vogelsinger
At 18:45 13.02.2003, Petre Agenbag spoke out and said: [snip] But I am baffeled for the rest, ie, what to do on the download.ftp page. First I tried the ftp_get() with the $file used as the local and remote files, but it seems that that will not download the

Re: [PHP] form within form

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 02:22, Edward Peloke wrote: I am creating a form to allow the user to change his/her password. After the user enters their username and old password, I need to verify that info before they can change their user name and password. So I tried using a form within a

Re: [PHP] form within form

2003-02-13 Thread Marek Kilimajer
Forms cannot be nested, there can be no form within form. Simply use 4 fields - username, oldpassw, newpassw, newpassw2 (must be equal newpassw), when the form is submited, check if username and oldpassw are valid, newpassw = newpassw2, and if everything is right, you can update to the new

Re: [PHP] form within form

2003-02-13 Thread Rick Emery
Rather than form within a form, provide 3 fields: old password, new password, username Verify against old password. If that's valid, then change password. Or am I missing something here? - Original Message - From: Edward Peloke [EMAIL PROTECTED] To: Php-General@Lists. Php. Net [EMAIL

[PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread David T-G
Hi, all -- Yes, I'm back again with another upload question. I promise I've been paying attention in class, but I just can't get this to work! The default upload_max_filesize in my php.ini was 2M, but I changed it to 200M and restarted the server, and now phpinfo() reports 200M. I created a

  1   2   >