Re: [PHP] WHILE IF/ELSE loop not working

2003-01-24 Thread Jason Wong
On Saturday 25 January 2003 05:43, Rick Emery wrote: > Define "fails" > - Original Message - > From: "Jay Fitzgerald" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, January 24, 2003 3:11 PM > Subject: [PHP] WHILE IF/ELSE loop not working > > > can anyone tell me why this whil

Re: [PHP] get apache user

2003-01-24 Thread Jason Wong
On Saturday 25 January 2003 06:15, Tommy Jensehaugen wrote: > I have a page where I log in as an Apache user. How do I get the apache > username in php? print_r($_SERVER) to see which you can use. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] file upload question

2003-01-24 Thread Jason Wong
On Saturday 25 January 2003 06:34, Andrew Rench wrote: > When you say you need to include a filename, do you mean the > $_FILES['userfile']['tmp_name'] or the variable name identified in the > input tag? (name="userfile") ANY filename which makes sense to you, so most likely the latter. -- Jason

[PHP] PHP Tutor in Denver?

2003-01-24 Thread Grae Wolfe
Hiya! I am back again... Is there anyone in or around Denver, CO that is familiar enough with PHP and MySQL that would be willing to help teach me enough to build a fairly simple shopping cart program for a website? I have looked at some of the free ones, and I don't really like what I have se

[PHP] PHP and XML mailing list

2003-01-24 Thread Sterling Hughes
A mailing list for discussing the future of PHP and XML development has been created. You can subscribe by sending a message to [EMAIL PROTECTED] (normal ezmlm commands apply). This mailing list is _only_ intended for actual php extension and api development, user support questions should remain

[PHP] RE: php/sendmail/apache/linux...

2003-01-24 Thread Bruce Douglas
Brian The following information is what I have... I created the following PHP app I'm running it from the command line. - #! /usr/bin/php -q - The response was: -

[PHP] Testing

2003-01-24 Thread César Aracena
Testing. -- Cesar Aracena www.icaam.com.ar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] domxml_new_doc() utf8 encoding

2003-01-24 Thread Tom Rogers
Hi, Saturday, January 25, 2003, 4:04:38 AM, you wrote: ØV> how do i create ØV> ? ØV> domxml_new_doc("1.0") only creates ØV> ØV> vennlig hilsen ØV> Øyvind ØV> STOPP BARNEPORNO PÅ INTERNET: ØV> Send tips om barneporno til Redd Barna: ØV> [EMAIL PROTECTED] ØV> Øyvind Vestavik ØV> oyvindve at id

RE: [PHP] [url] to html

2003-01-24 Thread John W. Holmes
> how to chang [url=%link%]%descr%[/url] in %descr% $new_str = preg_replace("!\[url=(.*)\](.*)\[/url\]!U","$2",$old_str); should work... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (h

RE: [PHP] Re: parse error, unexpected $end ...

2003-01-24 Thread John W. Holmes
> include("includes/encabezado_xml.php"); > include("includes/conexion.php"); > > mysql_select_db("latinencounters"); > > $u_login=""; > $u_pwd=""; > if(isset($url_login)){ > $u_login=$url_login; // parametro login del usuario > } > if(isset($url_pwd)){ > $u_pwd=$url_pwd; // parametro pa

Re: [PHP] SSH change password!

2003-01-24 Thread Michael Sims
On Fri, 24 Jan 2003 11:48:50 -0600, you wrote: >What I need is to change users password on the server, I want to write >that script and it needs to be safe. So I don't know what should I use. >I think I will need to check username and password, then log in through >website with it and then use pas

Re: [PHP] IP address

2003-01-24 Thread Justin French
on 24/01/03 1:23 PM, K.C.P. van Zijl ([EMAIL PROTECTED]) wrote: > Is it possible in PHP to determine the IP address of a server which is > requesting a page from my own server? > When I use $REMOTE_ADDR, I get the wrong IP address. In that case I get > the IP address of a person who is requesting

[PHP] Re: parse error, unexpected $end ...

2003-01-24 Thread Octavio Herrera
This is the source code Your Login or Password is Incorrect"; }else{ echo "\n"; for($a=0;$a<$filas;$a++){ $fila=mysql_fetch_array($rs); echo " \n"; echo " ".$fila["id"]."\n"; echo " ".$fila["name"]."\n"; echo " ".$fila["born"]."\n"; echo " ".$fila["occupation"]."\n"; echo "

[PHP] parse error, unexpected $end ...

2003-01-24 Thread Octavio Herrera
Hello, my name is octavio, Im new to this news group, I have a problem, Im getting the following error message: Parse error: parse error, unexpected $end in c:\appserv\www\octavio\user_data.php on line 63 What is this? I have looked all the source code and at the end of file there is nothing wron

RE: [PHP] how to verify the available email address

2003-01-24 Thread John W. Holmes
> In a signup page , I want to verify some information what the user (Bfill in (B> ,inculde user name$B!"(Bpassword$B!"(Bemail etc.But I don't know how to verify (Bthe (B> available email address.Who can help me ? (B (BSend them an email with a link and make them click on it. It's the onl

RE: [PHP] memory exhausted... memory leak?

2003-01-24 Thread John W. Holmes
> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to > allocate 35 bytes) in > /home/virtual/site8/fst/var/www/html/staff/libs/error.lib.php on line 61 > > I suddenly got this error on one of my sites, and after rechecking the > script, it shouldn't be happenning :S > > Anyway,

Re: [PHP] Designing My First Content Management System

2003-01-24 Thread Chris Shiflett
--- Guru Geek <[EMAIL PROTECTED]> wrote: > Does anyone out there have any working examples > of a PHP based CMS? http://freshmeat.net/search/?q=PHP+CMS§ion=projects Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Designing My First Content Management System

2003-01-24 Thread Guru Geek
Hello, I've decided that for my first real PHP project I'm going to create a Content Management System that is PHP based. I was wondering if anyone out there had any thoughts, idea's or suggestions before I get started? Does anyone out there have any working examples of a PHP based CMS? Thanks,

[PHP] Re: linux cpu usage

2003-01-24 Thread Philip Hallstrom
does it hog the CPU and stop other things from running or is it just using 100% of the CPU? If the latter, that's fine. If the former, read the man page for nice or renice (it's renice on freebsd) -philip On Fri, 24 Jan 2003, Gareth Thomas wrote: > Hi all, > > I have a command line PHP script

[PHP] linux cpu usage

2003-01-24 Thread Gareth Thomas
Hi all, I have a command line PHP script that is in a continous loop to monitor a particular database event. I am running RedHat 8 and the only problem I am finding is that it hogs the CPU. I developed the script originally on Windows and it worked better there. Is there a way to limit CPU resourc

[PHP] memory exhausted... memory leak?

2003-01-24 Thread Tularis
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in /home/virtual/site8/fst/var/www/html/staff/libs/error.lib.php on line 61 I suddenly got this error on one of my sites, and after rechecking the script, it shouldn't be happenning :S Anyway, I was wonder

[PHP] Multitier applications using XML as an output format

2003-01-24 Thread Davy Obdam
Hello people, I have a question about developing Multi Tier applications using PHP. I wanna use XML as an output format, and then use XSL to transform this to whatever format, like HTML. However i am quite new to Object Orientated Programming and i am now wondering how-to do this. I have build

RE: [PHP] file upload question

2003-01-24 Thread Andrew Rench
When you say you need to include a filename, do you mean the $_FILES['userfile']['tmp_name'] or the variable name identified in the input tag? (name="userfile") --- Mark Heintz PHP Mailing Lists <[EMAIL PROTECTED]> wrote: > > You have to include a filename along with the path when you're using >

Re: [PHP] [url] to html

2003-01-24 Thread Leif K-Brooks
Take a look at my BBCode class, http://www.phpclasses.org/browse.html/package/951.html. Niels Uhlendorf wrote: hi, how to chang [url=%link%]%descr%[/url] in %descr% thx 4 help. Niels -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will

[PHP] file creation (again)

2003-01-24 Thread Don Mc Nair
Thanks for all the help so far folks. I have finally got PHP to create a page on the web server now but the owner is set to apache. As it uses an include() function it will not allow me to display the page giving Warning: SAFE MODE Restriction in effect. uid not allowed to etc. I dont seem to

[PHP] get apache user

2003-01-24 Thread Tommy Jensehaugen
Hi folks! I have a page where I log in as an Apache user. How do I get the apache username in php? thanks tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How do you update multiple rows at the same time?

2003-01-24 Thread Brian Burg
first.. you need to find the number of categories in the table.. Use a simple MySQL function for that. Example: mysql> SELECT `table.categoryfield`, COUNT(*) FROM `table` GROUP BY `table.categoryfield`; this will return each category, and how many rows use this category. Example: +--

Re: [PHP] sessions IE 6.0 problem

2003-01-24 Thread Chris Shiflett
--- news <[EMAIL PROTECTED]> wrote: > Sessions aren't getting set. > > my parent frame is on xyz.com A frame on xyz.com > loads a frame that contains a page on foo.com the > page on foo.com start a session and sets a variable. > > but the IE does not accept this session. > > I've loaded this pag

Re: [PHP] sessions IE 6.0 problem

2003-01-24 Thread Richard Whitney
You need to append 'bar' to your foo page! RW Quoting news <[EMAIL PROTECTED]>: ### Sessions aren't getting set. ### ### my parent frame is on xyz.com ### A frame on xyz.com loads a frame that contains a page on foo.com ### the page on foo.com start a session and sets a variable. ### ### but t

[PHP] [url] to html

2003-01-24 Thread Niels Uhlendorf
hi, how to chang [url=%link%]%descr%[/url] in %descr% thx 4 help. Niels -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sessions IE 6.0 problem

2003-01-24 Thread news
Sessions aren't getting set. my parent frame is on xyz.com A frame on xyz.com loads a frame that contains a page on foo.com the page on foo.com start a session and sets a variable. but the IE does not accept this session. I've loaded this page on foo.com directly and it sets the session fine, bu

Re: [PHP] checkboxes & php

2003-01-24 Thread Richard Whitney
Quoting Chris Boget <[EMAIL PROTECTED]>: ### > applies to selection lists, not checkboxes ### ### Indeed. But I believe he was offering that as an alternative. :) Ahem! Thanks Chris! RW ### Chris ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit:

Re: [PHP] checkboxes & php

2003-01-24 Thread Chris Boget
> applies to selection lists, not checkboxes Indeed. But I believe he was offering that as an alternative. :) Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] value not displayed

2003-01-24 Thread Brian Burg
By default PHP 4.3.0 has register_globals = off. As others have mentioned, you need to change register_globals to on in order to use HTTP GET variables as global variables. Otherwise, you need to use $_GET['varname'] in the case you can't edit the configuration file. Regards, Brian Burg Hudsonvi

Re: [PHP] checkboxes & php

2003-01-24 Thread Rick Emery
applies to selection lists, not checkboxes - Original Message - From: "Richard Whitney" <[EMAIL PROTECTED]> To: "Greg" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 2:59 PM Subject: Re: [PHP] checkboxes & php I just logged in to my Yahoo mail account. I hav

Re: [PHP] WHILE IF/ELSE loop not working

2003-01-24 Thread Rick Emery
Define "fails" - Original Message - From: "Jay Fitzgerald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 3:11 PM Subject: [PHP] WHILE IF/ELSE loop not working can anyone tell me why this while loop fails? == wh

[PHP] problems getting GD to wrok properly

2003-01-24 Thread Philipp
Hi, i am having problem to get GD working properly. i used to compile GD by myself an link the libgd.a into PHP, but as PHP 4.3.0 offers an included version, and besides its recommonded to use it, it saves some work. but i cant get it to work right. the problem is the jpeg support. is it build in

[PHP] MQSeries

2003-01-24 Thread Didier McGillis
Is there currently any hooks into MQSeries through PHP. I need to put some infromation on a queue, and was hoping not have to break out the C++ coding tools. _ The new MSN 8: smart spam protection and 2 months FREE* http://join.m

Re: [PHP] paths after file in url

2003-01-24 Thread Matt
- Original Message - From: "Glenn Pierce" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 3:52 PM Subject: [PHP] paths after file in url > > Does anyone know why url's such as > > http://www.php.net/mailing-lists.php/This/is/a/test This only works in apache. S

[PHP] WHILE IF/ELSE loop not working

2003-01-24 Thread Jay Fitzgerald
can anyone tell me why this while loop fails? == while ($row = mysql_fetch_array($sql_result)): $phone = $row["phone"]; $date = $row["date"]; if ($phone == "$_POST[areacode]$_POST[prefix]$_POST[suffix]"): if ($date == NULL): $date = "today";

Re: [PHP] checkboxes & php

2003-01-24 Thread Richard Whitney
I just logged in to my Yahoo mail account. I have only one account, but when I went to Preferences, it had a , which you might want to consider RW Quoting Greg <[EMAIL PROTECTED]>: ### I want to be able to let people check multiple values. I want them to be ### given a list of usernames and ch

[PHP] paths after file in url

2003-01-24 Thread Glenn Pierce
Does anyone know why url's such as http://www.php.net/mailing-lists.php/This/is/a/test can be passed with php. This this legal with respect to HTML? I have noticed that Ariadne uses this approach and was curious. Thanks for the help -- Glenn Pierce <[EMAIL PROTECTED]> -- PHP General M

Re: [PHP] NEWBIE: request querystring

2003-01-24 Thread Chris Shiflett
--- Tim Haskins <[EMAIL PROTECTED]> wrote: > I am crossing over from ASP to PHP and was > wondering how to get the same affect as > request.questring? If your URL is: http://example.org/foo.php?bar=hello Then you can use $_SERVER['QUERY_STRING'] to get: bar=hello or you can use $_GET['bar'] to

[PHP] php/sendmail/apache/linux...

2003-01-24 Thread Bruce Douglas
hey... I'm sure the question has been answered a 1000 times!!! I'm trying to create a simple app to send email via PHP, using the "mail" function. I'm using RedHat(Linux 8.0 , Sendmail), PHP(4.2.2), Apache (2.0.40). I'm using the following piece of code:

Re: [PHP] Upload is corrupting files

2003-01-24 Thread 1LT John W. Holmes
> I have troubles with my php installation and file uploads. It's > kind of a strange problem. When files are uploaded via a form in php > they double in size and become corrupt. A text file smaller than about > 2K will work, but past the text starts getting repeated spuratically > throuought the f

[PHP] Re: NEWBIE: request querystring

2003-01-24 Thread Greg
$var = $_GET["varName"]; "Tim Haskins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am crossing over from ASP to PHP and was wondering how to get the same > affect as request.questring ? Thanks! > > -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] checkboxes & php

2003-01-24 Thread Didier McGillis
Then I would do what John Holmes suggested. ---John Holmes... Or name them as an array, "user[]" so that you have a $_REQUEST['user'] array. Checkboxes are a little pecular in how they come across into PHP. If you search the archives you'll get some good examples. ---John Holmes... From:

Re: [PHP] checkboxes & php

2003-01-24 Thread Greg
Ah, that's exactly what I was looking for. Thanks! I had the right PHP code, just didn't have the right html :) /Greg "1lt John W. Holmes" <[EMAIL PROTECTED]> wrote in message 00a201c2c3e8$6e2431d0$a629089b@TBHHCCDR">news:00a201c2c3e8$6e2431d0$a629089b@TBHHCCDR... > Or name them as an array, "use

Re: [PHP] checkboxes & php

2003-01-24 Thread Greg
I want to be able to let people check multiple values. I want them to be given a list of usernames and check the ones they want deleted, so a radio button won't work. If you go to Yahoo mail and select more than one checkbox, you can delete more than one item. I looked at the source and all the

Re: [PHP] checkboxes & php

2003-01-24 Thread 1LT John W. Holmes
Or name them as an array, "user[]" so that you have a $_REQUEST['user'] array. Checkboxes are a little pecular in how they come across into PHP. If you search the archives you'll get some good examples. ---John Holmes... - Original Message - From: "Richard Whitney" <[EMAIL PROTECTED]> To:

Re: [PHP] ob_gzhandler bug???

2003-01-24 Thread Serge Paquin
I found the problem. It's a bug in PHP 4.3.0 and is fixed in CVS which I just confirmed... Serge. In article <007a01c2c3e1$bab70650$a629089b@TBHHCCDR>, "1lt John W. Holmes" <[EMAIL PROTECTED]> wrote: > Is output_handler set in your php.ini? > > ---John Holmes... -- PHP General Mailing List (

Re: [PHP] checkboxes & php

2003-01-24 Thread Richard Whitney
Do you, prehaps, wants to use radio buttons instead? RW Quoting Greg <[EMAIL PROTECTED]>: ### If I have 3 checkboxes labeled "user", but each one has a seperate value, ### how do I get the values of each checkbox? For example, how would I tell ### if ### the following checkboxes are checked? ##

[PHP] NEWBIE: request querystring

2003-01-24 Thread Tim Haskins
I am crossing over from ASP to PHP and was wondering how to get the same affect as request.questring ? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checkboxes & php

2003-01-24 Thread Richard Whitney
You need to give the checkboxes unique names like user1, user2 user3 RW Quoting Greg <[EMAIL PROTECTED]>: ### If I have 3 checkboxes labeled "user", but each one has a seperate value, ### how do I get the values of each checkbox? For example, how would I tell ### if ### the following checkboxes

RE: [PHP] checkboxes & php

2003-01-24 Thread Edward Peloke
why would you give them all the same name? I can see this for radio buttons but not checkboxes. -Original Message- From: Greg [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 3:27 PM To: [EMAIL PROTECTED] Subject: [PHP] checkboxes & php If I have 3 checkboxes labeled "user", bu

[PHP] checkboxes & php

2003-01-24 Thread Greg
If I have 3 checkboxes labeled "user", but each one has a seperate value, how do I get the values of each checkbox? For example, how would I tell if the following checkboxes are checked? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ob_gzhandler bug???

2003-01-24 Thread 1LT John W. Holmes
Is output_handler set in your php.ini? ---John Holmes... - Original Message - From: "Serge Paquin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 2:24 PM Subject: [PHP] ob_gzhandler bug??? > Here is a very simple APP to test my problem. Below you can see my

[PHP] ob_gzhandler bug???

2003-01-24 Thread Serge Paquin
Here is a very simple APP to test my problem. Below you can see my result. This is done on PHP 4.3.0 Serge. 0) { Header( "Content-Length: $len" ); } return $buffer; } ob_start("ob_spit_content_length"); ob_start("ob_gzhandler"); ?> Test Message Test:

RE: [PHP] file upload question

2003-01-24 Thread Mark Heintz PHP Mailing Lists
You have to include a filename along with the path when you're using move_uploaded_file(); if you're only specifying '/usr/local/etc/httpd/htdocs/blast/images' as your destination string, php is trying to create a file named 'images' in '/usr/local/etc/httpd/htdocs/blast'. If there's still a prob

[PHP] Upload is corrupting files

2003-01-24 Thread Petr Gotthard
Hi, I have troubles with my php installation and file uploads. It's kind of a strange problem. When files are uploaded via a form in php they double in size and become corrupt. A text file smaller than about 2K will work, but past the text starts getting repeated spuratically throuought the file a

Re: [PHP] Evaluate PHP var in stored sql statement?

2003-01-24 Thread Matt
> From: "Noah" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, January 24, 2003 4:39 PM > Subject: Re: [PHP] Evaluate PHP var in stored sql statement? > eval("\$myrow[2] = \"$myrow[2]\";"); > > What's the deal with the leading backslash in ' eval("\$myrow[2] '? It's escaping th

RE: [PHP] SSH change password!

2003-01-24 Thread Serge Paquin
Not the more secure solution but should do the trick: I will assume that your webserver is run as apache.apache Make a copy of passwd and call it (for example) apache_passwd execute the following as root: $>chown root.apache apache_passwd $>chmod u+rwxs,g+rwx,o-rwx Notice the "s" in the u+. Th

Re: [PHP] Evaluate PHP var in stored sql statement?

2003-01-24 Thread Maxim Maletsky
eval takes the string and executes PHP in that string. So, eval("\$myrow[2] = \"$myrow[2]\";"); is equivalent to: $myrow[2] = "$myrow[2]"; I'd reccomend you using single quotes and then escape only backslashes and single quotes within a string -- Maxim Maletsky [EMAIL PROTECTED] "Noah" <[E

Re: [PHP] Evaluate PHP var in stored sql statement?

2003-01-24 Thread Noah
Don't quite understand why this works, but it does: /* Escape quotes in sql_query so our header_id gets evaluated */ eval("\$myrow[2] = \"$myrow[2]\";"); What's the deal with the leading backslash in ' eval("\$myrow[2] '? Does eval() tell php to evaluate the string as php code; i.e. text

RE: [PHP] SSH change password!

2003-01-24 Thread Mantas Kriauciunas
Hey! Thanks for reply. Well hmm.. is there any way to open some socket and log in with other account or something like that? I mean use IE or other browser but the main point is to log in with different account and change the password. User can change password of their own not only root can change

[PHP] domxml_new_doc() utf8 encoding

2003-01-24 Thread Øyvind Vestavik
how do i create ? domxml_new_doc("1.0") only creates vennlig hilsen Øyvind STOPP BARNEPORNO PÅ INTERNET: Send tips om barneporno til Redd Barna: [EMAIL PROTECTED] Øyvind Vestavik oyvindve at idi dot ntnu dot no ICQ-number: 218699329 mobil: 41422911 -- PHP General Mailing List (http://www.ph

Re: [PHP] SSH change password!

2003-01-24 Thread Tom Woody
The one problem and serious security risk you will be introducing is that if you run passwd as an unprivliged user you can only change the password of the user you are running it as. Therefore, the webserver would be running as apache, so the only password it could change would be for user apache.

RE: [PHP] file upload question

2003-01-24 Thread Andrew Rench
thanks for the advice- this makes sense as to why I'm not seeing the file. I added the move_uploaded_file() to the script to see what happens and I end up getting the following error: PHP Warning: Unable to move '/var/tmp/phpfcwVyC' to '/usr/local/etc/httpd/htdocs/blast/images' in /usr/local/etc/

[PHP] SSH change password!

2003-01-24 Thread Mantas Kriauciunas
Hey! I was wondering with what command do you execute shell commands? What I need is to change users password on the server, I want to write that script and it needs to be safe. So I don't know what should I use. I think I will need to check username and password, then log in through website with

Re: [PHP] Evaluate PHP var in stored sql statement?

2003-01-24 Thread Maxim Maletsky
use eval() www.php.net/eval -- Maxim Maletsky [EMAIL PROTECTED] "CF High" <[EMAIL PROTECTED]> wrote... : > Hey all. > > I need to find out how to get PHP to evaluate a PHP variable stored in our > MySql database. > > Currently the variable is being read as a string; i.e. select * from tab

[PHP] Evaluate PHP var in stored sql statement?

2003-01-24 Thread CF High
Hey all. I need to find out how to get PHP to evaluate a PHP variable stored in our MySql database. Currently the variable is being read as a string; i.e. select * from table where column = $myrow[0] -- instead of evaluating $myrow[0] as a variable. The SQL statement is retrieved in the first c

RE: [PHP] file upload question

2003-01-24 Thread Ford, Mike [LSS]
> -Original Message- > From: Andrew Rench [mailto:[EMAIL PROTECTED]] > Sent: 24 January 2003 17:05 > > the following code: > > > > ="post"> > > Send this file: > > > echo $_FILES['userfile']['tmp_name']; > ?> > > > > produces the following after upload: > > /var/tmp/phplSTEVp

Re: [PHP] help me

2003-01-24 Thread Jim Lucas
the only difference to structure is this line is in the first file and not the second. fw_menu_2.addMenuItem("STANDARD PROMOTION","location='http://www.bis.org.in/sf/sfp2.htm'"); diff is a wonderful tool!!! Enjoy Jim - Original Message - From: "Amit Gupta" <[EMAIL PROTECTED]> To: <[EMA

Re: [PHP] file upload question

2003-01-24 Thread Adam Voigt
This may just be me but I've never gotten upload to work where the form is posting to the same page, try moving it to two pages. On Fri, 2003-01-24 at 12:05, Andrew Rench wrote: the following code: " method ="post">

[PHP] file upload question

2003-01-24 Thread Andrew Rench
the following code: Send this file: produces the following after upload: /var/tmp/phplSTEVp (or php[something-or-other]) When I view that directory, it is empty. I put togther this simple test script because I was having problems with similar script that uses the move_uploaded_file()

Re: [PHP] why is mv copying ??

2003-01-24 Thread Jim Lucas
I am guessing that apache isn't the owner of the file. therefor it can't delete it from it original position. mv in unix basically copies the file pointer from one place and to another place. then deletes the original pointer. if you don't have permission to delete the file from its original po

[PHP] File upload problems beginning in 4.3.0

2003-01-24 Thread Felicia Neff
I am running the following code in php-4.3.0: _FILES[portrait]: \n"; print_r($portrait); print ""; $portrait = $_GLOBALS["portrait"]; print "_FILES[portrait]: \n"; print_r($portrait); print $_FILES["portrait"]["error"]; print ""; ?> The file does not appear to be uploaded. However, wi

Re: [PHP] URLencode issues - halp!

2003-01-24 Thread Ernest E Vogelsinger
At 22:30 23.01.2003, David T-G spoke out and said: [snip] >...and then SpyProductions Support Team said... >% >% I am having some issues, apparently, with URL encode. >... >% >% I decided to use this because people are allowed to use *any* key as part of >

[PHP] ob woes...

2003-01-24 Thread Serge Paquin
Hello All, I am making headway but I still seem to be having some problems. Whenever I have executing I get the following message: Warning: ob_gzhandler() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in This happens on ob_end_flush() The strange thing is that ob_star

[PHP] Re: Need Coding Help With getdate()

2003-01-24 Thread Philip Hallstrom
Replace your last line with this... $date = $month . $mday . $year Or take a look at the date() command... something like: $date = date("mdy", time()); would do the same thing (check the man page for sure). On Fri, 24 Jan 2003, Guru Geek wrote: > Hello, > > I'm trying to use getdate() and th

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread nico
No it's simple php file on websites with include on websites Nico "Michael Sims" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Fri, 24 Jan 2003 13:05:16 +0100, you wrote: >and my ls dir >-rw--- 1 nobody nobody 3687 Jan 23 14:25 phpqlG5ny >-

Re: [PHP] help with perl equivalent ?

2003-01-24 Thread R'twick Niceorgaw
Thanks Sean That worked :) -R'twick - Original Message - From: "Sean Burlington" <[EMAIL PROTECTED]> To: "R'twick Niceorgaw" <[EMAIL PROTECTED]> Cc: "php" <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 11:07 AM Subject: Re: [PHP] help with perl equivalent ? > R'twick Niceorgaw wrot

Re: [PHP] ? in URLS.

2003-01-24 Thread 1LT John W. Holmes
> > if it's just the string after the ? then use > > $QUERY_STRING can't remember which $_* variable > > it's under... > > $_GET is the superglobal array for URL variables. And the Query_String is in $_SERVER, as $_SERVER['QUERY_STRING']. ---John Holmes... -- PHP General Mailing List (http://w

[PHP] Need Coding Help With getdate()

2003-01-24 Thread Guru Geek
Hello, I'm trying to use getdate() and then create a numeric value based on putting the month (numeric), the date, and the year all together, side by side in one variable. Here's my code: But all I get is a blank when I look at $date in the browser. Any idea why that is? Thanks in advance, Ro

RE: [PHP] ? in URLS.

2003-01-24 Thread Chris Shiflett
--- Martin Towell <[EMAIL PROTECTED]> wrote: > if it's just the string after the ? then use > $QUERY_STRING can't remember which $_* variable > it's under... $_GET is the superglobal array for URL variables. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] help with perl equivalent ?

2003-01-24 Thread Sean Burlington
R'twick Niceorgaw wrote: Hi all, I'm pretty much a stranger to perl and now got to convert a perl script to php. however, at once place I can not understand what the lines are doing and what could be the equivalent of them in php. Could some one help me with this ? Here's my perl code : $choi

Re: [PHP] Has This Been Done?

2003-01-24 Thread 1LT John W. Holmes
I wrote a simple little class last night that does something like this. It'll parse php.ini style configuration files and turn the "variable=value" lines into form elements and make the comments into regular HTML lines and throws it all into table rows. Then, when the form is submitted, you simply

[PHP] help with perl equivalent ?

2003-01-24 Thread R'twick Niceorgaw
Hi all, I'm pretty much a stranger to perl and now got to convert a perl script to php. however, at once place I can not understand what the lines are doing and what could be the equivalent of them in php. Could some one help me with this ? Here's my perl code : $choice=~s/\.rm//; $choicedi

Re: [PHP] IP address

2003-01-24 Thread Chris Shiflett
--- "K.C.P. van Zijl" <[EMAIL PROTECTED]> wrote: > Is it possible in PHP to determine the IP address > of a server which is requesting a page from my own > server? When I use $REMOTE_ADDR, I get the wrong IP > address. In that case I get the IP address of a > person who is requesting the page on th

Re: [PHP] Has This Been Done?

2003-01-24 Thread Maxim Maletsky
Pear has an interesting installer. Try checking it out -- Maxim Maletsky [EMAIL PROTECTED] "Stephen" <[EMAIL PROTECTED]> wrote... : > Just a question but has something like ever been done? > > A PHP script that would create an installation form for any other PHP script >developed by the us

[PHP] Re: ob_start strangness

2003-01-24 Thread Serge Paquin
Ok. It was a late night. A fresh morning helped me solve my own problem. I was using ob_end_clean rather than ob_end_flush. I though I was going crazy! Serge. In article <[EMAIL PROTECTED]>, "Serge Paquin" <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to get ob_start to work the

[PHP] Php support for Java

2003-01-24 Thread John Wells
In an app I'm developing I have a need to call java classes, and am hoping to use PHP's java integration. However, the manual page (http://www.php.net/manual/en/ref.java.php) says "This extension is EXPERIMENTAL. The behaviour of this extension -- including the names of its functions and anything

[PHP] ob_start strangness

2003-01-24 Thread Serge Paquin
Hello, I am trying to get ob_start to work the way I expect but I am running into some problems. Take the following example code: /* Start of code snippet */ function ob_spit_content_length ($buffer) { $len=strlen($buffer); if($len>0) Header( "Content-Length: $le

[PHP] Chmod funk

2003-01-24 Thread Liam . Gibbs
This line of code: if(!is_readable("Constants.inc")) chmod("Constants.inc", 0644); Produces this error: Warning: chmod() [function.chmod]: Operation not permitted in /home/mastersite/public_html/index.php on line 6 What I'm trying to do is determine if Constants.inc is readable. If not, I want

[PHP] DPHPEdit New version

2003-01-24 Thread Davor Pleskina
Hello, PHP developers, A new version (1.03, 2003-01-24) of Davor's PHP Editor has just been released. This version includes many recently requested features, including following: 1) Editor now supports following languages: English - Croatian - French - German (Many thanks to Louis Philippe Hube

[PHP] IP address

2003-01-24 Thread K.C.P. van Zijl
Hi all, Is it possible in PHP to determine the IP address of a server which is requesting a page from my own server? When I use $REMOTE_ADDR, I get the wrong IP address. In that case I get the IP address of a person who is requesting the page on that other server. Hopefully my question i

Re: [PHP] Strange anomolie with each() and mysql_fetch_array()

2003-01-24 Thread Rick Emery
> Because that magic incantation that Rasmus taught me many years ago will > take every field/column of the returned database row and make a variable > named the same thing with the corresponding value Use this (damned sight easier): extract($row) - Original Message - From: "Daevid Vince

RE: [PHP] Starting sessions, registering variables, destroying sessions with global_variables off....

2003-01-24 Thread Rich Gray
Phil It should be as easy as .. You'll need a session_start() on all pages that will be using the $_SESSION[] array. Is your session.save_path pointing to a writable directory? Do you see any errors in the server logs when you try to start a session? Rich -Original Message- From: Phil Sch

RE: [PHP] Strange anomolie with each() and mysql_fetch_array()

2003-01-24 Thread Daevid Vincent
> First, if you expect only a single row returned, why are you > using a while(){} construct? > Third, each() operates on succeeding elements of an array; > there are only two elements aparrently, > so what are you expecting eac() to do? Because that magic incantation that Rasmus taught me many

Re: [PHP] php performance

2003-01-24 Thread Brent Baisley
It doesn't sound like you've testing to see where the bottleneck is. I would first recommend inserting some microtime() commands into you PHP code, like around your queries and blocks of PHP code. This will tell you what is taking the longest time and will point you in the right direction. Next

  1   2   >