Re: [PHP] how to use HTTP_REFERER

2004-08-06 Thread raditha dissanayake
khuram noman wrote: hi i have 2 pages on my site one is index.php and other is join.php on index page there is link of join now when somee one comes to join now page i want to know from where it comes i means i want to know the referral page . iam using $HTTP_SERVER_VARS['HTTP_REFERER'] or

Re: [PHP] how to use HTTP_REFERER

2004-08-06 Thread Justin French
On 06/08/2004, at 2:43 PM, khuram noman wrote: hi i have 2 pages on my site one is index.php and other is join.php on index page there is link of join now when somee one comes to join now page i want to know from where it comes i means i want to know the referral page . iam using

[PHP] Re: Getting data from table as a tree

2004-08-06 Thread Torsten Roehr
Pt2002 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Sometimes, some clients just want a few scripts. sometimes to fix or to add some features in sites or apps already in production and that need to be something easy to install. kind of upload and go. They don't want a bundle

[PHP] Dreamweaver PHP

2004-08-06 Thread Vinayakam Murugan
Hello Our site involves a lot of forms which our designer has churned out of Dreamweaver. Now my task is to present the data in those forms after retrieving it from MySql. This takes up a lot of time and is error-prone too. Is there any better way of doing it? Can Dreamweaver be used

RE: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread Nicklas Bondesson
Are you getting this error on the Linux or the Windows box? Correct me if i'm wrong but the mailserver directive in php.ini is only valid for with PHP on the Windows platform? /Nicke -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: den 6 augusti 2004 05:50 To:

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-06 Thread Josh Acecool M
I dont have magic_quotes etc on, so when I use file_get_contents the EXACT, yes, EXACT file gets placed. Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Josh Acecool M: You dont understan.. Not anymore. Honestly I haven't had a clue what was going on till

Re: [PHP] Old HTML convert to XHTML Class?

2004-08-06 Thread Kin-Hing Lo
There are HTML Tidy Web Services avaliable, just found one quickly via Google: http://vsbabu.org/services/tidy/introspect.php PHP 5 has SOAP support built in, otherwise you'll need to find a class for SOAP/XML-RPC. PEAR has a class for XML RPC and Soap, NuSOAP is another nice SOAP client.

[PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Josh Acecool M
Stop E-Mailing me. http://www.acecoolco.com/legal.php - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 06, 2004 2:10 AM Subject: IMPORTANT: Please Verify Your Message html head meta http-equiv=Content-Type content=text/html;

[PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Josh Acecool M
I've requested that you do not contact me again. http://www.acecoolco.com/legal.php Please read the E-mail section properly. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 06, 2004 3:10 AM Subject: IMPORTANT: Please Verify Your Message html

Re: [PHP] PHP5 - Weird Error - cannot find element in variable

2004-08-06 Thread Miguel
Curt Zirzow wrote: * Thus wrote Scott Hyndman: Okay, I'm getting this error in a class I've written. I can't explain it. it works perfectly fine for me: http://zirzow.dyndns.org/html/php/oop5/IA.php With the information you provided its near impossible to tell you whats wrong. Curt I'm getting

Re: [PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Jason Wong
On Saturday 07 August 2004 03:34, Josh Acecool M wrote: I've requested that you do not contact me again. http://www.acecoolco.com/legal.php Please read the E-mail section properly. Do you realise that: 1) You're sending this to the list and not the list administration? 2) This has nothing

RE: [PHP] Re: IMPORTANT: Please Verify Your Message[Scanned]

2004-08-06 Thread Michael Egan
??? Now I'm utterly confused - admittedly it doesn't take much. The response from Ed Lazor was the first item I got on this topic but now I've received this one in response to the subsequent thread. I have of course been extremely careful not to reply to the address at 'acecoolco.com' having

[PHP] php fam problems

2004-08-06 Thread Benjamin Adler
hi! I'm trying to use the fam module from cli-php5 with the example code from http://de2.php.net/manual/en/ref.fam.php. It works, but when I copy a big file into an observed folder, I get a FAMCreated for the file, and then, while the copying is still in progress, multiple FAMChanged. I want to

RE: [PHP] php fam problems

2004-08-06 Thread Jay Blanchard
[snip] I'm trying to use the fam module from cli-php5 with the example code from http://de2.php.net/manual/en/ref.fam.php. It works, but when I copy a big file into an observed folder, I get a FAMCreated for the file, and then, while the copying is still in progress, multiple FAMChanged. I want

Re: [PHP] Need Some Direction

2004-08-06 Thread Aaron Todd
I hate to sound ignorant, but how do I get a file out of a .htaccess protected directory without logging in again? You cant use the normal syntax of http://username:[EMAIL PROTECTED] anymore. Microsoft fixed that bug. Thanks, Aaron Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Need Some Direction

2004-08-06 Thread Torsten Roehr
Aaron Todd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I hate to sound ignorant, but how do I get a file out of a .htaccess protected directory without logging in again? You cant use the normal syntax of http://username:[EMAIL PROTECTED] anymore. Microsoft fixed that bug.

Re: [PHP] Need Some Direction

2004-08-06 Thread Miles Thompson
At 05:42 PM 8/5/2004, Aaron Todd wrote: So far I have made this work. But now I have to ask...what about a pdf file? I cant add php code to it so what do I do. I need to be able to restrict the pdf so a user can only get to it during a current session. Thanks again for all the previous posts.

Re: [PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread John Holmes
Josh Acecool M wrote: Stop E-Mailing me. http://www.acecoolco.com/legal.php Stop pestering us with your eval a secret file with a secret string... i can't tell you anything problems, then. :) Please consider this spam. I'd love to see you enforce your legal agreement. -- John Holmes

[PHP] Voting PHP apps

2004-08-06 Thread Anton Krall
Guys. Anybody knows any PHP voting applications that would let you not only add your quesitons and answers but lso let the user add their own answers in case what they want wasn't on the included ones? Thx for any help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] RE: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Anton Krall
Who the hell is using this as their email address on a mailing list? Pardon my language. %-Original Message- %From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] %Sent: Viernes, 06 de Agosto de 2004 08:50 a.m. %To: [EMAIL PROTECTED] %Subject: IMPORTANT: Please Verify Your Message % %html

Re: [PHP] Strange PHP problem with mod_perl and MySQL

2004-08-06 Thread Justin Hannus
Make sure that your php and DBD::MySQL were compiled against the *same exact* library. Apache loads in mod_php and mod_perl on startup and if they in turn both load two separate libmysqlclient libs then you will get multiple defined symbols--which Apache cannot resolve. -Justin Hannus Phil

RE: [PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Ed Lazor
In addition to what everyone else has said, and in case you're not aware of it, this type of response to spam / junk mail does two things. First, it confirms for the spammer that your address is valid - ie. Potential target for mass marketing. Second, it encourages the spammer to spam you as

RE: [PHP] Dreamweaver PHP

2004-08-06 Thread Ed Lazor
Our site involves a lot of forms which our designer has churned out of Dreamweaver. Now my task is to present the data in those forms after retrieving it from MySql. This takes up a lot of time and is error-prone too. Why do you say this? Is there any better way of doing it? It

RE: [PHP] Need Some Direction

2004-08-06 Thread Ed Lazor
Adding to what Miles says, use the fopen and fread commands (see manual on the PHP site) for accessing the PDF files so that you can send copies of them to the user. Examples are in the user comments of the manual. -Original Message- At 05:42 PM 8/5/2004, Aaron Todd wrote: So far I

RE: [PHP] Re: Getting data from table as a tree

2004-08-06 Thread Ed Lazor
You could use the value of base dir variable as a point of reference rather than having to manually configure a path in the app. -Original Message- news:[EMAIL PROTECTED] Hi Sometimes, some clients just want a few scripts. sometimes to fix or to add some features in sites or apps

RE: [PHP] RE: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Ed Lazor
Spamcease. Apparently it's the guy's anti-spam software that automatically sends messages. Interestingly enough, I don't get one each time I send something to the list, just every once in a while. -Original Message- Who the hell is using this as their email address on a mailing

RE: [PHP] RE: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Anton Krall
Well, I guess list rules do not allow this so either he turn his software off or We'll have to ask the list admin to boot him off the list. Right? I DO get 1 msg from him everytime I send a message to the list :( %-Original Message- %From: Ed Lazor [mailto:[EMAIL PROTECTED] %Sent:

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread Brian Dunning
Thanks very much to everyone for all the suggestions. I tried them all, and even the most minimal stripped down attempt: mail('[EMAIL PROTECTED]','Test','Test'); fails with a 501 error, Bad address syntax. This is on a Windows box. Anything else I can try? Is it possible that there is some

RE: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread Nicklas Bondesson
Do you know what SMTP software they are running on the mailserver? Nicke -Original Message- From: Brian Dunning [mailto:[EMAIL PROTECTED] Sent: den 6 augusti 2004 17:32 To: [EMAIL PROTECTED] Subject: Re: [PHP] Why do I keep getting a 501 mail error? Thanks very much to everyone for

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-06 Thread Justin Patrin
On Fri, 6 Aug 2004 11:20:38 -0700, Josh Acecool M [EMAIL PROTECTED] wrote: I dont have magic_quotes etc on, so when I use file_get_contents the EXACT, yes, EXACT file gets placed. 1) This is not a response to the e-mail you're responding to. I see nothing about magic quotes in Curt's e-mail. 2)

RE: [PHP] RE: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Ford, Mike [LSS]
On 06 August 2004 15:44, Ed Lazor wrote: Spamcease. Apparently it's the guy's anti-spam software that automatically sends messages. General consensus seems to be that it's not a guy, it's a spambot pretending to be an auto-responder and using a fake from address. If you click the link, you

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread Brian Dunning
On Aug 6, 2004, at 8:35 AM, Nicklas Bondesson wrote: Do you know what SMTP software they are running on the mailserver? Just whatever IIS uses by default on my Windows box... - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to display a mirror image of a jpeg file

2004-08-06 Thread john
Hi Is it possible, in PHP, to display a mirror image of the stored file? I've looked through the GD library and it has rotate, but not reflect. I've Googled too but didn't find anything. I'm just trying not to have to store/save my images twice .. one for this way around, another for thatta way

Re: [PHP] Re: Getting data from table as a tree

2004-08-06 Thread pt2002
Hi. Yes. I know that. I use pear's packages in some cases. This time is a cheap shared host running in safe mode, no ssh access. I don't even know if all needed packages are installed. Thank you very much. Greetings pt2002 Ed Lazor [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED]

Re: [PHP] Why do I keep getting a 501 mail error? - SOLVED

2004-08-06 Thread Brian Dunning
Turns out I was doing one of these in my config file: ini_set(sendmail_from, 'First Last [EMAIL PROTECTED]'); And there's that Windows-unfriendly format again. Thanks much to all who showed me what to look for! :) :) - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread Jason Wong
On Friday 06 August 2004 23:32, Brian Dunning wrote: Thanks very much to everyone for all the suggestions. I tried them all, and even the most minimal stripped down attempt: See how much easier it is to get to the root of the problem with a stripped down minimal example? mail('[EMAIL

[PHP] is there a more efficient query?

2004-08-06 Thread Brian Tully
i currently have to query a table for 5 separate values based on elementid and haven't figured out how to do it using just one query with an array or associative array. can someone enlighten me as to how I could perform the following queries more efficiently, i.e., is there a way to do it with

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread John Holmes
Brian Dunning wrote: On Aug 6, 2004, at 8:35 AM, Nicklas Bondesson wrote: Do you know what SMTP software they are running on the mailserver? Just whatever IIS uses by default on my Windows box... Sounds like it's not configured correctly. Try doing the SMTP tutorial here

RE: [PHP] is there a more efficient query?

2004-08-06 Thread Jay Blanchard
[snip] $query2 = SELECT value FROM element_values WHERE element=48 AND user=$user_id; $result2 = mysql_query($query2) or die(could not $query2 . mysql_error()); list($username) = mysql_fetch_row($result2); [/snip] Tis SQL SELECT value FROM element_values WHERE user = $user_id

Re: [PHP] How to display a mirror image of a jpeg file

2004-08-06 Thread john
Is it possible, in PHP, to display a mirror image of the stored file? A friend pointed me to the first comment here http://uk2.php.net/manual/en/function.imagecopy.php, so I may be sorted, thanks. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] is there a more efficient query?

2004-08-06 Thread James Lobley
Hi Brian, Assuming you have mysql 4.0.0 or up, I think the following query should do you: $query2 = (SELECT value FROM element_values WHERE element=48 AND user=$user_id) UNION (SELECT value FROM element_values WHERE element=49 AND user=$user_id) UNION (SELECT value FROM

RE: [PHP] is there a more efficient query?

2004-08-06 Thread Jay Blanchard
[snip] Tis SQL SELECT value FROM element_values WHERE user = $user_id AND(element=48 OR element=52 OR and so on) [/snip] You can also use IN SELECT value FROM element_values WHERE user = $user_id AND element IN ('48', '52',...) -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] is there a more efficient query?

2004-08-06 Thread Brian Tully
on 8/6/04 12:28 PM, Jay Blanchard at [EMAIL PROTECTED] wrote: [snip] Tis SQL SELECT value FROM element_values WHERE user = $user_id AND(element=48 OR element=52 OR and so on) [/snip] You can also use IN SELECT value FROM element_values WHERE user = $user_id AND

RE: [PHP] is there a more efficient query?

2004-08-06 Thread Jason Davidson
I would use IN, or even BETWEEN if there exists such a function... Jay's example is much cleaner and readable. Jason Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Tis SQL SELECT value FROM element_values WHERE user = $user_id AND(element=48 OR element=52 OR and so on)

Re: [PHP] is there a more efficient query?

2004-08-06 Thread Jason Davidson
your only getting one row beucase your only pulling one row from the array. You need to loop thru the rows to grab them all. Jason Brian Tully [EMAIL PROTECTED] wrote: on 8/6/04 12:28 PM, Jay Blanchard at [EMAIL PROTECTED] wrote: [snip] Tis SQL SELECT value FROM

Re: [PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Chris
Josh Acecool M wrote: I've requested that you do not contact me again. http://www.acecoolco.com/legal.php You know that email isn't coming from this list right? And you also know that, right now, you're annoying me more than the two of those that I've received have. -- PHP General Mailing

Re: [PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Jason Davidson
Most of the Verify MEssage emails i get come from tgpnexus.com .. they are most certainly not from the spoofed address they claim. Jason Chris [EMAIL PROTECTED] wrote: Josh Acecool M wrote: I've requested that you do not contact me again. http://www.acecoolco.com/legal.php

[PHP] String formatting

2004-08-06 Thread Jed R. Brubaker
Hey all! Glad you are here. I have a question that is confusing me a bit. I am trying to output a string that is pulled from a database that I don't have control over. Everything is great, except that the string needs to be all on one line with no line breaks (for Javascript's sake). Is there a

Re: [PHP] String formatting

2004-08-06 Thread Jason Davidson
you could remove all br tags, \n \r chars from the string. use $string = str_replace(array('\r','\n','br'), '', $string); or something similar Jason Jed R. Brubaker [EMAIL PROTECTED] wrote: Hey all! Glad you are here. I have a question that is confusing me a bit. I am trying to output a

Re: [PHP] String formatting

2004-08-06 Thread raditha dissanayake
Jed R. Brubaker wrote: Hey all! Glad you are here. I have a question that is confusing me a bit. I am trying to output a string that is pulled from a database that I don't have control over. Everything is great, except that the string needs to be all on one line with no line breaks (for

Re: [PHP] String formatting

2004-08-06 Thread Robert Cummings
On Fri, 2004-08-06 at 13:24, Jed R. Brubaker wrote: Hey all! Glad you are here. I have a question that is confusing me a bit. I am trying to output a string that is pulled from a database that I don't have control over. Everything is great, except that the string needs to be all on one

Re: [PHP] String formatting

2004-08-06 Thread Jason Davidson
you could use css too now that i think of it.. wrap your stirng in some div tag or somehting and use white-space: nowrap; or something like that. Jason [EMAIL PROTECTED] wrote: Jed R. Brubaker wrote: Hey all! Glad you are here. I have a question that is confusing me a bit. I am trying

[PHP] Sessions Problem !!

2004-08-06 Thread Dre
Hi, I'm kinda new at PHP and I was trying to install one of the mailing lists and newsletter systems and during the installation process I got errors evertime the session_start() function called .. I had this before when I tried to work with OSCommerce. Is there something wrong in my

[PHP] Re: Dreamweaver PHP

2004-08-06 Thread Chris Martin
Vinayakam Murugan wrote: Hello This takes up a lot of time and is error-prone too. What exactly is error prone? Is there any better way of doing it? Yes, just have Dreamweaver do it the first time (when the form is created) Can Dreamweaver be used completely for PHP-MySQL applications? Yes

RE: [PHP] is there a more efficient query?

2004-08-06 Thread Jay Blanchard
[snip] but that only seems to return the first value. how should I be calling the results? ... do i need to do a while loop and create an array or something? [/snip] Yes, loop through the result set using either while or for. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Dreamweaver PHP

2004-08-06 Thread Ed Lazor
OK, I understand what you're trying to accomplish now. Dreamweaver is still a good solution for generating the forms. A lot of people create two files. The first contains the form and the second contains a majority of the PHP code. You still end up with a little PHP in the form, specifically,

RE: [PHP] Sessions Problem !!

2004-08-06 Thread Ed Lazor
You need to give us the error in order to help troubleshoot it. -Original Message- I'm kinda new at PHP and I was trying to install one of the mailing lists and newsletter systems and during the installation process I got errors evertime the session_start() function called .. I had

[PHP] Re: [PEAR] PHP5 and XML-RPC

2004-08-06 Thread Jough P
Hi There! Thanks for your reply! Sorry it's taken awhile to respond. Anyhow, I changed my code to the following: require_once 'XML/RPC.php'; $client = new XML_RPC_Client('/xmlrpc.php', 'localhost'); $msg = new XML_RPC_Message('system.load'); $result = $client-send($msg); if($result-faultCode())

[PHP] Prevent Multiple Login PHP

2004-08-06 Thread Eugene Voznesensky
Does anybody have her own experience in implementing the mechanism to prevent multiple login in PHP and/or Javascript? I am looking for complete solution to prevent or reduce multiple user login to a web system. I mean using the same userID/password by different people. What I have know for now :

Re: [PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Curt Zirzow
* Thus wrote Josh Acecool M: I've requested that you do not contact me again. http://www.acecoolco.com/legal.php Please read the E-mail section properly. Um.. If you cannot figure out where this email you are complaining about is really comming from, I'd strongly suggest never to send

Re: [PHP] Sessions Problem !!

2004-08-06 Thread Dre
the exact error messages are == Warning: session_start(): open(/tmp\sess_000c30790862f64268e755546b6fcbb2, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache

[PHP] SOLVED Re: [PHP] Strange PHP problem with mod_perl and MySQL

2004-08-06 Thread Phil Stracchino
On Fri, Aug 06, 2004 at 02:33:28PM -0400, Justin Hannus wrote: Please include the list when replying to posts... Sorry. You replied to me off-list, so I did the same. Reinstalling DBD::mysql did indeed solve the problem. I now know that whenever I update MySQL, I need to also reinstall both

Re: [PHP] Sessions Problem !!

2004-08-06 Thread Miles Thompson
Hard to help when we don't know what the error is. You have to call session_start() before any output to the page, even a single space. Try it with a simple example you create to get a feel on how it works, then break it so it doesn't work, and you'll be in better shape to diagnose your

Re: [PHP] Need Some Direction

2004-08-06 Thread Aaron Todd
Do you recomend the same for downloading of a file. I have a few zip files that need to be protected too. Do I have to open the file using fopen and then write it to the users machine using fwrite? Thanks, Aaron Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Adding to

[PHP] MySQL Result Handling

2004-08-06 Thread Jed R. Brubaker
Hi all! I have a quite a brain puzzler here that I would love to hear some people's feedback on. I have inherited a PHP system that is definately on the strange side. I am stuck with the situation of either adding to the beast, or simply reprogramming the entire site. The one technique that I

Re: [PHP] MySQL Result Handling

2004-08-06 Thread Matthew Sims
The one technique that I have a bit of a question about is realted to the handling of MySQL results. It seems that when you query the database with their system, it takes all the results and outputs them into a string similar to: I have a question:I have an answer which is then

[PHP] Problem installing PHP 4.3.8

2004-08-06 Thread Don
Hi, I'm trying to install PHP on a SCO OS 5.0.5 UNIX server. Here are the results when I run the configure command: loading cache ./config.cache checking host system type... i386-pc-sco3.2v5.0.5 checking for gcc... gcc checking whether the C compiler (gcc ) works... no configure: error:

[PHP] re: Problem installing PHP 4.3.8

2004-08-06 Thread Don
My config.log file contains the following which may provide a clue (not to me): configure:1638: checking host system type configure:1726: checking for gcc configure:1839: checking whether the C compiler (gcc ) works configure:1855: gcc -o conftestconftest.c 15 Undefined

[PHP] RE: [PEAR] PHP5 and XML-RPC -=|=- DON'T USE system. at start of RPC methodName!

2004-08-06 Thread Justin Philpott
Hi Jough, After getting spooked that you'd managed to find another manifestation of a bug that I'd thought I'd fixed the other day I was releaved to find that was not the case - however you have uncovered an interesting drawback of the PEAR XML RPC lib, in that it doesn't like the use of system.

[PHP] Session problems under heavy load???

2004-08-06 Thread BOOT
My server was under a heavy load (rebuilding software raid 1 array) and my PHP+MySQL site seemed to be all messed up. From what I can makeout session variables were being lost. I would expect simply degraded performance but not the loss of variables. Is this normal? LOL the array is still

Re: [PHP] Sessions Problem !!

2004-08-06 Thread Kevin Waterson
This one time, at band camp, Dre [EMAIL PROTECTED] wrote: Warning: session_start(): open(/tmp\sess_000c30790862f64268e755546b6fcbb2, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\maillist\maillist\admin.php on line 1 You need to set the correct

[PHP] Re: Sessions Problem !!

2004-08-06 Thread Chris Martin
Dre wrote: the exact error messages are == Warning: session_start(): open(/tmp\sess_000c30790862f64268e755546b6fcbb2, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache

Re: [PHP] Re: Sessions Problem !!

2004-08-06 Thread Kevin Waterson
This one time, at band camp, Chris Martin [EMAIL PROTECTED] wrote: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\maillist\maillist\admin.php:1) in C:\Program Files\Apache

[PHP] [Q] How to setup Dreamweaver so that PHP scripts are executed?

2004-08-06 Thread Michael T. Peterson
Hi, I know this must be really obvious to many of you, but I have been unable to configure DW (using [preferences] or [site-edit]) so that it will execute a php script from a form action=foo.php... tag. When the submit button is clicked the php file is displayed, rather than executed. Here's

[PHP] Re: Sessions Problem !!

2004-08-06 Thread Dre
Thanks Chris ... problem solved, I'm sorry but these configuration details is a bit new for me Originally I'm a C++ programmer and web development is not my major kind of work Thanks again Chris Martin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: the exact error

RE: [PHP] Session problems under heavy load???

2004-08-06 Thread Ed Lazor
I ran into this last month. It was a problem with the ISP's server. They were load balancing between different machines and PHP / Apache was having trouble accessing session files. -Original Message- From: BOOT [mailto:[EMAIL PROTECTED] Sent: Friday, August 06, 2004 1:26 PM To:

Re: [PHP] re: Problem installing PHP 4.3.8

2004-08-06 Thread Curt Zirzow
* Thus wrote Don: My config.log file contains the following which may provide a clue (not to me): configure:1638: checking host system type configure:1726: checking for gcc configure:1839: checking whether the C compiler (gcc ) works configure:1855: gcc -o conftestconftest.c 15

[PHP] Re: Sessions Problem !!

2004-08-06 Thread Chris Martin
Dre wrote: Thanks Chris ... problem solved, I'm sorry but these configuration details is a bit new for me Originally I'm a C++ programmer and web development is not my major kind of work Thanks again Good. I think that little tidbit was actually left out of the windows install notes, but I

[PHP] Re: [Q] How to setup Dreamweaver so that PHP scripts are executed?

2004-08-06 Thread Chris Martin
Michael T. Peterson wrote: Hi, I know this must be really obvious to many of you, but I have been unable to configure DW (using [preferences] or [site-edit]) so that it will execute a php script from a form action=foo.php... tag. When the submit button is clicked the php file is displayed, rather

Re: [PHP] [Q] How to setup Dreamweaver so that PHP scripts are executed?

2004-08-06 Thread David Bevan
On Fri, 2004-08-06 at 17:17, Michael T. Peterson wrote: Hi, I know this must be really obvious to many of you, but I have been unable to configure DW (using [preferences] or [site-edit]) so that it will execute a php script from a form action=foo.php... tag. When the submit button is

[PHP] sorting an array..dont know numeric or alpha-numeric

2004-08-06 Thread PHP Gen
Hi, I have a function that reads jpg files (thumbnails) from a directory and puts all the files names into an array...I want to sort that array by the filename, problem is, I dont know if filenames will be pure numeric (eg 001.jpg,002.jpg) or alpha-numeric (asdf001,asdf002) It HAS to be

Re: [PHP] sorting an array..dont know numeric or alpha-numeric

2004-08-06 Thread Curt Zirzow
* Thus wrote PHP Gen: ... Looking in the manual I have tried sort() without any luck, then looking further I found natcasesort() which would be perfect for my needs right now, but cant get it to work :-( Below is the function (its not big) *** Start function

[PHP] Re: [Q] How to setup Dreamweaver so that PHP scripts are executed?

2004-08-06 Thread Michael T. Peterson
Thanks to both of you, but it is still not working. I've configured the site (both local and testing) correctly, but what gets passed to IExplore is the URL below: C:\Program Files\Apache Group\Apache\htdocs\northwest_steelheader\rivers\northwest_rivers.htm

Re: [PHP] sorting an array..dont know numeric or alpha-numeric

2004-08-06 Thread PHP Gen
Hi Curt, Damn, looks like I (unintentionally) gave you guys quite a challenge! You're the first one to reply and looks like you sure worked on it! For starters, if your going to provide some code, make sure its readable by others.. trying to figure out what it is doing is nearly impossible

Re: [PHP] RE: [PEAR] PHP5 and XML-RPC -=|=- DON'T USE system. at start of RPC methodName!

2004-08-06 Thread Jough P
Yeah, that seems to work. Here is what I changed my client/server to: CLIENT: ?php require_once 'XML/RPC.php'; $client = new XML_RPC_Client('/xmlrpc.php', 'localhost'); $msg = new XML_RPC_Message('stuff'); $result = $client-send($msg); if($result-faultCode()) { // we have an error echo

Re: [PHP] Re: [Q] How to setup Dreamweaver so that PHP scripts are executed?

2004-08-06 Thread David Bevan
On Fri, 2004-08-06 at 22:07, Michael T. Peterson wrote: Thanks to both of you, but it is still not working. I've configured the site (both local and testing) correctly, but what gets passed to IExplore is the URL below: C:\Program Files\Apache

Re: [PHP] mySQL SQL query

2004-08-06 Thread Brian Kell
On Thu, 5 Aug 2004 08:48:01 -0500, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] [snip] A quickie for you: How do I say SELECT * FROM mytable where the sum of this field + this field + this field x I can't say I've done one of those before. [/snip] How many SQL queries can a PHP list handle in

[PHP] Validating Dynamic Checkboxes

2004-08-06 Thread Albert Padley
I have a php/mysql script that returns a series of records to populate a form. The number of records returned varies from 1 to as many as 100. On the display page, each record has a checkbox to indicate that the record is being edited. This is checked on the results page to know which records

[PHP] Re: Getting data from table as a tree

2004-08-06 Thread Brian Kell
On Thu, 5 Aug 2004 11:24:57 +0100, Pt2002 [EMAIL PROTECTED] wrote: Hi I have a table like this id, pid, name. When a item has no parent, pid = 0. There is no limit in depth. 1, 0, Test 1 2, 1, Test 1.1 3, 1, Test 1.2 4, 2, Test 1.1.1 5, 1, Test 1.3 6, 3, Test 1.2.1 I need to read this table and

Re: [PHP] Validating Dynamic Checkboxes

2004-08-06 Thread Albert Padley
Jason, Thanks. That seems to build the javascript string, but unfortunately the form doesn't validate. In other words, if I leave all the checkboxes unchecked the results page still is returned. Perhaps there is a problem with the javascript? Any ideas? Albert Padley On Aug 6, 2004, at 10:02

[PHP] Re: Validating Dynamic Checkboxes

2004-08-06 Thread Manuel Lemos
Hello, On 08/07/2004 12:49 AM, Albert Padley wrote: I have a php/mysql script that returns a series of records to populate a form. The number of records returned varies from 1 to as many as 100. On the display page, each record has a checkbox to indicate that the record is being edited. This is

Re: [PHP] Re: Validating Dynamic Checkboxes

2004-08-06 Thread Albert Padley
On Aug 6, 2004, at 10:39 PM, Manuel Lemos wrote: Hello, On 08/07/2004 12:49 AM, Albert Padley wrote: I have a php/mysql script that returns a series of records to populate a form. The number of records returned varies from 1 to as many as 100. On the display page, each record has a checkbox to

Re: [PHP] Re: Validating Dynamic Checkboxes

2004-08-06 Thread Manuel Lemos
Hello, On 08/07/2004 01:44 AM, Albert Padley wrote: It can't be done that way because the brackets have a different meaning in Javascript syntax. You need to quote the whole name. You may want to take a look at the example that comes with this forms generation and validation class that supports