Re: [PHP] Quick Question

2010-06-15 Thread Malka Cymbalista
The address to subscribe to the javascript list is http://lists.evolt.org/mailman/listinfo/javascript There is a link there to the archives. -- Malka Cymbalista Webmaster, Weizmann Institute of Science malki.cymbali...@weizmann.ac.il 08-934-3036 On 6/15/2010 at 12:16 AM, in message

Re: [PHP] Quick Question

2010-06-14 Thread Karl DeSaulniers
Thanks Malka, I was wondering if you had a web page I could go to before I sign up to see some discussions that have taken place. I tried using the lists.evolt.org, but it did not show the javascript section. TIA, Karl On Jun 14, 2010, at 3:20 AM, Malka Cymbalista wrote:

Re: [PHP] Quick Question

2010-06-14 Thread Karl DeSaulniers
On Jun 14, 2010, at 3:45 PM, Paul M Foster wrote: On Sun, Jun 13, 2010 at 06:06:16PM -0500, Karl DeSaulniers wrote: Hello List, I may have asked this before, but can not find any emails about it. Does anyone know of a general-javascript email list like this php list? Hoping someone here

Re: [PHP] Quick Question

2010-06-13 Thread Nilesh Govindarajan
On Mon, Jun 14, 2010 at 4:36 AM, Karl DeSaulniers k...@designdrumm.com wrote: Hello List, I may have asked this before, but can not find any emails about it. Does anyone know of a general-javascript email list like this php list? Hoping someone here can point me in the right direction. TIA

Re: [PHP] quick question - need a site i can more or less copy from

2009-03-23 Thread Jochem Maas
bruce schreef: Hi... Working on a test app, and I need a web interface to test/view the underlying information. Looking for (hopefully) quick pointers/suggestions. I'm dealing with a number of cli web crawling apps that return data. I'm trying to find a quick app that I can modify the db

[PHP] quick question - need a site i can more or less copy from

2009-03-22 Thread bruce
Hi... Working on a test app, and I need a web interface to test/view the underlying information. Looking for (hopefully) quick pointers/suggestions. I'm dealing with a number of cli web crawling apps that return data. I'm trying to find a quick app that I can modify the db schema, as well as

Re: [PHP] Quick question regarding debugging and PHP structure.

2009-01-01 Thread Nathan Rixham
Ashley Sheridan wrote: On Wed, 2008-12-31 at 20:41 +, Ólafur Waage wrote: Short: Is it possible to see the PHP code that is going to be processed in whole? Long: I love to see things visually, and while programming i create all kinds of debugging variables i keep on the side for each

[PHP] Quick question regarding debugging and PHP structure.

2008-12-31 Thread Ólafur Waage
Short: Is it possible to see the PHP code that is going to be processed in whole? Long: I love to see things visually, and while programming i create all kinds of debugging variables i keep on the side for each page/request. I know this is possibly not possible since this has to be done from

Re: [PHP] Quick question regarding debugging and PHP structure.

2008-12-31 Thread Ashley Sheridan
On Wed, 2008-12-31 at 20:41 +, Ólafur Waage wrote: Short: Is it possible to see the PHP code that is going to be processed in whole? Long: I love to see things visually, and while programming i create all kinds of debugging variables i keep on the side for each page/request. I know

[PHP] Quick question regarding $_SESSION and header()

2008-12-11 Thread Ólafur Waage
I should be able to set a session var and then do a header redirect right? Small bug regarding that and i just need to be sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quick question regarding $_SESSION and header()

2008-12-11 Thread Dan Joseph
On Thu, Dec 11, 2008 at 2:01 PM, Ólafur Waage olaf...@gmail.com wrote: I should be able to set a session var and then do a header redirect right? Small bug regarding that and i just need to be sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Quick question regarding $_SESSION and header()

2008-12-11 Thread Daniel Brown
On Thu, Dec 11, 2008 at 14:01, Ólafur Waage olaf...@gmail.com wrote: I should be able to set a session var and then do a header redirect right? Small bug regarding that and i just need to be sure. This isn't a bug in PHP, it's actually in adherance with HTTP standards (and current browser

[PHP] Re: [PHP-QA] Re: [PHP] Quick question regarding $_SESSION and header()

2008-12-11 Thread Daniel Brown
(Forwarding back to PHP General for the archives.) On Thu, Dec 11, 2008 at 14:31, Ólafur Waage olaf...@gmail.com wrote: Its fixed, thanks guys :) On Thu, Dec 11, 2008 at 7:16 PM, Daniel Brown danbr...@php.net wrote: On Thu, Dec 11, 2008 at 14:01, Ólafur Waage olaf...@gmail.com wrote: I

[PHP] Re: [PHP-QA] Re: [PHP] Quick question regarding $_SESSION and header()

2008-12-11 Thread Ólafur Waage
Whoops, sent the thanks to the wrong list :P On Thu, Dec 11, 2008 at 7:33 PM, Daniel Brown danbr...@php.net wrote: (Forwarding back to PHP General for the archives.) On Thu, Dec 11, 2008 at 14:31, Ólafur Waage olaf...@gmail.com wrote: Its fixed, thanks guys :) On Thu, Dec 11, 2008 at 7:16

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-26 Thread Micah Gersten
I said AFAIK. I was under the impression the DirectoryIndex did a redirect. I just tested it and it does not, so you are correct Jochem. He has everything he needs. He'll need the document root and $_SERVER['REQUEST_URI'] to do this. Thank you, Micah Gersten onShore Networks Internal

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-24 Thread Ólafur Waage
I am pretty certain that this isnt possible under current code. But i just wanted a confirmation on this, since i worked on the code for a while trying to get to the end point. And yes Jochem, i am looking for a magical location :P Well, thanks guys :) Ólafur Waage 2008/8/24 Micah Gersten

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-24 Thread Jochem Maas
Micah Gersten schreef: What is the point of figuring that out? If we knew that, we might be able to help you with a solution. As it stands what you want is not possible AFAIK. you know wrong. he has all the info needed. 1. the document root of the site (/var/www/example.com) 2. the

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-23 Thread Ólafur Waage
Robert, thanks for the reply but i had tried __FILE__ and __DIR__ (which is dirname(__FILE__)) but it doesnt work. And thanks for the reply also Ashley but as i said in my first post, i had tried $_SERVER with limited results Ólafur Waage 2008/8/23 Robert Cummings [EMAIL PROTECTED]: On Fri,

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-23 Thread Ólafur Waage
Luke, i am looking for local directory info. Not URL info as i said before. And Ashley, as i said in the original mail. I had tried $_SERVER. Thanks for the reply though. Ólafur Waage 2008/8/23 Luke [EMAIL PROTECTED]: $_REQUEST? Luke Slater Lead Developer NuVoo On 23 Aug 2008, at 12:53,

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-23 Thread David Otton
2008/8/23 Ólafur Waage [EMAIL PROTECTED]: Robert, thanks for the reply but i had tried __FILE__ and __DIR__ (which is dirname(__FILE__)) but it doesnt work. And thanks for the reply also Ashley but as i said in my first post, i had tried $_SERVER with limited results If checking the output

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-23 Thread Ólafur Waage
Thanks for this David, i was using REQUEST_URI and other $_SERVER info and mixed that together. It worked in some situations but on hosted servers (like GoDaddy and others like that where they use a complicated directory setup) it does not work. Olafur Waage 2008/8/23 David Otton [EMAIL

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-23 Thread Jochem Maas
Ólafur Waage schreef: Robert, thanks for the reply but i had tried __FILE__ and __DIR__ (which is dirname(__FILE__)) but it doesnt work. __DIR__ only came into existence very recently IIRC, realpath(dirname(__FILE__)); will tell you what directory the *current script* is actually living in

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-23 Thread Micah Gersten
What is the point of figuring that out? If we knew that, we might be able to help you with a solution. As it stands what you want is not possible AFAIK. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Ólafur Waage wrote: I am within a certain directory

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-22 Thread Ashley Sheridan
How are you browsing to it from within PHP? Depending on how you are doing it, the way to get the cwd is different Ash www.ashleysheridan.co.uk ---BeginMessage--- I'll throw out an example here. I have a directory structure of: /var/www/example/ And in that i have a file: index.php That file

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-22 Thread Ólafur Waage
Thanks for the reply Micah but i have no interest in the URL. I am looking for the servers local path to the directory. (example: /var/www/directory/ or C:\apache\htdocs\directory\) Also the HTTP_REFERER is empty unless you are linked in from another location. And then it gives you the URL you

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-22 Thread Micah Gersten
You might want to try a Redirect Rule or rewrite which would tell you the HTTP PATH. AFAIK, there is no way to know which directory they tried to access unless you write your own index.php and store it in a session variable. Thank you, Micah Gersten onShore Networks Internal Developer

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-22 Thread Ólafur Waage
That is the brick wall i faced. There is no way to know where exactly you are (via DirectoryIndex) locally on the machine. Thanks though. 2008/8/22 Micah Gersten [EMAIL PROTECTED]: You might want to try a Redirect Rule or rewrite which would tell you the HTTP PATH. AFAIK, there is no way to

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-22 Thread Ashley Sheridan
On Fri, 2008-08-22 at 21:56 +, Ólafur Waage wrote: That is the brick wall i faced. There is no way to know where exactly you are (via DirectoryIndex) locally on the machine. Thanks though. 2008/8/22 Micah Gersten [EMAIL PROTECTED]: You might want to try a Redirect Rule or rewrite

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-22 Thread Ólafur Waage
I am within a certain directory of the server via the browser. Example: http://www.example.com/foo/bar would be /var/www/example.com/foo/bar And Apache's DirectoryIndex feature is opening a index.php file that is located at /var/www/example.com/test/index.php And from that file i need to

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-22 Thread Eric Butera
On Thu, Aug 21, 2008 at 8:50 PM, Ólafur Waage [EMAIL PROTECTED] wrote: I'll throw out an example here. I have a directory structure of: /var/www/example/ And in that i have a file: index.php That file echo's getcwd() and returns: /var/www/example/ Now i tell Apache or Lighty that if a

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-22 Thread Robert Cummings
On Fri, 2008-08-22 at 22:13 -0400, Eric Butera wrote: On Thu, Aug 21, 2008 at 8:50 PM, Ólafur Waage [EMAIL PROTECTED] wrote: I'll throw out an example here. I have a directory structure of: /var/www/example/ And in that i have a file: index.php That file echo's getcwd() and returns:

[PHP] Quick question regarding getcwd() and directory location.

2008-08-21 Thread Ólafur Waage
I'll throw out an example here. I have a directory structure of: /var/www/example/ And in that i have a file: index.php That file echo's getcwd() and returns: /var/www/example/ Now i tell Apache or Lighty that if a directory does not have an index.php file, that it should use /example/index.php

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-21 Thread Micah Gersten
Once you tell apache to load /example/index.php, that's where you are. You might try looking at the $_SERVER['HTTP_REFERER']. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Ólafur Waage wrote: I'll throw out an example here. I have a directory structure

[PHP] quick question

2008-05-09 Thread Merca, Ansta Ltd
Hi Ho to read date from HTML form - How to read $_POST['date']=dd/mm/ string variable as a date? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] quick question

2008-05-09 Thread Richard Heyes
Ho to read date from HTML form - How to read $_POST['date']=dd/mm/ string variable as a date? If you want a unix timestamp then try investigating strtotime(). -- Richard Heyes ++ | Access SSH with a Windows mapped drive | |

RES: [PHP] quick question

2008-05-09 Thread Thiago Pojda
em: sexta-feira, 9 de maio de 2008 06:36 Para: php-general@lists.php.net Assunto: [PHP] quick question Hi Ho to read date from HTML form - How to read $_POST['date']=dd/mm/ string variable as a date? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] quick question

2008-05-09 Thread Richard Heyes
Well, when I try date('d/m/y', strtotime($_POST('date')) - it seems mixing day and month, I tried setlocale(LC_ALL, 'en_GB'); but it didn't strtotime() returns a unix timestamp (ie number of seconds since 1970ish. Nothing to do with the date object. -- Richard Heyes

Re: [PHP] quick question

2008-05-09 Thread Stut
Well, when I try date('d/m/y', strtotime($_POST('date')) - it seems mixing day and month, I tried setlocale(LC_ALL, 'en_GB'); but it didn't If you're sure that's the format of the date, this will do it... list($day, $month, $year) = explode('/', $thedate); $thetimestamp = mktime(0, 0, 0,

Re: [PHP] Quick question on data formatting

2007-12-01 Thread tedd
At 12:30 AM -0500 11/29/07, Robert Cummings wrote: On Wed, 2007-11-28 at 22:19 -0700, Jon Westcot wrote: $123,456.78 becomes 123456.78 $24,680 becomes 24680 1234B becomes 1234 $number = ereg_replace( '[^[:digit:].]', '' ); Cheers, Rob. Sweet. Another one of those

[PHP] Quick question on data formatting

2007-11-28 Thread Jon Westcot
Hi all: Since I'm relatively new to PHP, I'm not familiar with all of the shortcuts and efficient ways one could write a routine that handles converting data from one format into another, so I thought I'd ask here for recommendations on how to solve one particular issue I've got. I'm

Re: [PHP] Quick question on data formatting

2007-11-28 Thread Robert Cummings
On Wed, 2007-11-28 at 22:19 -0700, Jon Westcot wrote: Hi all: Since I'm relatively new to PHP, I'm not familiar with all of the shortcuts and efficient ways one could write a routine that handles converting data from one format into another, so I thought I'd ask here for

Re: [PHP] Quick question on data formatting [SOLVED]

2007-11-28 Thread Jon Westcot
Thanks, Rob! I can see that it's going to be important for me to get familiar with the POSIX regular expressions. Jon - Original Message - On Wed, 2007-11-28 at 22:19 -0700, Jon Westcot wrote: Hi all: Since I'm relatively new to PHP, I'm not familiar with all of the shortcuts

Re: [PHP] Quick question on data formatting [SOLVED]

2007-11-28 Thread Robert Cummings
On Wed, 2007-11-28 at 22:47 -0700, Jon Westcot wrote: Thanks, Rob! I can see that it's going to be important for me to get familiar with the POSIX regular expressions. You can use the perl versions too. I just got used to the posix versions a long time ago :). BTW, if you didn't notice I

[PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Ryan A
Hey all! Quick question, one of our sites already uses BASIC_AUTH to take the username and pass from clients, we were thinking of instead doing it via a login form (so we can also add a CAPTCHA later...if needed) what I would like to know is, by using a login form instead of a BASIC_AUTH are

Re: [PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Stut
Ryan A wrote: Quick question, one of our sites already uses BASIC_AUTH to take the username and pass from clients, we were thinking of instead doing it via a login form (so we can also add a CAPTCHA later...if needed) what I would like to know is, by using a login form instead of a BASIC_AUTH

Re: [PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Stut
I think you meant to send this to the OP not me. And please also include the list in your replies. Tijnema ! wrote: The best way is using a HTML form, and then adding a javascript ,that runs before submitting, that encrypts the password with md5. This offers little more security than plain

Re: [PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Ryan A
Hi guys, Thank you for your responses and your input. At the end of the day the best way to secure data being transferred from client to server is to use SSL. THAT I know ;) was just wondering from a normal http page... and you answered that question perfectly...so thanks again! Would

Re: [PHP] quick question about preg_replace

2006-10-05 Thread Ivo F.A.C. Fokkema
On Thu, 05 Oct 2006 09:29:46 +0800, Penthexquadium wrote: On Wed, 4 Oct 2006 23:19:58 +0200, Martin Bach Nielsen [EMAIL PROTECTED] wrote: Hi all. I have written a guestbook (I know, there's a ton out there), which until recently did not get any spam, so now I'm trying to remove the

[PHP] quick question about preg_replace

2006-10-04 Thread Martin Bach Nielsen
Hi all. I have written a guestbook (I know, there's a ton out there), which until recently did not get any spam, so now I'm trying to remove the spam-ad by using preg_replace: $melding = preg_replace('/(a href=\http:\/\/[^^]+)/i', This message is temporarily cut-off due to spam-suspicion.,

Re: [PHP] quick question about preg_replace

2006-10-04 Thread Penthexquadium
On Wed, 4 Oct 2006 23:19:58 +0200, Martin Bach Nielsen [EMAIL PROTECTED] wrote: Hi all. I have written a guestbook (I know, there's a ton out there), which until recently did not get any spam, so now I'm trying to remove the spam-ad by using preg_replace: $melding =

[Fwd: RE: [PHP] Quick Question re: Windows/Linux PHP]

2006-07-04 Thread Jochem Maas
rather struggle for days with it than listen to some halfwit like you who's got nothing better to do. Get a life moron. -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: July 1, 2006 6:41 AM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] Quick Question re

Re: [PHP] Quick Question re: Windows/Linux PHP

2006-07-01 Thread chris smith
On 7/1/06, Beauford [EMAIL PROTECTED] wrote: Hi, I'm just curious, because I come across this from time to time. Why does the code below work on Windows and not on Linux. PHP is 5.0 on Linux and 4.4 on Windows (still can't get 5 on Windows). The code at the very bottom is how I got it to work

Re: [PHP] Quick Question re: Windows/Linux PHP

2006-07-01 Thread Jochem Maas
Beauford wrote: Hi, I'm just curious, because I come across this from time to time. Why does the code below work on Windows and not on Linux. PHP is 5.0 on Linux and 4.4 on Windows (still can't get 5 on Windows). The code at the what stops you from installing php5 on windows? - it's not

[PHP] Quick Question re: Windows/Linux PHP

2006-06-30 Thread Beauford
Hi, I'm just curious, because I come across this from time to time. Why does the code below work on Windows and not on Linux. PHP is 5.0 on Linux and 4.4 on Windows (still can't get 5 on Windows). The code at the very bottom is how I got it to work on Linux. Also, why is it with the same setup I

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-27 Thread Jochem Maas
Dotan Cohen wrote: On 7/26/05, Jochem Maas [EMAIL PROTECTED] wrote: ...somebody beat me with a virtual stick if I am wrong! Why? I'd rather just throw the php.net/manual at you! harddrive or memory stick? just /home/dotan/myfiles/docs/php-manual/ but seriously did I err? Not that I

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-27 Thread Dotan Cohen
On 7/27/05, Jochem Maas [EMAIL PROTECTED] wrote: Dotan Cohen wrote: On 7/26/05, Jochem Maas [EMAIL PROTECTED] wrote: ...somebody beat me with a virtual stick if I am wrong! Why? I'd rather just throw the php.net/manual at you! harddrive or memory stick? just

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-26 Thread Dotan Cohen
On 7/25/05, Jochem Maas [EMAIL PROTECTED] wrote: ...somebody beat me with a virtual stick if I am wrong! Why? I'd rather just throw the php.net/manual at you! Dotan http://lyricslist.com/lyrics/artist_albums/23/aguilera_christina.php Aguilera, Christina Song Lyrics -- PHP General Mailing List

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-26 Thread Jochem Maas
Dotan Cohen wrote: On 7/25/05, Jochem Maas [EMAIL PROTECTED] wrote: ...somebody beat me with a virtual stick if I am wrong! Why? I'd rather just throw the php.net/manual at you! harddrive or memory stick? but seriously did I err? Dotan

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-26 Thread Dotan Cohen
On 7/26/05, Jochem Maas [EMAIL PROTECTED] wrote: ...somebody beat me with a virtual stick if I am wrong! Why? I'd rather just throw the php.net/manual at you! harddrive or memory stick? just /home/dotan/myfiles/docs/php-manual/ but seriously did I err? Not that I see. But don't forget that

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-26 Thread Dotan Cohen
On 7/26/05, Jochem Maas [EMAIL PROTECTED] wrote: ...somebody beat me with a virtual stick if I am wrong! Why? I'd rather just throw the php.net/manual at you! harddrive or memory stick? just /home/dotan/myfiles/docs/php-manual/ but seriously did I err? Not that I see. But don't forget that

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-25 Thread Jochem Maas
Richard Lynch wrote: On Sun, July 24, 2005 11:39 am, Dotan Cohen said: On 7/24/05, Bruce Gilbert [EMAIL PROTECTED] wrote: I am well versed in coding with xhtml which requires all lower case and am pretty much a newbie at PHP so that is why I am asking this question. is this acceptible if

[PHP] quick question about using capital letters coding w/ PHP

2005-07-24 Thread Bruce Gilbert
Hello, I am well versed in coding with xhtml which requires all lower case and am pretty much a newbie at PHP so that is why I am asking this question. is this acceptible if ($_post [sender_email] == ) or does at have to be if ($_POST [sender_email] == ) in short, do uppercase and lowercase

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-24 Thread Dotan Cohen
On 7/24/05, Bruce Gilbert [EMAIL PROTECTED] wrote: Hello, I am well versed in coding with xhtml which requires all lower case and am pretty much a newbie at PHP so that is why I am asking this question. is this acceptible if ($_post [sender_email] == ) or does at have to be if ($_POST

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-24 Thread Chris Shiflett
Bruce Gilbert wrote: is this acceptible if ($_post [sender_email] == ) or does at have to be if ($_POST [sender_email] == ) As a friendly suggestion, you should always try before you ask. You could answer your own question with a few seconds of effort. Typically, such extreme laziness is

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-24 Thread Richard Lynch
On Sun, July 24, 2005 11:39 am, Dotan Cohen said: On 7/24/05, Bruce Gilbert [EMAIL PROTECTED] wrote: I am well versed in coding with xhtml which requires all lower case and am pretty much a newbie at PHP so that is why I am asking this question. is this acceptible if ($_post [sender_email]

[PHP] Quick Question re: Input

2004-11-22 Thread Monique Verrier
Hi! This is what I want to do: When the user presses the submit button, run a function along the lines of: form method=post name=form1 action=?php echo addrecord(); ? The addrecord function basically runs an SQL insert. This seems as though it should be uncomplicated. All the code that I

RE: [PHP] Quick Question re: Input

2004-11-22 Thread Jay Blanchard
[snip] form method=post name=form1 action=?php echo addrecord(); ? [/snip] Unfortunately you cannot do it like this, you either have to reload the page or send the processing to another namespace. But you can do different buttons... form method=post name=form1 action=processStuff.php input

[PHP] quick question

2004-06-19 Thread water_foul
how do you set a system path to the top level, i allredy tried '/' but it ignores the last '. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Quick question: PHP user?

2003-10-10 Thread Grant Rutherford
Hi, Just a quick question... What user does php run as on linux? Is it the Apache user? Is there some way to tell? I need to be able to set a directory so that only PHP can access it. Thanks, Grant -- Grant Rutherford Iders Incorporated 600A Clifton Street Winnipeg, MB R3G 2X6

Re: [PHP] Quick question: PHP user?

2003-10-10 Thread Dan Anderson
Just a quick question... What user does php run as on linux? It all depends on how PHP is set up. Do something like: $fff = fopen (./temp,w); fwrite($fff,testing); fclose($fff); in a directory chmod 777. Look at the user id. (For what it's worth on my system its UID 518). -Dan -- PHP

Re: [PHP] Quick question: PHP user?

2003-10-10 Thread Ryan Thompson
As an apache module it runs as the apache user. On Friday 10 October 2003 17:44, Grant Rutherford wrote: Hi, Just a quick question... What user does php run as on linux? Is it the Apache user? Is there some way to tell? I need to be able to set a directory so that only PHP can access it.

Re: [PHP] Quick question - Warnings

2003-08-14 Thread CPT John W. Holmes
From: Ryan A [EMAIL PROTECTED] I know how to suppress warnings in my file locally but i want to suppress warnings and notices in one whole directory using a .htaccess, i cant seem to find my old file that does that, can someone refresh my memory please? This is how i do it in my local file

[PHP] Quick question - Warnings

2003-08-14 Thread Ryan A
Hi, I know how to suppress warnings in my file locally but i want to suppress warnings and notices in one whole directory using a .htaccess, i cant seem to find my old file that does that, can someone refresh my memory please? This is how i do it in my local file when i want all ON:

Re: [PHP] Quick question - Warnings

2003-08-14 Thread Ryan A
Hi John, Thanks for replying, I already tried that and thought i might be mistaken because i am still getting stuff like this: Notice: Undefined index: facility24 in /home/bestweb/public_html/add_co_location.php on line 12 Plenty of notices I tried: php_value error_reporting 0 (and)

Re: [PHP] Quick question - Warnings

2003-08-14 Thread Shena Delian O'Brien
Try using in your PHP page: error_reporting (E_ALL ^ E_NOTICE); Ryan A wrote: Hi John, Thanks for replying, I already tried that and thought i might be mistaken because i am still getting stuff like this: Notice: Undefined index: facility24 in /home/bestweb/public_html/add_co_location.php on

[PHP] quick question

2003-03-10 Thread Doug Parker
I'm sending credit card info to a 3rd party credit card processing site. I would like to keep the inputted values and, after the approval, have them appear in the value part of the form so that they don't have to re-input the same values they had just put in for the credit card. how can i do

Re: [PHP] quick question

2003-03-10 Thread Marco Tabini
You should look at E-xact (http://www.e-xact.com). They have a solution they call tagged transactions that actually replaces the credit card numbers with tags that are only meaningful in the context of your merchant account. That way, you can let your customers make repeat purchases without

Re: [PHP] quick question

2003-03-10 Thread CPT John W. Holmes
I'm sending credit card info to a 3rd party credit card processing site. I would like to keep the inputted values and, after the approval, have them appear in the value part of the form so that they don't have to re-input the same values they had just put in for the credit card. how can i

Re: [PHP] quick question

2003-03-10 Thread Doug Parker
Right - but the problem is, the form is submitting to another site, so i don't have a way to store the variables. I could put them in session variables, but I would have to create another script and then forward the form submission to the outside side. This isn't working because the

RE: [PHP] quick question

2003-03-10 Thread John W. Holmes
I'm sending credit card info to a 3rd party credit card processing site. I would like to keep the inputted values and, after the approval, have them appear in the value part of the form so that they don't have to re-input the same values they had just put in for the credit card. how can i

[PHP] quick question form validation

2003-02-12 Thread Didier McGillis
I must be missing something, but I am doing some very simple validation of a form. So if it is incorrect I need to redisplay the form. Normally what I do is I just include the form back in. This one I have tried to include the form back in, but I need to keep an id number. That seems to

Re: [PHP] quick question form validation

2003-02-12 Thread Jason Wong
On Thursday 13 February 2003 00:47, Didier McGillis wrote: I must be missing something, but I am doing some very simple validation of a form. So if it is incorrect I need to redisplay the form. Normally what I do is I just include the form back in. This one I have tried to include the form

Re: [PHP] quick question form validation

2003-02-12 Thread Didier McGillis
Is there a way that I can redirect and keep the id. From: Jason Wong [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] quick question form validation Date: Thu, 13 Feb 2003 00:55:59 +0800 On Thursday 13 February 2003 00:47, Didier McGillis wrote: I must

Re: [PHP] quick question form validation

2003-02-12 Thread Jason Wong
On Thursday 13 February 2003 01:26, Didier McGillis wrote: Is there a way that I can redirect and keep the id. If you want to _redirect_ use header(). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] quick question form validation

2003-02-12 Thread Didier McGillis
I get this. Warning: Cannot add header information - headers already sent by (output started header.php:7) in add_store.php on line 186 From: Jason Wong [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] quick question form validation Date: Thu, 13 Feb 2003

Re: [PHP] quick question form validation

2003-02-12 Thread Jason Wong
On Thursday 13 February 2003 01:40, Didier McGillis wrote: I get this. Warning: Cannot add header information - headers already sent by (output started header.php:7) in add_store.php on line 186 OK, did you search the archives? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open

[PHP] quick question

2003-01-30 Thread Dale
I need to specify a absolute path to a file on my harddrive, but you can't use backslashes in php. Right? Thanks, Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] quick question

2003-01-30 Thread Ernest E Vogelsinger
At 10:25 30.01.2003, Dale said: [snip] I need to specify a absolute path to a file on my harddrive, but you can't use backslashes in php. Right? [snip] Oh yes, you can. Just pay attention that the backslash is an

Re: [PHP] quick question

2003-01-30 Thread Jason Wong
On Thursday 30 January 2003 17:25, Dale wrote: I need to specify a absolute path to a file on my harddrive, but you can't use backslashes in php. Right? Please use a descriptive subject. You escape an intended literal backslash with a backslash. -- Jason Wong - Gremlins Associates -

RE: [PHP] quick question

2003-01-30 Thread John W. Holmes
I need to specify a absolute path to a file on my harddrive, but you can't use backslashes in php. Right? You can also use forward slashes just as effectively. C:/path/to/your/file.php Or, if the file is on the C drive, you can use /path/to/your/file.php without even using the c: part.

[PHP] Quick Question about Template Parsers

2003-01-22 Thread Jim Lucas
In general, how do most template parsers work? do they read the file into a variable and do something to the effect of preg_replace() to element that is found? and if so, could you replace the step of reading the file into a variable with getting the template data out of a database?

Re: [PHP] Quick Question about Template Parsers

2003-01-22 Thread Brent Baisley
Sure, you could do it any way you want. One way or another you need to get it into a variable, so how you get the template there doesn't really have any affect on your replace function. I'm using the file based template so it's easy for users to modify. I read the template file into the output

RE: [PHP] Quick question

2002-11-08 Thread Ford, Mike [LSS]
-Original Message- From: Martin Towell [mailto:martin.towell;world.net] Sent: 08 November 2002 06:23 what is the technical difference between using else if Well, technically this starts a new block structure level... and elseif ... and this doesn't. But to all

[PHP] Quick question

2002-11-07 Thread Martin Towell
what is the technical difference between using else if and elseif ?? Are they interpretted the same internally? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quick question

2002-11-07 Thread Todd Pasley
. - Original Message - From: Martin Towell [EMAIL PROTECTED] To: Php-General@Lists. Php. Net [EMAIL PROTECTED] Sent: Friday, November 08, 2002 4:23 PM Subject: [PHP] Quick question what is the technical difference between using else if and elseif ?? Are they interpretted the same

Re: [PHP] Quick question.

2002-10-06 Thread Simon Angell
Hi, sorry about the delay, i have some computer problems in the last few days, all fixed now i hope. I don't know exactly what shell access is, or ssh for that matter, but in my quest to do what i was trying to do, I realised its not worth it due to the fact the file i was copying was still

Re: [PHP] Quick question.

2002-10-02 Thread Robert Cummings
Simon Angell wrote: Thanks for that Robert *it works*, now i have 1 more problem, after uploading to my web server i get this... Warning: fopen(wtest.txt, wb+) - Permission denied in /home/canberra/public_html/bomonster/canberra.php on line 6 Dunno why either, the directory is not

Re: [PHP] Quick question.

2002-10-02 Thread Simon Angell
I am the webmaster of the site, i pay for the server space, is that what you mean? -- Cheers - Simon Angell Canberra ACT www.canberra-wx.com - Member of: Australian Severe Weather

Re: [PHP] Quick question.

2002-10-02 Thread Robert Cummings
No i mean switch to the directory in which you have th file with the code and type 'ls -al' Then look at the permissions and ownerships. Don't forget the web server runs with different permissions thatn you do at home. Cheers, Rob. Simon Angell wrote: I am the webmaster of the site, i pay

Re: [PHP] Quick question.

2002-10-02 Thread Simon Angell
i am unsure what you mean, where exactly do it type in 'ls -al' ? -- Cheers - Simon Angell Canberra ACT www.canberra-wx.com - Member of: Australian Severe Weather Association.

  1   2   >