Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Jason Wong
On Wednesday 06 April 2005 14:41, Kim Madsen wrote: > User and group is apache. It made _no_ difference at all, I´m still > getting permission denied, when calling fopen :-/ > > [EMAIL PROTECTED] dev]# ls -al ttyS* > crw-rw-rw- 1 apache apache 4, 64 Apr 5 16:01 ttyS0 Well if "other" has "rw" th

[PHP] include with remoted address

2005-04-06 Thread silverio . di
Hi to all, I've wrote a program with a web-browser interface (IE) and a built-in server (INDY) which call the php-cgi.exe CGI application and redirect stdio/stdout/sterr to pass .php scripts readed from a crypted and zipped sets of files. The arguments are passed between QUERY_STRING enviroment

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Kim Madsen
> -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 06, 2005 9:36 AM > Well if "other" has "rw" then it doesn't really matter who owns the file. My point exactly! > What does the php error log say? Samething as on the site: "Apr 6 10:16:12 lage

[PHP] select several files and download them simultaneous

2005-04-06 Thread Thomas Franz
Hello, is there a way to download a set of files at once, without zipping them. I want to offer my visitors to select several files for download. Now i don't know how i can handle the download at once. Any ideas or solutions? Thanks Thomas -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Burhan Khalid
Kim Madsen wrote: -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 9:36 AM Well if "other" has "rw" then it doesn't really matter who owns the file. My point exactly! What does the php error log say? Samething as on the site: "Apr 6 10:16

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Kim Madsen
> -Original Message- > From: Burhan Khalid [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 06, 2005 10:43 AM > Are you running mod_security? Nops: [EMAIL PROTECTED] ~]# httpd -l Compiled in modules: core.c prefork.c http_core.c And SELinux is now disabled, still no change...

[PHP] if question

2005-04-06 Thread William Stokes
Hello, I need to test if a variable value is 3 or 6 or 9 or 12 or 15 or 18 ... goes on like this. How this can be done? Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Jason Wong
On Wednesday 06 April 2005 16:18, Kim Madsen wrote: > > Are you running SELinux? > > Jeps, that?s installed, but I have no clue, what that is and do. The > server with the problem runs Feodora 3, I?m running RH9 on my own > servers. Check the archives, there have been a lot of people having proble

Re: [PHP] if question

2005-04-06 Thread Andy Pieters
On Wednesday 06 April 2005 10:47, William Stokes wrote: > Hello, > > I need to test if a variable value is 3 or 6 or 9 or 12 or 15 or 18 ... > goes on like this. > > How this can be done? > > Thanks > -Will switch($yourvar) {case 3: somestuff; break; case 6: somestuff;

[PHP] what are {} used for in php?

2005-04-06 Thread Jacques
I have often seen php code included inside braces. What does this mean or do? Jacques -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fwd: [PHP] if question

2005-04-06 Thread Ken
On Apr 6, 2005 10:47 AM, William Stokes <[EMAIL PROTECTED]> wrote: > > Hello, > > I need to test if a variable value is 3 or 6 or 9 or 12 or 15 or 18 ... > goes > on like this. > > How this can be done? > > Thanks > -Will > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscrib

[PHP] Re: SQL statement - date

2005-04-06 Thread kyriacos sakkas
Jacques wrote: > How should I formulate my sql statement to create a result set of members > who registered between now and 7 days ago? > > I have tried the following and it is obviously incorrect: > > $sqlnewmembers = "Select uid, uprofilename from tblusers where udatereg > between (date() and

Re: [PHP] if question

2005-04-06 Thread Burhan Khalid
William Stokes wrote: Hello, I need to test if a variable value is 3 or 6 or 9 or 12 or 15 or 18 ... goes on like this. How this can be done? if ($var % 3 == 0) { echo $var." is divisible by 3"; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

RE: [PHP] if question

2005-04-06 Thread Kim Madsen
> -Original Message- > From: William Stokes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 06, 2005 10:48 AM > I need to test if a variable value is 3 or 6 or 9 or 12 or 15 or 18 ... > goes > on like this. > > How this can be done? Have a look at modulus: http://dk.php.net/manual/e

[PHP] POST parsing troubles

2005-04-06 Thread kyriacos sakkas
Hi, I have the following problem: An external system passes me a post request as bellow (server names etc changed): POST /cgi-bin/sms-weather HTTP/1.1 Host: sms-app.company.com X-Recipient: 12345:0:0 X-Sender: 040123456:0:0 X-Service: weather Content-Length: 7 WEATHER ==

Re: [PHP] To session or not to session [SOLVED]

2005-04-06 Thread Andy Pieters
Thank you all for your input. Andy -- Registered Linux User Number 379093 -- Feel free to check out these few php utilities that I released under the GPL2 and that are meant for use with a php cli binary: http://www.vlaamse-kern.com/sas/ -- -- PHP General Mailing List (http://www.php.net/) T

[PHP] Re: if question

2005-04-06 Thread kyriacos sakkas
possible solution: http://www.php.net/function.in-array William Stokes wrote: > Hello, > > I need to test if a variable value is 3 or 6 or 9 or 12 or 15 or 18 ... goes > on like this. > > How this can be done? > > Thanks > -Will -- Kyriacos Sakkas Netsmart Development Team Tel: + 357 22

Re: [PHP] if question

2005-04-06 Thread Lars B. Jensen
> I need to test if a variable value is 3 or 6 or 9 or 12 or 15 or 18 ... goes if ($variable%3 == 0) #do something -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com

RE: [PHP] POST parsing troubles

2005-04-06 Thread Hodicska Gergely
> I need to get all the X headears (which I can) plus the > content from this POST. My problem is that the content is not > a key/value pair, and so does not apear as a _POST[] variable http://hu2.php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data Felhő -- PHP General Mailing L

[PHP] noob need help for sessions

2005-04-06 Thread p80
I'm having problem with my session, when I login my session is registered ok but when I click on another page it's canceled again. I use that kind of link: index.php?menu=voyage&sid=$sess_id then on top of the page I use: if(session_id()){ session_id(strip_tags($_GET['sid'])); session_start();

Re: [PHP] POST parsing troubles

2005-04-06 Thread kyriacos sakkas
Hodicska Gergely wrote: >>I need to get all the X headears (which I can) plus the >>content from this POST. My problem is that the content is not >>a key/value pair, and so does not apear as a _POST[] variable > > > http://hu2.php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data >

Re: [PHP] noob need help for sessions

2005-04-06 Thread Chris Ramsay
session_start() has to be at the top of the page... cheers

[PHP] Preventing automated account creation

2005-04-06 Thread coding
Hi, I have been investigating ways of preventing automated account creation on the e-commerce system I am currently working on. Obviously I have seen the graphical solutions to this problem, a small image containing several letters and numbers which must be typed in by the user to conf

Re: [PHP] what are {} used for in php?

2005-04-06 Thread Jochem Maas
Jacques wrote: I have often seen php code included inside braces. What does this mean or do? you mean inside a double quoted string? like: $var = "{$myArray[$myAssocKey]} {$myObj->property}"; ?> the braces are used to delimit the variables that are to be interpolated, this is done to make sure t

[PHP] Command-line php in debian/woody

2005-04-06 Thread Robert S
I am running a Woody server. I'd like to run php scripts from the command line, but I note that the php/php4 executable is not in my PATH. I have php4, version 4.1.2-7.0.1 installed. Is the command-line option available with this version, or do I need to install another package? I understand t

[PHP] swf and getimagesize problem

2005-04-06 Thread 牛坤
Dear phpers, I've got some swf file to be tested their size with php. But it worked on some of the swf files. Some don't. I wonder if someone could tell me why. Any help will be appreciated:) Thanks in advance. Sincerely, Kun -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] POST parsing troubles

2005-04-06 Thread kyriacos sakkas
Hodicska Gergely wrote: >>I need to get all the X headears (which I can) plus the >>content from this POST. My problem is that the content is not >>a key/value pair, and so does not apear as a _POST[] variable > > > http://hu2.php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data >

[PHP] sprintf and arrays.

2005-04-06 Thread Duncan Hill
I have a snippet of code that looks something like: if (is_array($p_sub_values)) { foreach ($p_sub_values as $i => $v) { $p_sub_values_str[$i] = "'$v'"; } $s = join(',', $p_sub_values_str); $r = htmlentities(sprintf($tmp[0], $s, ENT_QUOTES); } $tmp[0] in th

Re: [PHP] plug-in forum

2005-04-06 Thread Ryan A
Hey Davy, Thanks for replying. I checked out punbb before, a fantastic forum coz its real simple, and if you want more complex stuff it supports it via "mods"...problem is the mods can be a pain in the @ss when upgrading and I need something a little more powerful (private messageing, polls etc) s

Re: [PHP] Exchanging Data among processes

2005-04-06 Thread Matheus Degiovani
Hello Richard, Shared Memory. http://php.net/shmop Not for the faint of heart. :-) Oooh... this seems sweet... :) Thanks a lot! Cya. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] plug-in forum

2005-04-06 Thread Davy Obdam
Hi Ryan, Yes i agree the "mods" are a problem with upgrading. Its a great forum when you dont need all the more complex stuff. Good luck with your forum intergration!:-) Cheers, Davy Ryan A wrote: Hey Davy, Thanks for replying. I checked out punbb before, a fantastic forum coz its real simple, a

Re: [PHP] Preventing automated account creation

2005-04-06 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Hi, I have been investigating ways of preventing automated account creation on the e-commerce system I am currently working on. Obviously I have seen the graphical solutions to this problem, a small image containing several letters and numbers which must be type

Re: [PHP] Command-line php in debian/woody

2005-04-06 Thread Burhan Khalid
Robert S wrote: I am running a Woody server. I'd like to run php scripts from the command line, but I note that the php/php4 executable is not in my PATH. Should you ask this at a debian list? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what are {} used for in php?

2005-04-06 Thread Josip Dzolonga
Jacques wrote: I have often seen php code included inside braces. What does this mean or do? Jacques A code block, rtfm :-) -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Preventing automated account creation

2005-04-06 Thread Josip Dzolonga
[EMAIL PROTECTED] wrote: Hi, I have been investigating ways of preventing automated account creation on the e-commerce system I am currently working on. Obviously I have seen the graphical solutions to this problem, a small image containing several letters and numbers which must be typed

[PHP] setcookie ???

2005-04-06 Thread William Stokes
This doesn't set the cookie? Can you see why? I can't... $showbrowseteam = 'somejargon'; setcookie("showbrowseteam","$showbrowseteam",0,"/"); Thanks -will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what are {} used for in php?

2005-04-06 Thread kalinga
http://www.wellho.net/question/H1_5.html and try google. vk. On Apr 6, 2005 2:55 PM, Jacques <[EMAIL PROTECTED]> wrote: > I have often seen php code included inside braces. What does this mean or > do? > > Jacques > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit

Re: [PHP] Command-line php in debian/woody

2005-04-06 Thread Robert S
> Should you ask this at a debian list? I tried . . .no luck. I thought that you php folks might know a bit more about specific versions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Call a Function Held in a $_GET Var

2005-04-06 Thread Shaun
Hi, If I have a function name held in a $_GET variable for example ...&func=print_user_list how can I call the function dynamically? ie. $_GET['func']() Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Preventing automated account creation

2005-04-06 Thread Mikey
> Well, CAPTCHA ( http://en.wikipedia.org/wiki/Captcha) is a > pretty neat solution ( > http://www.pear.php.net/package/Text_CAPTCHA ). You can also > generate random numbers (www.php.net/rand > www.php.net/mt_rand) and combining it with this PEAR package > http://www.pear.php.net/package/Numb

[PHP] Simple array question, array delete

2005-04-06 Thread Ryan A
Hey, I have a $data_recs array like this: 12 445 45655 4 343 etc when the user gives me a number, i have to check if its in the array and delete that entry...how do i do that? I have looked at the manual but have gotten confused with array pop,splice,array_key_exists etc Thanks, Ryan --

Re: [PHP] Call a Function Held in a $_GET Var

2005-04-06 Thread Josip Dzolonga
Shaun wrote: Hi, If I have a function name held in a $_GET variable for example ...&func=print_user_list how can I call the function dynamically? ie. $_GET['func']() Thanks for your help Well, call_user_func() [ http://www.php.net/call_user_func ] will do the job. But that is really bad, b

Re: [PHP] Command-line php in debian/woody

2005-04-06 Thread Andy Pieters
Hi You might want to download the php source and compile the cli binary yourself (Command Line Interface) It takes only little time compared to compiling it as an apache module Once you got thing setup, you can drop the php extension and just put a shebang like this #! /usr/bin/php At the s

Re: [PHP] include with remoted address

2005-04-06 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: A this point to include a file in a my script I must use for each .PHP file: There is another way (i think to php.ini) to set default include, require_once, working area to my 'http://localhost:xxx/' avoid to manually insert upon code ? There is the include_dir directive i

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Josip Dzolonga
Ryan A wrote: Hey, I have a $data_recs array like this: 12 445 45655 4 343 etc when the user gives me a number, i have to check if its in the array and delete that entry...how do i do that? I have looked at the manual but have gotten confused with array pop,splice,array_key_exists etc Thanks, R

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Ken
On Apr 6, 2005 3:09 PM, Ryan A <[EMAIL PROTECTED]> wrote: > > Hey, > I have a $data_recs array like this: > > 12 > 445 > 45655 > 4 > 343 > etc > > when the user gives me a number, i have to check if its in the array and > delete that entry...how do i do that? > I have looked at the manual bu

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Ken
On Apr 6, 2005 3:27 PM, Ken <[EMAIL PROTECTED]> wrote: > > On Apr 6, 2005 3:09 PM, Ryan A <[EMAIL PROTECTED]> wrote: > > > Hey, > > I have a $data_recs array like this: > > > > 12 > > 445 > > 45655 > > 4 > > 343 > > etc > > > > when the user gives me a number, i have to check if its in the

[PHP] setcookie ???

2005-04-06 Thread Ken
On Apr 6, 2005 2:30 PM, William Stokes <[EMAIL PROTECTED]> wrote: > > This doesn't set the cookie? Can you see why? I can't... > > $showbrowseteam = 'somejargon'; > setcookie("showbrowseteam","$showbrowseteam",0,"/"); > > Thanks > -will > > -- > PHP General Mailing List (http://www.php.net/) >

Re: [PHP] Command-line php in debian/woody

2005-04-06 Thread Christophe Chisogne
Robert S a écrit : I am running a Woody server. I'd like to run php scripts from the command line, but I note that the php/php4 executable is not in my PATH. just install php4-cgi package (apt-get install php4-cgi) and the PHP 4 CLI will be install : /usr/bin/php4 Next time, try to use 'apt-cache

Re: [PHP] Command-line php in debian/woody

2005-04-06 Thread kalinga
just download the php4-cli deb package and install it, i think this should work, and correct me if it's a stupid idea. and Sarge is ok for me, i'm running a production e-mail server for last 6 months with a heavy load on it, i'm using php4-cli on it for my 'home made' exim4 administration utility,

Re: [PHP] Anybody getting these also?

2005-04-06 Thread John Nichel
Andy Pieters wrote: -- Forwarded Message -- Subject: Date: Wednesday 06 April 2005 07:30 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Thank you for contacting ActiveWire Inc! Nope, /dev/null gets it for me. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTEC

[PHP] Re: Simple array question, array delete

2005-04-06 Thread Satyam
Anyway, as the replies already show, you have to have a key to identify the record to be deleted, otherwise, I don't see there can be a way. Why don't use the data as key as well? Satyam "Ryan A" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey, > I have a $data_recs array li

Re: [PHP] Critical Thinking, or Several "Why" Questions

2005-04-06 Thread Jason Barnett
> > I do not question usefulness of include_once(). In fact, currently I'm > developing application that might use it exactly the way you described. > There are many API functions in several files, and there are cases when > I do not need all of them. That is exactly why I am concerned with it's >

Re: [PHP] Re: registering session with user and password

2005-04-06 Thread Jason Barnett
Tomás Rodriguez Orta wrote: ... > what is the differnece between isset($_session['use']) and > session_is_registered('user') ? session_register() and session_is_registered() rely on the php.ini directive register_globals. Register_globals *can* be an ugly monster that gives crackers an easy

[PHP] secure document : solution wanted

2005-04-06 Thread Charles Hamel
Hi I am bulding a secure intranet.(php, mysql, apache) I am using a session and Mysql to handel the user accounts. Everythying works fine with that. The client now needs to share word/pdf document with the registered user. I created a secure directory using .htaccess for this purpose and it wor

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Eric Gorr
Charles Hamel wrote: Hi I am bulding a secure intranet.(php, mysql, apache) I am using a session and Mysql to handel the user accounts. Everythying works fine with that. The client now needs to share word/pdf document with the registered user. I created a secure directory using .htaccess for thi

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Duncan Hill
On Wednesday 06 April 2005 16:23, Charles Hamel typed: > Hi > > I am bulding a secure intranet.(php, mysql, apache) > I am using a session and Mysql to handel the user accounts. Everythying > works fine with that. > > The client now needs to share word/pdf document with the registered user. I > cre

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Duncan Hill
On Wednesday 06 April 2005 16:32, Eric Gorr typed: > Perhaps, https? HTTPS is a transport security layer, not an authentication or access control layer. -- My mind not only wanders, it sometimes leaves completely. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] PDO and Oracle

2005-04-06 Thread Charles FENDT
I try to use PDO with Oracle and PHP 5.0.4 on windows... my php.ini includes php_pdo.dll and when I try to create an object, I got an error message "could not find driver" Any idea ? regards, FENDT Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] sprintf and arrays.

2005-04-06 Thread Brent Baisley
For one, you are missing a right parenthesis ) in all of your examples. htmlentities( sprintf( $tmp[0], $s, ENT_QUOTES ) Second, the string you are trying to format only has one variable argument: $s. Fred likes %1$s on his %2$s You have it numbered for ordering, but you are still ordering one

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Eric Gorr
Duncan Hill wrote: On Wednesday 06 April 2005 16:32, Eric Gorr typed: Perhaps, https? HTTPS is a transport security layer, not an authentication or access control layer. I understand that. However, some pages can only be accessed if a user uses https. I though this might be the case here, but pe

[PHP] PDO and Oracle

2005-04-06 Thread Charles FENDT
I try to use PDO with Oracle and PHP 5.0.4 on windows... my php.ini includes php_pdo.dll and when I try to create an object, I got an error message "could not find driver" Any idea ? regards, FENDT Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Charles Hamel
"Duncan Hill" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wednesday 06 April 2005 16:23, Charles Hamel typed: >> Hi >> >> I am bulding a secure intranet.(php, mysql, apache) >> I am using a session and Mysql to handel the user accounts. Everythying >> works fine with that. >>

[PHP] Re: PDO and Oracle

2005-04-06 Thread Jason Barnett
Charles FENDT wrote: > I try to use PDO with Oracle and PHP 5.0.4 on windows... > my php.ini includes php_pdo.dll > and when I try to create an object, I got an error message "could not > find driver" > > Any idea ? > > regards, > > FENDT Charles I have never used Oracle or PDO I think you need t

Re: [PHP] Anybody getting these also?

2005-04-06 Thread Jochem Maas
John Nichel wrote: Andy Pieters wrote: -- Forwarded Message -- Subject: Date: Wednesday 06 April 2005 07:30 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Thank you for contacting ActiveWire Inc! Nope, /dev/null gets it for me. ;) John makes it all sounds so easy, I'll console my

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Eric Gorr
"Duncan Hill" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] IE dropped support (or severely neutered it) for username:password in URLs a while back. If anyone is interested, I found this document which appears to provide more details... http://support.microsoft.com/kb/834489 -- PH

[PHP] Simple array question, part 2

2005-04-06 Thread Ryan A
Hey, I have a $data array like this: [0] => 158 [1] => 169926 [2] => 169931 [3] => 169932 [4] => 169933 then when i delete the first one ([0] => 158) it becomes like this: [1] => 169926 [2] => 169931 [3] => 169932 [4] => 169933 how do I get it to sort again from

Re: [PHP] Anybody getting these also?

2005-04-06 Thread John Nichel
Jochem Maas wrote: John makes it all sounds so easy, I'll console myself with the fact that John 'carries' the title Ubergeek :-) (a title I can only hope to live upto :-) First requirement is to still have in your possession, a computer from the Atari/Commodore/Timex days. Root on your mail ser

RE: [PHP] Simple array question, part 2

2005-04-06 Thread Jay Blanchard
[snip] I have a $data array like this: [0] => 158 [1] => 169926 [2] => 169931 [3] => 169932 [4] => 169933 then when i delete the first one ([0] => 158) it becomes like this: [1] => 169926 [2] => 169931 [3] => 169932 [4] => 169933 how do I get it to sort again fr

RE: [PHP] Anybody getting these also?

2005-04-06 Thread Jay Blanchard
[snip] First requirement is to still have in your possession, a computer from the Atari/Commodore/Timex days. Root on your mail server helps too. [/snip] Does the Trash-80 count? I thought about giving it to an archaeology group for study, but it is holding down a stack of box lids in my garage.

Re: [PHP] Simple array question, part 2

2005-04-06 Thread Josip Dzolonga
Ryan A wrote: what function should i lookup/use? Thanks, Ryan This will do the job : $array = array_values($array); Hope this helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] Simple array question, part 2

2005-04-06 Thread Philip Hallstrom
Hey, I have a $data array like this: [0] => 158 [1] => 169926 [2] => 169931 [3] => 169932 [4] => 169933 then when i delete the first one ([0] => 158) it becomes like this: [1] => 169926 [2] => 169931 [3] => 169932 [4] => 169933 how do I get it to sort again from 0,1,2,3

Re: [PHP] Anybody getting these also?

2005-04-06 Thread John Nichel
Jay Blanchard wrote: [snip] First requirement is to still have in your possession, a computer from the Atari/Commodore/Timex days. Root on your mail server helps too. [/snip] Does the Trash-80 count? I thought about giving it to an archaeology group for study, but it is holding down a stack of b

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Duncan Hill
On Wednesday 06 April 2005 17:02, Charles Hamel wrote: > "Duncan Hill" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > One way to handle this is to write a wrapper script that accepts the file > > name > > as a parameter. The script verifies that the user is allowed to access >

Re: [PHP] sprintf and arrays.

2005-04-06 Thread Duncan Hill
On Wednesday 06 April 2005 16:40, Brent Baisley wrote: > For one, you are missing a right parenthesis ) in all of your examples. > htmlentities( sprintf( $tmp[0], $s, ENT_QUOTES ) Meh, syntax blip from the cut and paste. > Second, the string you are trying to format only has one variable > argum

RE: [PHP] Simple array question, part 2

2005-04-06 Thread Jay Blanchard
[snip] Nope, array_pop is just deleting the last key/valuei need to reindex it without deleteing anything. [/snip] Always reply to the list ('reply all') as the individual who answered you might not be there. Always. I mean it. You shouldn't just delete an item from an array, it is improper h

RE: [PHP] Anybody getting these also?

2005-04-06 Thread Jay Blanchard
[snip] Jay Blanchard wrote: > [snip] > First requirement is to still have in your possession, a computer from > the Atari/Commodore/Timex days. Root on your mail server helps too. > [/snip] > > Does the Trash-80 count? I thought about giving it to an archaeology > group for study, but it is hold

Re: [PHP] Anybody getting these also?

2005-04-06 Thread John Nichel
Jay Blanchard wrote: Dammittohell! No ÜberGeek for me. It's just as well, I can't pronounce it or anything. I wouldn't lose sleep over it. I think the people here at work are actually making fun of me when they 'changed my title'. Maybe it's because at almost 40, I still collect comic books, a

RE: [PHP] Anybody getting these also?

2005-04-06 Thread Jay Blanchard
[snip] I wouldn't lose sleep over it. I think the people here at work are actually making fun of me when they 'changed my title'. Maybe it's because at almost 40, I still collect comic books, and watch Star Trek. :o [/snip] Well, I'm between 45 and 50 and still collect football cards, play dis

Re: [PHP] sprintf and arrays.

2005-04-06 Thread Brent Baisley
Making life groovy has been difficult since the 60's. You want to have sprintf look at the contents of the variable instead of the variable itself. Anytime you want to do something like this you use the eval() function to evaluate the contents of the variable. On Apr 6, 2005, at 12:46 PM, Duncan

[PHP] Re: PDO and Oracle

2005-04-06 Thread M. Sokolewicz
Jason Barnett wrote: Charles FENDT wrote: I try to use PDO with Oracle and PHP 5.0.4 on windows... my php.ini includes php_pdo.dll and when I try to create an object, I got an error message "could not find driver" Any idea ? regards, FENDT Charles I have never used Oracle or PDO I think you need t

[PHP] Need help: change a string in a file

2005-04-06 Thread Saswat Praharaj
Hi All, I need some help in searching string in a file. My requirement is to search the string,append something to the string . Write the string back to the file without changing other parts of the file. e.g Suppose I have the following string in a file Set-Cookie: T_COOKIE=127.0.0.1-saswat

Re: [PHP] Simple array question, part 2

2005-04-06 Thread Ryan A
PERFECT! Thanks mate. -Ryan On 8/6/2005 6:47:22 PM, Josip Dzolonga ([EMAIL PROTECTED]) wrote: > Ryan A wrote: > > > > >what function should i lookup/use? > > > > > >Thanks, > > >Ryan > > > > > This will do the job : > > $array = array_values($array); > > > > Hope this helps, > > > >

Re: [PHP] Simple array question, part 2

2005-04-06 Thread Brent Baisley
Just so you know what is happening, the numbers are keys (index) for each array element, not the order number. It's the same as if you had named the elements themselves. Like this: ['zero']=>158 ['one']=>169926 ['two']=>169931 ... Or [0]=>158 [12]=>169926 [5]=>169931 ... Deleting an element won'

RE: [PHP] Simple array question, part 2

2005-04-06 Thread Ryan A
Nope, array_shift()... is taking off the last one too Josip sent me the solution: $array = array_values($array); Cheers, Ryan On 4/6/2005 6:45:40 PM, Jay Blanchard ([EMAIL PROTECTED]) wrote: > [snip] > > Nope, array_pop is just deleting the last key/valuei need to reindex > > it > > with

Re: [PHP] Need help: change a string in a file

2005-04-06 Thread Philip Hallstrom
I need some help in searching string in a file. My requirement is to search the string,append something to the string . Write the string back to the file without changing other parts of the file. e.g Suppose I have the following string in a file Set-Cookie: T_COOKIE=127.0.0.1-saswat-9; path=/ The f

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Charles Hamel
"Duncan Hill" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wednesday 06 April 2005 17:02, Charles Hamel wrote: >> "Duncan Hill" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> > One way to handle this is to write a wrapper script that accepts the >> > file >

[PHP] OT - Re: [PHP] Anybody getting these also?

2005-04-06 Thread Leif Gregory
Hello John, Wednesday, April 6, 2005, 10:29:48 AM, you wrote: J> First requirement is to still have in your possession, a computer from J> the Atari/Commodore/Timex days. Root on your mail server helps too. Heheh... I've still got (and most still working): Commodore 64 Commodore 128 Atari 2600

[PHP] Interesting, yet goofy behavior

2005-04-06 Thread Jay Blanchard
Let's say I have a form and the action is thus; \n"; Note the 'bid' attribute. Now, I have a case statement in which stuff takes place since the form has called it because of the 'bid' attribute. Before I break from the case I do this; unset($_GET['bid']); SIDEBAR: You should all note that I ma

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Interesting, yet goofy behavior

2005-04-06 Thread Mattias Thorslund
But, Jay: Am I missing something here? It's obvious that the 'bid' parameter will appear in the query string... That's how the form posts it. Yes, you can unset it if you like, but the form will still add it to the URL that it posts to, unless you change the "action" attribute of the form tag.

RE: [PHP] Interesting, yet goofy behavior

2005-04-06 Thread Jay Blanchard
[snip] Am I missing something here? It's obvious that the 'bid' parameter will appear in the query string... That's how the form posts it. Yes, you can unset it if you like, but the form will still add it to the URL that it posts to, unless you change the "action" attribute of the form tag. A

Re: [PHP] Interesting, yet goofy behavior

2005-04-06 Thread Mattias Thorslund
Jay Blanchard wrote: [snip] Am I missing something here? It's obvious that the 'bid' parameter will appear in the query string... That's how the form posts it. Yes, you can unset it if you like, but the form will still add it to the URL that it posts to, unless you change the "action" attribute of

Re: [PHP] Interesting, yet goofy behavior

2005-04-06 Thread John Nichel
Jay Blanchard wrote: Let's say I have a form and the action is thus; \n"; Note the 'bid' attribute. Now, I have a case statement in which stuff takes place since the form has called it because of the 'bid' attribute. Before I break from the case I do this; unset($_GET['bid']); SIDEBAR: You should a

Re: [PHP] Interesting, yet goofy behavior

2005-04-06 Thread Rasmus Lerdorf
Jay Blanchard wrote: Let's say I have a form and the action is thus; \n"; Note the 'bid' attribute. Now, I have a case statement in which stuff takes place since the form has called it because of the 'bid' attribute. Before I break from the case I do this; unset($_GET['bid']); SIDEBAR: You should a

[PHP] SQL ternary thing

2005-04-06 Thread Rory Browne
Hi I appreciate this is an SQL issue, more than a PHP issue, but since it isn't a DB specific issue, and I'm planning on using it with PHP(and I'm not subscribed to any SQL lists), I thought I'd post it here. I have a table a bit like the following: create table thing (name char(10), value boole

Re: [PHP] SQL ternary thing

2005-04-06 Thread Philip Hallstrom
CASE should do it... http://www.postgresql.org/docs/7.4/interactive/functions-conditional.html Say's it's SQL compliant so it should be fine for other db's as well... something like: SELECT name, CASE WHEN value=1 THEN name_if_true ELSE name_if_false END FROM thing; Migh

Re: [PHP] SQL ternary thing

2005-04-06 Thread Mattias Thorslund
Rory Browne wrote: Hi I appreciate this is an SQL issue, more than a PHP issue, but since it isn't a DB specific issue, and I'm planning on using it with PHP(and I'm not subscribed to any SQL lists), I thought I'd post it here. I have a table a bit like the following: create table thing (name char(

Re: [PHP] Command-line php in debian/woody

2005-04-06 Thread Robert S
>If you need more recent LAMP stuff on Woody (ex php5) add these lines >in your /etc/apt/sources.list: >deb http://packages.dotdeb.org ./ >deb-src http://sources.dotdeb.org ./ > >This will use recent Debian packages (backported for Woody) >from http://dotdeb.org/ That looks like what I'm after >T

Re: [PHP] plug-in forum

2005-04-06 Thread James Williams
Ryan A wrote: Hi, a client wants me to add a forum to his existing site...which is not a problem, the problem is he wants it to work off his existing site eg: once someone logs in to the main site they dont have to relogin or create new accounts in the forum section a one login gets you total s

Re: [PHP] plug-in forum

2005-04-06 Thread Ryan A
> Hey Ryan... I am actually coding a forum that meets all of you're > > > requirements, however it isn't done yet and I currently have another > project which takes priority. I should have an alpha out by the end of > april or may at the latest. When do you need this forum? > Hey James, I've act

  1   2   >