Re: [PHP] Perl script passing variables to a PHP script

2006-01-16 Thread Curt Zirzow
On Sun, Jan 15, 2006 at 01:12:46PM -0700, John Meyer wrote: Hi, If I have a perl script to rip off the mp3 tag information, can I have that script then pass them into the PHP file? - how is the perl script called? - what mp3 info do you want to send? - how is the perl script calling the php

Re: [PHP] Running php scripts under cygwin

2006-01-16 Thread Jochem Maas
Robert Fitzpatrick wrote: I have a php script that I use for backup with rsync over ssh and those tools work great under cygwin. I'd like to use this same script that I use on my unix/linux servers. You would think I could find lots of info on this subject, but for some reason I can't. I found

Re: [PHP] help plz

2006-01-16 Thread Richard Correia
Hey Suresh, I know ..we all have faced similar problem when we started our career in php perl mysql. Please visit the http://weberdev.com for ultimate article and code example for Php and Mysql. Try Wrox books for php5. Thanks Richard On 1/16/06, suresh kumar [EMAIL PROTECTED] wrote: hi,

[PHP] Re: Cookie problem

2006-01-16 Thread Al
Al wrote: Can't get a cookie to set. Below is the code near the file top BEFORE any html output. $_POST['prefs'] comes from a hidden field in the middle of the html output. $_POST['filter'] comes from a select option. A Submit button closes the page and refreshes it. print_r($_POST) shows

[PHP] mail not sent to certain mail accounts

2006-01-16 Thread Angelo Zanetti
Hi all. I'm using the PHP mail function to send a confirmation email to a person once they register on the site. A few thing that happens with 2 of the mail accounts that we're testing to receive the mail is that the mail never is received. One of the mail accounts is a Yahoo account, the

RE: [PHP] mail not sent to certain mail accounts

2006-01-16 Thread Albert
Angelo Zanetti wrote: I'm using the PHP mail function to send a confirmation email to a person once they register on the site. A few thing that happens with 2 of the mail accounts that we're testing to receive the mail is that the mail never is received. One of the mail accounts is a Yahoo

Re: [PHP] mail not sent to certain mail accounts

2006-01-16 Thread Miles Thompson
At 07:43 PM 1/16/2006, Angelo Zanetti wrote: Hi all. I'm using the PHP mail function to send a confirmation email to a person once they register on the site. A few thing that happens with 2 of the mail accounts that we're testing to receive the mail is that the mail never is received. One

[PHP] Is there any way to create a Persistent FTP Connection?

2006-01-16 Thread GlasshopperMultimedia
I nam trying to build a file transfer utility for a content management system - I believe that the best way to do this is via a frame based utility which connects in one frame - handles all transfers and messagaing in another frame which is continually polled with new ftp commands. However I have

Re: [PHP] help plz

2006-01-16 Thread Jay Paulson
I have this book and have been very impressed with it. However, if you are a beginner programmer I would say not to get it until you understand the basic programming concepts and have a working knowledge of PHP. :) On 1/16/06 1:14 AM, Ligaya Turmelle [EMAIL PROTECTED] wrote: I personally

[PHP] how 2 stroe images in Mysql Database using PHP

2006-01-16 Thread suresh kumar
Hi, i dont know how 2 store images in gif/jpeg format in Mysql Database.i also want 2 know PHP Code 2 store images in Mysql Database .reply me soon its very urgent . A.suresh Send instant messages to your online friends

Re: [PHP] how 2 stroe images in Mysql Database using PHP

2006-01-16 Thread David Grant
Suresh, suresh kumar wrote: i dont know how 2 store images in gif/jpeg format in Mysql Database.i also want 2 know PHP Code 2 store images in Mysql Database .reply me soon its very urgent . Storing the image in the database will result in a fairly large performance hit, but if you

RE: [PHP] how 2 stroe images in Mysql Database using PHP

2006-01-16 Thread Jim Moseby
Hi, i dont know how 2 store images in gif/jpeg format in Mysql Database.i also want 2 know PHP Code 2 store images in Mysql Database .reply me soon its very urgent . A.suresh Conventional wizdom is that is it usually

[PHP] php script running as a cgi

2006-01-16 Thread zedleon
I am running a php script as a cgi so to be able to run under my user name. The script seems to be working except for one major problem. the cgi script is not finding the variables passed by the html form... Any suggestions on how to make this work? Any help is greatly appreciated - zed --

Re: [PHP] php script running as a cgi

2006-01-16 Thread David Grant
Hi, zedleon wrote: I am running a php script as a cgi so to be able to run under my user name. The script seems to be working except for one major problem. the cgi script is not finding the variables passed by the html form... How are you attempting to access them? David -- David Grant

Re: [PHP] how 2 stroe images in Mysql Database using PHP

2006-01-16 Thread Richard Correia
Hey ... Ready example ... http://www.weberdev.com/get_example-4062.html Thanks, Richard On 1/16/06, suresh kumar [EMAIL PROTECTED] wrote: Hi, i dont know how 2 store images in gif/jpeg format in Mysql Database.i also want 2 know PHP Code 2 store images in Mysql Database .reply me

RE: [PHP] help plz

2006-01-16 Thread Weber Sites LTD
A good book to check out : 100+ Practical PHP Solutions http://www.sitepoint.com/launch/weberdev/2/7 Download the sample chapter and see if you like it. Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. PHP code examples : http://www.weberdev.com

[PHP] zde users...help

2006-01-16 Thread blackwater dev
I am going to try to post this to Zend.com also, just am hoping I can get a quicker response here. I have Zend Studio 4 on my mac and just installed a few updates from apple...quicktime, itunes, safari. I then rebooted and it asked to update my key chain like normal and now when I try to open

RE: [PHP] how 2 stroe images in Mysql Database using PHP

2006-01-16 Thread Weber Sites LTD
You may also want to check this article : Saving Images in MySQL http://www.weberdev.com/ViewArticle-3.html Berber -Original Message- From: Richard Correia [mailto:[EMAIL PROTECTED] Sent: Monday, January 16, 2006 5:45 PM To: suresh kumar Cc: php-general@lists.php.net Subject: Re:

RE: [PHP] php script running as a cgi

2006-01-16 Thread Weber Sites LTD
When running scripts in CGI mode you do not run them via your web server. Why do you expect to find variables that come from the web? I must be missing something. Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. PHP code examples :

Re: [PHP] php script running as a cgi

2006-01-16 Thread John Nichel
Weber Sites LTD wrote: When running scripts in CGI mode you do not run them via your web server. Why do you expect to find variables that come from the web? I must be missing something. You are. I think you're confusing CGI with CLI. -- John C. Nichel IV Programmer/System Admin (ÜberGeek)

Re: [PHP] PHP and Apache

2006-01-16 Thread Erik Saline
Where do I find fc5? Erik On Sun, Jan 15, 2006 at 09:34:40AM -0800, Erik Saline wrote: Using Fedora Core 4 using the already Apache and Mysql. I tried using the already installed PHP but mysql support was not setup or shown when using phpinfo(). I recompiled PHP with the following.

Re: [PHP] PHP and Apache

2006-01-16 Thread Rodolfo Andrade
www.google.com or http://fedoraproject.org/wiki/ But it's in test yet. Best regards Rodolfo Andrade - Original Message - From: Erik Saline To: Curt Zirzow ; php-general@lists.php.net Sent: Monday, January 16, 2006 3:06 PM Subject: Re: [PHP] PHP and Apache Where do I find fc5? Erik

Re: [PHP] PHP and Apache

2006-01-16 Thread Erik Saline
Thanks. I need to hone my google skills. I spent hours looking. Never thought to try the wiki pages. Erik www.google.com or http://fedoraproject.org/wiki/ But it's in test yet. Best regards Rodolfo Andrade - Original Message - From: Erik Saline To: Curt Zirzow ;

[PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
Let me ask this... What is the proper way to configure a php script to run as a cgi? What items need to be included (i.e. header info, content type, etc ) for the cgi to find the variables sent from the html form? anybody? zed zedleon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread John Nichel
zedleon wrote: Let me ask this... What is the proper way to configure a php script to run as a cgi? What items need to be included (i.e. header info, content type, etc ) for the cgi to find the variables sent from the html form? anybody? POST/GET variables will work without any added

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread Adi
check to make sure you are allowing globals to be accessed in your php.ini.make sure you are accessing the post/get vars correctly On 1/16/06, John Nichel [EMAIL PROTECTED] wrote: zedleon wrote: Let me ask this... What is the proper way to configure a php script to run as a cgi? What

[PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
here is the php code i am using as a cgi in the cgi-bin This form executes fine, just doesn't get the variables for the form. simple test form at: http://www.passeycorp.com/gnupg.php thanks for the feedback. zed ---

Re: [PHP] how 2 stroe images in Mysql Database using PHP

2006-01-16 Thread Kevin Waterson
This one time, at band camp, David Grant [EMAIL PROTECTED] wrote: Storing the image in the database will result in a fairly large performance hit This is not always the case. Mostly this mis-nomer comes from using databases that use a secondary db for indexing or dont support true BLOB types

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread John Nichel
zedleon wrote: here is the php code i am using as a cgi in the cgi-bin This form executes fine, just doesn't get the variables for the form. simple test form at: http://www.passeycorp.com/gnupg.php thanks for the feedback. zed

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
I am getting a parse error, unexpected T_VARIABLE you would think this would be easy. zed John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] zedleon wrote: here is the php code i am using as a cgi in the cgi-bin This form executes fine, just doesn't get the variables

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread John Nichel
zedleon wrote: I am getting a parse error, unexpected T_VARIABLE you would think this would be easy. Did you put the semi-colon at the end of the line? zed John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] zedleon wrote: here is the php code i am using as a cgi

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
Thank you -- brain freeze.. I am getting emply results from print_r Array ( ) John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] zedleon wrote: I am getting a parse error, unexpected T_VARIABLE you would think this would be easy. Did you put the semi-colon at

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread John Nichel
zedleon wrote: Thank you -- brain freeze.. I am getting emply results from print_r Array ( ) Don't know what to tell you then. I tried you script on a cgi box here, and the post variables came thru fine. Only difference I noticed is that in your path to the script, you're running thru a

Re: [PHP] mail not sent to certain mail accounts

2006-01-16 Thread Paul Scott
Angelo Zanetti wrote: I'm using the PHP mail function to send a confirmation email to a person once they register on the site. A few thing that happens with 2 of the A bunch of times, I have found that some hosts will up the spam ante when you don't include almost _all_ of the headers.

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
Thanks for the help John...That's more information than I had before.. I will keep working at it.. Zed John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] zedleon wrote: Thank you -- brain freeze.. I am getting emply results from print_r Array ( ) Don't know

[PHP] Best way to do this: www.domain.com?page=var

2006-01-16 Thread Michael Hulse
Hello, What would be the best way to get a page variable like this: www.domain.com?page=home to show up when a user types in: www.domain.com My current fix is to have this: header(Refresh: 0; URL=http://www.domain.com/start.php?page=home;); ... on a index.php page on the root. Is there a

Re: [PHP] Best way to do this: www.domain.com?page=var

2006-01-16 Thread tg-php
On your web server you can configure 'default pages'. Apache and *nix type servers seem to favor the index.html type default pages while Microsoft's IIS goes for the Default.htm just to be different. But you can add default pages to a list in the order you want them accepted. For instance,

Re: [PHP] Best way to do this: www.domain.com?page=var

2006-01-16 Thread Michael Hulse
On Jan 16, 2006, at 2:14 PM, [EMAIL PROTECTED] wrote:] I think that'll do it for ya. If you're going through an ISP, they still may have a way that you can set your defaults, possibly through .htaccess or some other Apache type prefs setting mechanism. Good luck! Great! Thanks for the

Re: [PHP] Best way to do this: www.domain.com?page=var

2006-01-16 Thread Ray Hauge
You could also check to see if $_GET['page'] contains a value, and if it does not, then redirect it. Something like this: if($_GET['page'] == ''){ header(Refresh: 0; URL=http://www.domain.com/start.php?page=home;); } Granted that isn't validating the $_GET['page'] variable input for

Re: [PHP] Best way to do this: www.domain.com?page=var

2006-01-16 Thread Ezra Nugroho
On Mon, 2006-01-16 at 14:20 -0800, Michael Hulse wrote: On Jan 16, 2006, at 2:14 PM, [EMAIL PROTECTED] wrote:] I think that'll do it for ya. If you're going through an ISP, they still may have a way that you can set your defaults, possibly through .htaccess or some other Apache type

Re: [PHP] Best way to do this: www.domain.com?page=var

2006-01-16 Thread M. Sokolewicz
I'm confused... why does everyone use a refresh??? According to me, that's not what a refresh is supposed to be used for (!). Why don't use a header('Location: http://www.domain.com/start.php?page=home'); for it? It's more in-line with RFC's - tul Ray Hauge wrote: You could also check to see

Re: [PHP] Best way to do this: www.domain.com?page=var

2006-01-16 Thread Michael Hulse
On Jan 16, 2006, at 2:24 PM, Ezra Nugroho wrote: You probably want to check mod_rewrite. http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html Ah, looks useful! Thanks for link, reading about it now. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Best way to do this: www.domain.com?page=var

2006-01-16 Thread Michael Hulse
On Jan 16, 2006, at 3:27 PM, M. Sokolewicz wrote: I'm confused... why does everyone use a refresh??? According to me, that's not what a refresh is supposed to be used for (!). Why don't use a header('Location: http://www.domain.com/start.php?page=home'); for it? It's more in-line with RFC's

[PHP] PHP not seeing MySQL functions

2006-01-16 Thread Jonathan Duncan
I just got a new web server with RedHat Enterprise Linux 4 on it. It came with MySQL 4.1.x and PHP 4.3.9 on it. I uninstalled the MySQL 4 and put MySQL 5 on it. When I run a PHP script that has a DB connection in it I get: Fatal error: Call to undefined function: mysql_connect() in

[PHP] need help arranging files!

2006-01-16 Thread Nicholas Couloute
I need to know how to arrange files alphabetically in my directory when I display it on the browser! I have it display the filename foreach that exist is there a way to arrange by alphabet? ~Nick Couloute co-owner/web Designer SiDEkiCk2MuSiC.CoM -- PHP General Mailing List

Re: [PHP] need help arranging files!

2006-01-16 Thread Michael Hulse
On Jan 16, 2006, at 5:21 PM, Nicholas Couloute wrote: I need to know how to arrange files alphabetically in my directory when I display it on the browser! I have it display the filename foreach that exist is there a way to arrange by alphabet? I would read the contents of the directory into

Re: [PHP] need help arranging files!

2006-01-16 Thread Michael Hulse
On Jan 16, 2006, at 6:10 PM, Nicholas Couloute wrote: I tried the script but it keeps saying it is not an array! Hmm, I just set-it-up on my server: http://www.ambiguism.com/php/readDirSort.php Seems to work for me. Code: $file_path = $_SERVER['DOCUMENT_ROOT'].'/php/test/'; $the_dir =

Re: [PHP] need help arranging files!

2006-01-16 Thread Nicholas Couloute
can any one help me out? plz ~Nick Couloute co-owner/web Designer SiDEkiCk2MuSiC.CoM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Validating Radio Buttons in two directions

2006-01-16 Thread HiFi Tubes
I'm kind of a newbie so speak sowly. I've got a problem with validating radio buttons that seems to be harder than I think to solve. I've got ten items set up like this: Green: input type=Radio name=color1 value=1 / input type=Radio name=color1 value=2 / input type=Radio name=color1

Re: [PHP] need help arranging files!

2006-01-16 Thread Nicholas Couloute
I figured it out! it runs on my pc but not on the web! $fileroot = amrs/$cat/; foreach ($author = scandir($fileroot); as $author){ echo $author; } ??? ~Nick Couloute co-owner/web Designer SiDEkiCk2MuSiC.CoM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re[2]: [PHP] Best way to do this: www.domain.com?page=var

2006-01-16 Thread Steve Clay
Monday, January 16, 2006, 5:14:49 PM, tg-php wrote: Should just be a matter of adding start.php to your defaults list in whatever priority order you want. Apache's .htaccess: DirectoryIndex start.php index.php index.html In start.php: // instead of redirecting, just set page if

Re: [PHP] help plz

2006-01-16 Thread Ligaya Turmelle
I am also assuming you actually do know the basics of MySQL and PHP and are looking for that next step - past the beginner stuff. Ligaya Turmelle wrote: I personally liked George Schlossnagle's book Advanced PHP Programming, published by Sams.

Re: [PHP] help plz [Books]

2006-01-16 Thread Travis Doherty
Ligaya Turmelle wrote: I personally liked George Schlossnagle's book Advanced PHP Programming, published by Sams. I am also assuming you actually do know the basics of MySQL and PHP and are looking for that next step - past the beginner stuff. I agree. I have seen this book alone take

[PHP] Site down?

2006-01-16 Thread Dotan Cohen
I just noticed that http://www.io.org/~rasmus is down. Anybody else remember this site? Dotan Cohen

[PHP] how 2 open File Browser window in PHP

2006-01-16 Thread suresh kumar
hi, i dont know exact PHP code for how 2 open file browser window to uplad file or an image plz help me.its very urgent. A.suresh Send instant messages to your online friends http://in.messenger.yahoo.com