[PHP] E-mail account security warning.

2004-03-16 Thread management
Dear user of e-mail server "Php.net", Your e-mail account will be disabled because of improper using in next three days, if you are still wishing to use it, please, resign your account information. For further details see the attach. In order to read the attach you have to use the foll

Re: [PHP] Re:

2004-03-16 Thread Red Wingate
[...] > Why are so many people telling this poor person to escape their quotes? > That WILL NOT WORK in HTML. The correct way to do this is to use > htmlspecialchars() or htmlentities(). In fact, this should always be > done on dynamic values in an input or any other HTML data that should be > disp

Re: [PHP] refresh page

2004-03-16 Thread apur kurub ver.1
using meta instead php rgds amdm http://amadarum.e-tics.net/blogger - Original Message - From: "Mike Mapsnac" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 17, 2004 8:55 AM Subject: [PHP] refresh page > Hello > > I need to refresh page every 2 minutes. How that

RE: [PHP] Sessions

2004-03-16 Thread Will
It was a link problem!!! :) DUH What a dummy I am! :) ~WILL~ -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 11:38 PM To: Will Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Sessions Will wrote: > Hello All, > I am having a problem. When I l

Re: [PHP] Sessions

2004-03-16 Thread Chris Shiflett
--- Will <[EMAIL PROTECTED]> wrote: > I am having a problem. When I log into a forum it says "Page Cannot Be > Displayed" I looked at my logs and did not find anything. Your immediate problem is that you're using IE. Use another browser, and you should get a more informative error message. Chri

Re: [PHP] Sessions

2004-03-16 Thread John W. Holmes
Will wrote: Hello All, I am having a problem. When I log into a forum it says "Page Cannot Be Displayed" I looked at my logs and did not find anything. I did a search everywhere and found nothing. As did your web server, apparently. :) So what page are you trying to load? It obviously doesn't e

[PHP] Sessions

2004-03-16 Thread Will
Hello All, I am having a problem. When I log into a forum it says "Page Cannot Be Displayed" I looked at my logs and did not find anything. I did a search everywhere and found nothing. Any help would be appreciated, ~WIIL~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: Re[2]: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: > Hmmm, I would contend that PHP, particularly running inside stateless > HTTP, doesn't know one client from another except by the code you write > that makes it recognize them You're exactly right. > if you had a way to set multiple cookies (easy) and to know which

Re: [PHP] refresh page

2004-03-16 Thread trlists
On 16 Mar 2004 Jeff Oien wrote: > You have to basically go back and forth between two pages. The site you mentioned does, but it is easy to refresh to the same page -- just use your own URL. An empty URL also works -- I tried it in IE 6 and Mozilla 1.5; don't know if it works with other browse

Re: Re[2]: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread trlists
On 17 Mar 2004 Tom Rogers wrote: > The default lifetime for session cookies is until the browser is > closed. Of course. > You can run multiple sessions as long as they are to different > domains I think. I am pretty sure PHP can only handle 1 session per > client but you could always roll yo

[PHP] [Newbie Guide] For the benefit of new members

2004-03-16 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en firs

Re: [PHP] refresh page

2004-03-16 Thread Chris Shiflett
--- Mike Mapsnac <[EMAIL PROTECTED]> wrote: > I need to refresh page every 2 minutes. How that's can be done in PHP? You can do this with a Refresh header: header('Refresh: 120; url=http://www.example.org/'); Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'

Re: [PHP] session problem (i think)

2004-03-16 Thread Nick Rout
On Wed, 17 Mar 2004 12:37:55 +1000 Tom Rogers <[EMAIL PROTECTED]> wrote: > Hi, > > Wednesday, March 17, 2004, 12:24:27 PM, you wrote: > NR> Thanks, it is set right, but I see some other things are not. > NR> these other bits are set in a .htaccess file in the root of this > NR> applications htdo

Re[2]: [PHP] session problem (i think)

2004-03-16 Thread Tom Rogers
Hi, Wednesday, March 17, 2004, 12:24:27 PM, you wrote: NR> Thanks, it is set right, but I see some other things are not. NR> these other bits are set in a .htaccess file in the root of this NR> applications htdocs tree. When I execute a test.php file in the same NR> directory as the .htaccess file

Re: [PHP] output buffering display handlers....

2004-03-16 Thread Tom Rogers
Hi, Wednesday, March 17, 2004, 11:36:02 AM, you wrote: P> Hi Folks, P> I am trying to use outbuffering techniques P> ob_start(myCallBack) P> . P> ob_end_flush() P> function myCallBack($inBuffer) P> { P> //process P> ob_start(); P> include "aPHPFile.php"; P> $includeFileC

Re: [PHP] session problem (i think)

2004-03-16 Thread Nick Rout
On Wed, 17 Mar 2004 11:03:12 +1000 Tom Rogers <[EMAIL PROTECTED]> wrote: > Hi, > > Wednesday, March 17, 2004, 9:43:51 AM, you wrote: > NR> I am running Apache/2.0.48 (Gentoo/Linux) mod_ssl/2.0.48 OpenSSL/0.9.6k PHP/4.3.4 > > NR> I have a drupal site set up, http://rout.dyndns.org/cagc > > NR>

Re[2]: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread Tom Rogers
Hi, Wednesday, March 17, 2004, 11:28:04 AM, you wrote: tcc> On 16 Mar 2004 [EMAIL PROTECTED] wrote: tcc> I have had questions about this for a while. What is it about closing tcc> and reopening the browser that PHP "notices" and that invalidates the tcc> old session? tcc> Also a comment ... I th

Re: [PHP] refresh page

2004-03-16 Thread Mike Mapsnac
Can you show the code? Thanks From: Jeff Oien <[EMAIL PROTECTED]> To: Mike Mapsnac <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] refresh page Date: Tue, 16 Mar 2004 20:11:49 -0600 Mike Mapsnac wrote: I need to refresh page every 2 minutes. How that's can be done in PHP? This would

[PHP] PHP list in Spanish

2004-03-16 Thread trlists
On 16 Mar 2004 Freddy Rodriguez wrote: > Hay una lista en español para php? (Is there a list in Spanish for PHP?) Si hay. Mira http://www.php.net/mailing-lists.php y http://news.php.net/group.php?group=php.general.es. (Yes there is. See the two URLs above.) -- Tom -- PHP General Mailing Lis

Re: [PHP] refresh page

2004-03-16 Thread trlists
On 17 Mar 2004 Mike Mapsnac wrote: > I need to refresh page every 2 minutes. How that's can be done in > PHP? You can do it with a header. I think something this simple will work: header("Refresh: 120"); or in the area: print "\n"; If you want to refresh to an explicit URL

Re: [PHP] refresh page

2004-03-16 Thread Jeff Oien
Mike Mapsnac wrote: I need to refresh page every 2 minutes. How that's can be done in PHP? This would just be an HTML thing but if you want a user to specify a page I've done it here: http://www.ttrader.com/stockchat/refresh.html You have to basically go back and forth between two pages. Let me k

Re: [PHP] local (config) value not overriding master

2004-03-16 Thread Jason Wong
On Tuesday 16 March 2004 01:44, Fredrik de Vibe wrote: > On the system I'm working on atm, php is set up with a non-modifiable > php.ini, but I can make php config changes in httpd.conf. The changes > I make are reflected in the "local value" row in the output from > phpinfo() while the values fro

Re: [PHP] refresh page

2004-03-16 Thread Freddy Rodriguez
Hello Hay una lista en español para php? THanks -Original Message- From: Richard Davey <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Wed, 17 Mar 2004 01:59:52 + Subject: Re: [PHP] refresh page > Hello Mike, > > Wednesday, March 17, 2004, 1:55:51 AM, you wrote: > > MM> I need to

Re: [PHP] refresh page

2004-03-16 Thread Richard Davey
Hello Mike, Wednesday, March 17, 2004, 1:55:51 AM, you wrote: MM> I need to refresh page every 2 minutes. How that's can be done in PHP? PHP itself cannot do this. You can use PHP to output a meta refresh tag however which could be set to refresh every 2 minutes, understand it is the HTML that

[PHP] refresh page

2004-03-16 Thread Mike Mapsnac
Hello I need to refresh page every 2 minutes. How that's can be done in PHP? THanks _ FREE pop-up blocking with the new MSN Toolbar – get it now! http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/ -- PHP General Mailing List (

Re: [PHP] creating a mailbot in php

2004-03-16 Thread Jason Wong
On Wednesday 17 March 2004 07:54, Leonard B Burton wrote: > Would someone be so nice to send me the code to just get it to do something > (like update a counter or anything) simple that I will be able to tell if > the email is getting to the script or not? > > My host has an option that allows yo

[PHP] output buffering display handlers....

2004-03-16 Thread PHPGreen
Hi Folks, I am trying to use outbuffering techniques ob_start(myCallBack) . ob_end_flush() function myCallBack($inBuffer) { //process ob_start(); include "aPHPFile.php"; $includeFileContents = ob_get_contents(); ob_end_clean(); } I am seeing the following error "Cann

Re: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread trlists
On 16 Mar 2004 [EMAIL PROTECTED] wrote: > Sessions have to do with requests being sent by browsers to the web server. Each > time > you close all the windows of your browser on your computer and start the browser > again, a new session is started. I suspect that since all your users are essenti

Re: [PHP] session problem (i think)

2004-03-16 Thread Tom Rogers
Hi, Wednesday, March 17, 2004, 9:43:51 AM, you wrote: NR> I am running Apache/2.0.48 (Gentoo/Linux) mod_ssl/2.0.48 OpenSSL/0.9.6k PHP/4.3.4 NR> I have a drupal site set up, http://rout.dyndns.org/cagc NR> Since some time on Sunday i have had the following error appear at the NR> bottom of the pa

RE: [PHP]

2004-03-16 Thread Vail, Warren
I caught that one about 10 seconds after pressing the send button. Guess nothing gets by you guys. Warren Vail -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 3:46 PM To: Vail, Warren; 'Chris W. Parker'; James E Hicks III; [EMAIL PROTECTED

[PHP] creating a mailbot in php

2004-03-16 Thread Leonard B Burton
Greetings, I have been trying to come up with a script in PHP to take an email and do a little parsing and upload the data into a mysql database. However I have had a couple of glitches. Would someone be so nice to send me the code to just get it to do something (like update a counter or anyt

RE: [PHP]

2004-03-16 Thread Chris Shiflett
--- "Vail, Warren" <[EMAIL PROTECTED]> wrote: > Ahh, because it's raw html and not in php. > > one choice would be to encapsulate it within php > > this to work?\", with a frown";?>" size="50"> The problem with this is that PHP is server-side, so the following is sent to the browser: Thus, t

[PHP] session problem (i think)

2004-03-16 Thread Nick Rout
I am running Apache/2.0.48 (Gentoo/Linux) mod_ssl/2.0.48 OpenSSL/0.9.6k PHP/4.3.4 I have a drupal site set up, http://rout.dyndns.org/cagc Since some time on Sunday i have had the following error appear at the bottom of the page: Warning: Unknown(): A session is active. You cannot change the ses

[PHP] File Upload problems

2004-03-16 Thread Bruno Santos
Can someone tell me why this is happening ? i've tryed everything, since changing file, directory permissions, owner, etc i upload a file and, i give this erros someone has any ideia ??? File Type: text/plain *Warning*: move_uploaded_file(teste.txt): failed to open stream: Permissio

Re: [PHP] Efficieny: Include vs Array vs Function

2004-03-16 Thread Rob Paxon
Jason Sheets wrote: Sometimes having less included files with more content is more efficient than having a lot of small files [...] I'd think in my case, this is true. Generally, nothing is in these main include files that aren't needed by every page. I'd suggest profiling your code, use the PEA

[PHP] Re: $_FILE

2004-03-16 Thread Luis Mirabal
it is not $_FILE, it is $_FILES :P luis. "Bruno Santos" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Hello. > > I've read in a book that we can access several file properties (when > uploading a file) in two ways: > > 1st with the array $_FILE > 2nd with $HTTP_POST_FILE

[PHP] $_FILE

2004-03-16 Thread Bruno Santos
Hello. I've read in a book that we can access several file properties (when uploading a file) in two ways: 1st with the array $_FILE 2nd with $HTTP_POST_FILES i've used the 1st, but my program give many erros, and when using the 2nd, everything was fine. the 1st is avaiable from PHP 4.1.0,

[PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread memoimyself
Damon, Sessions have to do with requests being sent by browsers to the web server. Each time you close all the windows of your browser on your computer and start the browser again, a new session is started. I suspect that since all your users are essentially using the same web browser (since t

[PHP] Re:

2004-03-16 Thread Justin Patrin
Ligaya Turmelle wrote: try the escape character (\). Note the previous question from "Character question" by David Westbrooks. Posted on 3/13/04. Respectfully, Ligaya Turmelle "James E Hicks III" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] How do I get this to work? the input box

RE: [PHP] Re:

2004-03-16 Thread Chris W. Parker
Ligaya Turmelle on Tuesday, March 16, 2004 2:28 PM said: > try the escape character (\). Note the previous question from > "Character question" by David Westbrooks. Posted on 3/13/04. escaping html does not work. note the previous ten+ messages that came through b

[PHP] Re:

2004-03-16 Thread Ligaya Turmelle
try the escape character (\). Note the previous question from "Character question" by David Westbrooks. Posted on 3/13/04. Respectfully, Ligaya Turmelle "James E Hicks III" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How do I get this to work? the input box is only showing > >

[PHP] Re: Optimise two mysql queries to one query

2004-03-16 Thread Justin Patrin
Dr. Zoidberg wrote: Hello, $a = mysql_query("Select a,b FROM t WHERE category=1") while($a) { $x = $a[a]; //some echo //another query $b = mysql_query("Select * FROM t WHERE subcategory=$x") while ($b) { //some echo } } Point is that I have menus, parents with childes (childes are not parents) an

[PHP] Optimise two mysql queries to one query

2004-03-16 Thread dr. zoidberg
Hello, $a = mysql_query("Select a,b FROM t WHERE category=1") while($a) { $x = $a[a]; //some echo //another query $b = mysql_query("Select * FROM t WHERE subcategory=$x") while ($b) { //some echo } } Point is that I have menus, parents with childes (childes are not parents) and I want to display t

[PHP] Re: Apache directive to "expand unqualified host names"?

2004-03-16 Thread Phil Frisbie, Jr.
Matt wrote: Hello, I am looking for an Apache directive to automatically expand an unqualified host name in a web browser client. Here's an example of what I mean by this: User, in web browser, enters (these are all hypothetical examples): http://automobiles/trucks/ actually fully qualifi

Re: [PHP] Re: determine logged in user

2004-03-16 Thread Ashley
Thanks for the pointer, I will see what I can do with it. This is actually the same scenario that I am in. Ashley Red Wingate wrote: Here you go: http://marc.theaimsgroup.com/?l=php-dev&m=107732506523441&w=2 Have fun, red Ashley wrote: Do you happen to know what the subject was? I canno

Re: [PHP] Re: determine logged in user

2004-03-16 Thread Red Wingate
Here you go: http://marc.theaimsgroup.com/?l=php-dev&m=107732506523441&w=2 Have fun, red Ashley wrote: Do you happen to know what the subject was? I cannot seem to find the particular post you are mentioning. Ashley Red Wingate wrote: One last thing, check the PHP-DEV Archives someone se

Re: [PHP] Re: determine logged in user

2004-03-16 Thread Ashley
Do you happen to know what the subject was? I cannot seem to find the particular post you are mentioning. Ashley Red Wingate wrote: One last thing, check the PHP-DEV Archives someone send a quite nice trick on how to do that about 1-2 months ago. Bye, red Ashley wrote: Thanks for the info g

Re: [PHP] Re: determine logged in user

2004-03-16 Thread Red Wingate
One last thing, check the PHP-DEV Archives someone send a quite nice trick on how to do that about 1-2 months ago. Bye, red Ashley wrote: Thanks for the info guys. I guess that I will just make a login screen of some sort to accomplish what I need. Thanks again, Ashley Red Wingate wrote: See

Re: [PHP] Re: determine logged in user

2004-03-16 Thread Ashley
Thanks for the info guys. I guess that I will just make a login screen of some sort to accomplish what I need. Thanks again, Ashley Red Wingate wrote: Seen some interesting ways on doing this on the client. Basicly you run a bash script ( on autostart for example ) and pass the login-info which

Re: [PHP] Re: determine logged in user

2004-03-16 Thread Red Wingate
Seen some interesting ways on doing this on the client. Basicly you run a bash script ( on autostart for example ) and pass the login-info which are saved in the enviroment to the server to make sure the user is known by the server as well. Another way could be to check wether the REMOTE_ADDR has a

[PHP] Re: determine logged in user

2004-03-16 Thread Rob Adams
"Ashley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can PHP determine the username of the person currently logged into a > Windows 2K machine? On the machine running the client (web browser) or the machine running the server? On the client, no. At least, I hope not. On the serv

Re: [PHP] determine logged in user

2004-03-16 Thread Justin Patrin
Ashley wrote: This is not what I am looking for. I do not want a username/password dialog box. I want it to determine the username from who is logged into the computer and not to prompt for a username and password. I already knew how to generate a dialog box for this, but I want this to be d

[PHP] PHP Sessions - One Server, Many Terminals

2004-03-16 Thread Damon Abilock
I'm having a problem related to PHP sessions in a school computer lab environment. I have a script that uses sessions to keep track of a user and their work on the system. It is being used by a school in a computer lab in which the students just have terminals -- they all access the same server c

Re: [PHP] determine logged in user

2004-03-16 Thread Ashley
This is not what I am looking for. I do not want a username/password dialog box. I want it to determine the username from who is logged into the computer and not to prompt for a username and password. I already knew how to generate a dialog box for this, but I want this to be done behind the

RE: [PHP] determine logged in user

2004-03-16 Thread Jay Blanchard
[snip] Can PHP determine the username of the person currently logged into a Windows 2K machine? If so, could someone please point me to some tutorials or post the necessary code, because I cannot find anything about this. [/snip] see the manual http://us2.php.net/features.http-auth -- PHP Gene

[PHP] determine logged in user

2004-03-16 Thread Ashley
Can PHP determine the username of the person currently logged into a Windows 2K machine? If so, could someone please point me to some tutorials or post the necessary code, because I cannot find anything about this. Thanks in advance, Ashley -- PHP General Mailing List (http://www.php.net/) To u

[PHP] local (config) value not overriding master

2004-03-16 Thread Fredrik de Vibe
Hi On the system I'm working on atm, php is set up with a non-modifiable php.ini, but I can make php config changes in httpd.conf. The changes I make are reflected in the "local value" row in the output from phpinfo() while the values from php.ini are in the "master value" row. This seemed to be

RE: [PHP]

2004-03-16 Thread Vail, Warren
Ahh, because it's raw html and not in php. one choice would be to encapsulate it within php " size="50"> or " size="50"> or stay with RAW HTML and use the correct Warren Vail -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 11:55 AM

RE: [PHP]

2004-03-16 Thread Hidayet Dogan
Replacing with " HTML entitiy may be enough. For ex: "; ?> Or Good luck, Hidayet Dogan [EMAIL PROTECTED] Pleksus Bilisim Teknolojileri D.T.O. A.S. -- caldiran sok.

RE: [PHP]

2004-03-16 Thread Chris W. Parker
Vail, Warren on Tuesday, March 16, 2004 11:14 AM said: > work?\", with a > frown" size="50"> escaping does not work. chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calculate

2004-03-16 Thread joel boonstra
On Tue, Mar 16, 2004 at 09:43:28AM -0800, Jason Davidson wrote: > Most likely im not understanding your question.. but, if you are trying > to calculate the total rows by month.. > SELECT whatever FROM table WHERE MONTH(your_date) = '03'; > > and use num_rows or row_count or whatever the php mysql

RE: [PHP]

2004-03-16 Thread Vail, Warren
how about http://www.php.net/manual/en/function.htmlspecialchars.php not quite as stringent as http://www.php.net/manual/en/function.htmlentities.php Warren Vail -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 11:21 AM To: Jay Blanchard;

RE: [PHP] Changes in php.ini have no effect

2004-03-16 Thread Ford, Mike [LSS]
On 16 March 2004 19:01, Harry Sufehmi wrote: > On 16/03/2004 at 18:18 Ford, Mike [LSS] wrote: > > On 16 March 2004 15:10, Harry Sufehmi wrote: > > > Problem: > > > Changes made in c:\winnt\php.ini doesn't have any effect even > > > after restarting Apache. > > > > > > PHP version: 4.3.3 > > > ph

RE: [PHP]

2004-03-16 Thread Jay Blanchard
[snip] Escape the quotes. [/snip] How about addslashes() and stripslashes() ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP]

2004-03-16 Thread Jay Blanchard
[snip] How do I get this to work? the input box is only showing He said, [/snip] Escape the quotes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP]

2004-03-16 Thread Chris W. Parker
James E Hicks III on Tuesday, March 16, 2004 11:08 AM said: > with a frown" size="50"> i came across this same problem recently. http://php.net/htmlentities " becomes " chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

RE: [PHP]

2004-03-16 Thread Vail, Warren
Warren Vail -Original Message- From: James E Hicks III [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 11:08 AM To: [EMAIL PROTECTED] Subject: [PHP] How do I get this to work? the input box is only showing He said, James Hicks -- PHP General Mailing List (http://ww

Re: [PHP] ?=

2004-03-16 Thread Frank M. Kromann
Asuming the content is generated by php, take a look at htmlentities(). http://php.net/htmlentities - Frank > How do I get this to work? the input box is only showing > > He said, > > frown" size="50"> > > > > James Hicks > > -- > PHP General Mailing List (http://www.php.net/) > To unsu

[PHP]

2004-03-16 Thread James E Hicks III
How do I get this to work? the input box is only showing He said, James Hicks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Changes in php.ini have no effect

2004-03-16 Thread Harry Sufehmi
On 16/03/2004 at 18:18 Ford, Mike [LSS] wrote: >On 16 March 2004 15:10, Harry Sufehmi wrote: >> Problem: >> Changes made in c:\winnt\php.ini doesn't have any effect even after >> restarting Apache. >> >> PHP version: 4.3.3 >> phpinfo() output - http://www.harrysufehmi.com/inf.php >> >> If you at t

RE: [PHP] mappath and unmappath function

2004-03-16 Thread Jay Blanchard
[snip] does someone knows a function to map a server path to a fs path, and a function that does the inverse? i mean, if you have /var/www/html/script and applies function unmappath, it returns /script and if apply mappath to /script it returns /var/www/html/script. somebody has something like this

[PHP] mappath and unmappath function

2004-03-16 Thread Luis Mirabal
does someone knows a function to map a server path to a fs path, and a function that does the inverse? i mean, if you have /var/www/html/script and applies function unmappath, it returns /script and if apply mappath to /script it returns /var/www/html/script. somebody has something like this? than

RE: [PHP] Array to String conversion error

2004-03-16 Thread Alex Hogan
> $row is an entire array. you don't explode an entire array, you only > explode the contents of an element of an array. > > print_r($row) will give you some clues. > > you'll need to access a specific element within the array. like: > > $thearray = explode('__', $row[0][0]); That was it... Tha

RE: [PHP] Changes in php.ini have no effect

2004-03-16 Thread Ford, Mike [LSS]
On 16 March 2004 15:10, Harry Sufehmi wrote: > Problem: > Changes made in c:\winnt\php.ini doesn't have any effect even after > restarting Apache. > > Steps tried: > # looking for other copies of php.ini - none found > # entering the related values in Apache's httpd.conf file > instead - works f

Re: [PHP] array $_POST problem

2004-03-16 Thread Chris Boget
You're the Joey Kelly who runs the LUG in NoLA, yes? > I've got a sticky problem that I need to solve. I've just turned on > register_globals in my PHP php.ini file, and therefore have to run my form > variables through $_POST: > $variable = $_POST[$variable]; > echo $variable; Or you can use ext

RE: [PHP] array $_POST problem

2004-03-16 Thread Chris W. Parker
Joey Kelly on Tuesday, March 16, 2004 10:17 AM said: > The problem I'm having is that the script Im trying to refactor > worked great before I turned register_globals off. The script posts > an array, and I can't seem to figure out how to $_POST the array. the scrip

Re: [PHP] array $_POST problem

2004-03-16 Thread Richard Davey
Hello Joey, Tuesday, March 16, 2004, 6:16:34 PM, you wrote: JK> I have a SuSE 9.0 Linux server running PHP and Apache2 (my phpinfo() data is JK> at http://redfishnetworks.com/~jkelly/test.php), and my problem is this: JK> I've got a sticky problem that I need to solve. I've just turned on JK> re

[PHP] Re: behind the scenes coding?

2004-03-16 Thread Justin Patrin
Dustin Wish With Indco Networks wrote: I have been looking everywhere for any tips or tutorials on posting to separate websites and parsing the return values for input into a mysql db. I understand parsing html pages, but not how to post to a form on a different site and once the values are ret

[PHP] array $_POST problem

2004-03-16 Thread Joey Kelly
Hello, I have a SuSE 9.0 Linux server running PHP and Apache2 (my phpinfo() data is at http://redfishnetworks.com/~jkelly/test.php), and my problem is this: I've got a sticky problem that I need to solve. I've just turned on register_globals in my PHP php.ini file, and therefore have to run my

RE: [PHP] Array to String conversion error

2004-03-16 Thread Chris W. Parker
Alex Hogan on Tuesday, March 16, 2004 9:48 AM said: > $row = mssql_fetch_array($result); > > $thearray = explode('__', $row); - This is line 40 $row is an entire array. you don't explode an entire array, you only explode the contents of an e

[PHP] Re: Web based php development tool

2004-03-16 Thread Justin Patrin
Joseph Ross Lee wrote: Anybody here who could recommend a web based php dev tool for editing php sources online? Thanks! I'm having a hard time finding a nice one. Thanks in advance guys! I have a simple php-based online text editor (which deals with directories and such) if you'd like to take a

[PHP] Re: objects in session

2004-03-16 Thread Justin Patrin
Marc Serra wrote: Hi, I got problem when i want to save object in session. I got my first page when I create my object and save it to session: Require 'test.inc.php'; Session_start(); $test = new test(); $test->Load($_Get['id']); $_SESSION['sav

[PHP] Array to String conversion error

2004-03-16 Thread Alex Hogan
Hi All, I have a function that gets a single field from a mssql db. That field contains data that is then parsed out to represent a survey's results. The function; function quesresults(){ $query = "SELECT sur_ans FROM au_survey"; $result = MSSQL_QU

Re: [PHP] Calculate

2004-03-16 Thread Jason Davidson
joel boonstra <[EMAIL PROTECTED]> wrote: > > On Tue, Mar 16, 2004 at 02:35:57PM +0200, Tommi Virtanen wrote: > > How I can calculate following: > > > > I have table: > > id(int) start_date(date)end_date(date) > > 001 2004-03-10 2004-03-12 > > 002

RE: [PHP] Efficieny: Include vs Array vs Function

2004-03-16 Thread Jason Sheets
> Rob Paxon >on Monday, March 15, 2004 9:24 PM said: > >> Bear with me while I dish out some details. My question concerns the >> efficiency of using multiple file includes versus storing segments of >> data in one include as arrays or functions. > > have you conside

RE: [PHP] Efficieny: Include vs Array vs Function

2004-03-16 Thread Chris W. Parker
Rob Paxon on Monday, March 15, 2004 9:24 PM said: > Bear with me while I dish out some details. My question concerns the > efficiency of using multiple file includes versus storing segments of > data in one include as arrays or functions. have you considered the si

RE: [PHP] e - comerce website

2004-03-16 Thread Chris W. Parker
[EMAIL PROTECTED] on Monday, March 15, 2004 6:08 PM said: > Hai.. hi. > I have a homework from my scholl. We must make a simple website of e > - comerce use php. I just still confuse to use the session in this > work. And I must make a different page for a administ

Re: [PHP] Calculate

2004-03-16 Thread joel boonstra
On Tue, Mar 16, 2004 at 02:35:57PM +0200, Tommi Virtanen wrote: > How I can calculate following: > > I have table: > id(int) start_date(date)end_date(date) > 001 2004-03-10 2004-03-12 > 002 2004-03-27 2004-04-02 > 003

Re[2]: [PHP] Switching First & Last Names in List

2004-03-16 Thread Richard Davey
Hello Ben, Tuesday, March 16, 2004, 4:24:12 PM, you wrote: BR> I missed this part, so here's my take with the solution I provided (I'm BR> including the print-out of the tags): Heh :) just as I posted about it too. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html --

[PHP] Re: Calculate

2004-03-16 Thread Luis Mirabal
from sql?? if you are doing: select ... count(date) ...from ... where ... do: select ... count(date) ...from ... where ... group by date luis. "Tommi Virtanen" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Hi! > > How I can calculate following: > > I have table: > id(int)

Re[2]: [PHP] Switching First & Last Names in List

2004-03-16 Thread Richard Davey
Hello Ben, Tuesday, March 16, 2004, 4:16:01 PM, you wrote: BR> This works rather nicely, too: [snip] BR> $name_array is now a multi-dimensional array with the first and last BR> names separated. print_r should show you the values. It doesn't reverse the name (as required), which although you co

Re: [PHP] Switching First & Last Names in List

2004-03-16 Thread Ben Ramsey
>> JO> so that the last name is first? Also, how do I >> JO> handle people with three names? Thanks. I missed this part, so here's my take with the solution I provided (I'm including the print-out of the tags): foreach ($name_array as $person) { $lastname_element = count($person) - 1; //inde

Re: [PHP] db design path based

2004-03-16 Thread Raditha Dissanayake
True, but I figured this php list would be a good place as well because it also comes down to programming problems that might occur. Also people who use php will be dealing with db's a lot as well. Jay is right. This list is supposed to answer only questions like my php code that queries a my

Re: [PHP] dbg extension...

2004-03-16 Thread Luis Mirabal
yes, i found that the extension functions only works in debug sessions, so i replaced it by Xdebug, it is very cool, i recommend it! http://www.xdebug.org/ luis. "Tom Rogers" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Hi, > > Tuesday, March 16, 2004, 9:51:46 AM, you wrote

Re: [PHP] Regex help - PLease

2004-03-16 Thread Pablo
On 03/16/2004 6:57 AM, Rob Ellis <[EMAIL PROTECTED]> wrote: > On Tue, Mar 16, 2004 at 02:39:27PM +0200, Brent Clark wrote: >> Hi there >> >> im in desperate need of help for a reg expression to ONLY allow 8 NUMBERS to >> start with 100 and may not have any other kind of >> letters or characters.

[PHP] images

2004-03-16 Thread Maxi Yedid
hello I'm using the following function from the php manual (user's posts) and get the following error. What I do is upload a file from the user and save it in the server; that's working fine; what I want is to save a copy of the file in thumbnail size. --

Re: [PHP] Switching First & Last Names in List

2004-03-16 Thread Ben Ramsey
This works rather nicely, too: $name_array = array(); $temp_array = explode("\n", $list); foreach ($temp_array as $name) { $name_array[] = explode(" ", $name); } print_r($name_array); ?> $name_array is now a multi-dimensional array with the first and last names separated. print_r should

Re: [PHP] Efficieny: Include vs Array vs Function

2004-03-16 Thread Rasmus Lerdorf
If you are that concerned about it, "pear install apc". Your include files will be cached in memory and the only cost per include file is a single stat() system call and looking up the opcode cache in shared memory. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Reading a image resource

2004-03-16 Thread Ewout de Boer
Is there a function to get the raw image data from a image resource ? (resource created by imagecreatefrom) I want to read and manipulate an image from a file and store it in a database without the use of a temp. file regards, Ewout -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] yahoo route my mail's to bulk folder

2004-03-16 Thread Miles Thompson
At 10:00 PM 3/16/2004 +0800, Jason Wong wrote: On Tuesday 16 March 2004 20:39, Ali Ashrafzadeh wrote: > in a web application I send mail message to members using mail() function > in HTML format but yahoo mail server route my messages to bulk folder There can be any number of reasons. None of them

  1   2   >