Re: [PHP] Something difference betwen php-4.0.3 and php-4.2.3

2003-01-24 Thread andre . lagadec
Hi, I modifiy my php.ini to redirect error message in log of server web and I change error_reporting = E_ALL ~E_NOTICE by error_reporting = E_ALL Now, I get in server log this message : [24-Jan-2003 08:59:31] PHP Notice: Undefined offset: 4 in /appli/PHP/test/__xyz__.php on line 15 and I

Re: [PHP] $_GET space in index changed to underscore

2003-01-24 Thread Per
1lt John W. Holmes wrote: Anyone who knows why get variables whit spaces in looking like this in the URL blah.php?aa+bb=1 is changed to aa_bb in $_GET resulting in $_GET['aa_bb'] instead of $_GET['aa bb']? That's just what PHP does. It'll also convert any periods in a form element name to an

Re: [PHP] Something difference betwen php-4.0.3 and php-4.2.3

2003-01-24 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: I modifiy my php.ini to redirect error message in log of server web and I change error_reporting = E_ALL ~E_NOTICE by error_reporting = E_ALL Now, I get in server log this message : [24-Jan-2003 08:59:31] PHP Notice: Undefined offset: 4 in

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

2003-01-24 Thread Chris Hewitt
ocean wrote: In a signup page , I want to verify some information what the user fill in ,inculde user name¡¢password¡¢email etc.But I don't know how to verify the available email address.Who can help me ? There is an email validation class here:

Re: [PHP] $_GET space in index changed to underscore

2003-01-24 Thread Marek Kilimajer
You can use $_SERVER['QUERY_STRING'] Per wrote: 1lt John W. Holmes wrote: Anyone who knows why get variables whit spaces in looking like this in the URL blah.php?aa+bb=1 is changed to aa_bb in $_GET resulting in $_GET['aa_bb'] instead of $_GET['aa bb']? That's just what PHP does. It'll

Re: [PHP] why is mv copying ??

2003-01-24 Thread Marek Kilimajer
And does apache have write permissions to the directory where the original file is located? Christian wrote: Hi all, Any idea why when I execute 'mv' in a php script the file is copied not moved? Apache is a member of the group which owns the file and has wrx permissions. Thanx, Christian

[PHP] value not displayed

2003-01-24 Thread Rahul
Hello All, When i pass a value through browser to a php page as below http://www.xyz.com/test.php?abc=test But when i try to display the variable abc as below ?php echo $abc; ? It is not showing anything in php-4.3.0. but the value is displayed in php-4.2.2 version. Regards, -sadha -- PHP

Re: [PHP] value not displayed

2003-01-24 Thread Ernest E Vogelsinger
At 10:55 24.01.2003, Rahul said: [snip] When i pass a value through browser to a php page as below http://www.xyz.com/test.php?abc=test But when i try to display the variable abc as below ?php echo $abc; ? It is not showing anything in php-4.3.0. but the

[PHP] File Permissions

2003-01-24 Thread Don Mc Nair
Sorry if this is not really PHP related but I can't get it to work. I am using fopen and I get the following: Warning: fopen(testfile2.php, w) - Permission denied in /usr/local/psa/home/vhosts/complementarymedicines.net/httpdocs/reg/regformte st.php on line 411 I have tried setting this

[PHP] Re: value not displayed

2003-01-24 Thread Don Mc Nair
Use ?php echo $_GET['abc']; ? Rahul [EMAIL PROTECTED] wrote in message 00b301c2c38e$c9d83f80$[EMAIL PROTECTED]">news:00b301c2c38e$c9d83f80$[EMAIL PROTECTED]... Hello All, When i pass a value through browser to a php page as below http://www.xyz.com/test.php?abc=test But when i try to

[PHP] Problem with simple update

2003-01-24 Thread Steve Jackson
I am trying to set the order of a set of categories. Previously the catid field sorted the order of the categories. However I changed this to Order By catorder and then set about writing a simple update query to allow people to set the order. I can't see anything wrong with this: Basically I pull

[PHP] reading mail in php

2003-01-24 Thread Bartosz Matosiuk
hi I'm writting an php application, a mail client, and I got a small problem. Reading mail is quite simple if it's a normall text, but I'm not sure how to read MIME mail. I thougt i could use eregi() and read separately every part, but I'm not sure if it's the best way to do this. Maybe someone

RE: [PHP] Something difference betwen php-4.0.3 and php-4.2.3

2003-01-24 Thread Ford, Mike [LSS]
-Original Message- From: Chris Hewitt [mailto:[EMAIL PROTECTED]] Sent: 24 January 2003 09:13 [EMAIL PROTECTED] wrote: I modifiy my php.ini to redirect error message in log of server web and I change error_reporting = E_ALL ~E_NOTICE by error_reporting = E_ALL Now, I get

Re: [PHP] File Permissions

2003-01-24 Thread Jason Wong
On Friday 24 January 2003 18:00, Don Mc Nair wrote: Sorry if this is not really PHP related but I can't get it to work. I am using fopen and I get the following: Warning: fopen(testfile2.php, w) - Permission denied in

Re: [PHP] File Permissions

2003-01-24 Thread Maxim Maletsky
try this: echo you . ( is_writable(testfile2.php)? 'can ' : 'cannot' ) . write; the function is_writable() will tell you in advance whether the file is writable or not. -- Maxim Maletsky [EMAIL PROTECTED] Don Mc Nair [EMAIL PROTECTED] wrote... : Sorry if this is not really PHP related

[PHP] Files PHP in tmp ?

2003-01-24 Thread nico
Hello, I've a lot of files named php in my tmp folders .. What's these files ? Nico -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URLencode issues - halp! - code included

2003-01-24 Thread Marek Kilimajer
besides urlencode you should also use htmlspecialchars SpyProductions Support Team wrote: Here is some code: From a form, I get username as $name and it goes to the processing file for the form, where a sale happens and it sends the code to a different server like this: $data =

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread Marek Kilimajer
Those are temporery uploaded files, they should be there only while some script handling the upload is running, otherwise you have some problems. nico wrote: Hello, I've a lot of files named php in my tmp folders .. What's these files ? Nico -- PHP General Mailing List

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread nico
No, I have some 300 php and in these files , there is some html of my sites. Nico Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Those are temporery uploaded files, they should be there only while some script handling the upload is

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread nico
For information : i have php 4.3 (perhaps a new caching system) ? Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Those are temporery uploaded files, they should be there only while some script handling the upload is running, otherwise you have

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread Marek Kilimajer
Well, you should know what have installed, but there is no caching system by default. nico wrote: For information : i have php 4.3 (perhaps a new caching system) ? Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Those are temporery uploaded

Re: [PHP] Problem with simple update

2003-01-24 Thread Marek Kilimajer
remove the hidden field and use input type='text' size='2' name='catorder[{$array[catid]}]' value='{$array[catorder]}' in action script you do foreach($_POST['catorder'] as $catid = $catorder) { update categories set catorder=$catorder where catid=$catid } Steve Jackson wrote: I am trying

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread nico
'./configure' '--with-mysql' '--with-apache=../apache_1.3.27' '--enable-track-vars' '--with-imap=/var/imap-2002b/' '--with-gettext' '--with-png-dir=/var/libpng-1.0.15' '--with-zlib-dir=/var/zlib-1.1.4' My installation.. and my ls dir -rw--- 1 nobody nobody 3687 Jan 23 14:25

[PHP] How do I know alive session at this moment?

2003-01-24 Thread Henry

Re: [PHP] Something difference betwen php-4.0.3 and php-4.2.3

2003-01-24 Thread Chris Hewitt
Ford, Mike [LSS] wrote: Wrong. The offset is 4, the error message says so. Undefined offset means you Yes, true. That is me not looking hard enough at it! Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with simple update

2003-01-24 Thread Marek Kilimajer
You must run $result = mysql_query($query) or die(Query failure: .mysql_error()); within the foreach loop, else $query will be only the last query assigned. If you use get method in your form you need to use $_GET (or $_REQUEST) instead of $_POST Steve Jackson wrote: I can't get this to

[PHP] writing a backspace or del char in a file

2003-01-24 Thread ng
Hi i want to erease 'one' or more caracters in a file, so, if this file is too big ( 10MB ) i don't want to read entirely it to substr(); the last line and entirely re-write it... i like to write -at the end by exemple- the char backspace ( 0x08 ) ex : ?php $fp = fopen('some_file','a'); // or

[PHP] Has This Been Done?

2003-01-24 Thread Stephen
Just a question but has something like ever been done? A PHP script that wouldcreate an installation form for any other PHP script developed by the user. It would create the install form and make the configuration file. If it has, where can I find it? Thanks,Stephen

[PHP] WorldPay examples...

2003-01-24 Thread Brian McGarvie
I'm looking for an example of making payments via worldpay... --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.438 / Virus Database: 246 - Release Date: 07/01/03 -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Who is foo what is bar?

2003-01-24 Thread bob parker
On Fri, 24 Jan 2003 16:39, Rick Emery wrote: It comes from the acronym, FUBAR. This is military slang that has been around since WWII. FUBAR stands for: F**ked Up Beyond All Repair Ah! Now I understand why those are the only 2 class names used in tutorials and books on C++ Bob -- PHP

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread Michael Sims
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 -rw--- 1 nobody nobody621 Jan 22 21:06 phpqt95I4 -rw--- 1 nobody nobody424 Jan 23 00:04 phprM5Vkx [...] Some PHP applications do their own

Re: [PHP] Word Count

2003-01-24 Thread Craig
Using these methods, could you use it to insert additional text before and after the first word (or the nth word) e.g. $text = This is my text, for placement; $textWithAddedString = (word1 start)This(word1 end) is my text, for placement; Maxim Maletsky [EMAIL PROTECTED] wrote in message

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

2003-01-24 Thread Phil Schwarzmann
I just switched from a 4.06 server with global_variables ON to a 4.22 with global_variables OFF Can someone give me a quick run down of how to set/unset variables and register/destroy sessions with PHP 4.22 (global_variables OFF). I've been all through the php.net manual and still

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.

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] Starting sessions, registering variables, destroying sessions with global_variables off....

2003-01-24 Thread Rich Gray
Phil It should be as easy as .. ? session_start(); $_SESSION['foo'] = 'bar'; ? 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?

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 Vincent

[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

[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

[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 to

[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($len0) Header( Content-Length: $len

[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] 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 way I

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 user. It

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 that other

[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//;

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

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 :

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:

[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: ?php $today = getdate(); $month = $today['mon']; $mday = $today['mday']; $year = $today['year']; $date =

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

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 wrote: Hi all,

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

[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 then

[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: bWarning/b: ob_gzhandler() [a href='http://www.php.net/ref.outcontrol'ref.outcontrol/a]: output handler 'ob_gzhandler' cannot be used twice in This happens on

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] 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: ? $portrait = $_FILES[portrait]; print hr_FILES[portrait]: pre\n; print_r($portrait); print /pre; $portrait = $_GLOBALS[portrait]; print hr_FILES[portrait]: pre\n; print_r($portrait); print $_FILES[portrait][error]; print /pre; ? form

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

[PHP] file upload question

2003-01-24 Thread Andrew Rench
the following code: html body form enctype=multipart/form-data action=?= $PHP_SELF ? method =post input type=hidden name=MAX_FILE_SIZE value=1000 Send this file: input name=userfile type=file input type=submit value=Send File /form ?php echo $_FILES['userfile']['tmp_name']; ? /body /html

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: html body form enctype=multipart/form-data

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: [EMAIL

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: html body form enctype=multipart/form-data action=?= $PHP_SELF ? method =post input type=hidden name=MAX_FILE_SIZE value=1000 Send this file: input name=userfile

[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

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 table where

[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

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

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

[PHP] domxml_new_doc() utf8 encoding

2003-01-24 Thread Øyvind Vestavik
how do i create ?xml version=1.0 encoding=utf8?? domxml_new_doc(1.0) only creates ?xml version=1.0? 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:

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

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] 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 [EMAIL

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+. This

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 the $ so you keep

[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

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

[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. ? function ob_end_flush_all () { while ( ob_get_level() ) { ob_end_flush(); } } function ob_spit_content_length ($buffer) { $len=strlen($buffer);

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] 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? input type=checkbox name=user value=1 input type=checkbox name=user value=2 input type=checkbox name=user

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, but

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

[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
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? ###

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 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: Greg

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 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, user[]

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:

[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] 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 file

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] 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

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 select multiple, 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

[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] 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. See Method

[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:

[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*

[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

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? == while

Re: [PHP] checkboxes php

2003-01-24 Thread Rick Emery
select multiple 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.

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

  1   2   >