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

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

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

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:

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

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

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

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

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

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

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

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]

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

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

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

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

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

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.

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

Re: [PHP] Quick question

2002-11-07 Thread Todd Pasley
Realistically, there is no difference. It is *slightly* quicker to parse, but thats about it. I think it was introduced to satisfy those that have used this type of syntax in other languages, like C and Perl (which users elsif). I usually use elseif as its a bit nicer looking (IMHO) Todd. -

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.

RE: [PHP] Quick question.

2002-10-02 Thread David Freeman
I am the webmaster of the site, i pay for the server space, is that what you mean? First up Simon, I deleted over a hundred lines of no longer relevant content from your message including things like signatures. You should probably trim messages down when you reply to them... Next up,

Re: [PHP] Quick question.

2002-10-01 Thread Adam Voigt
Everything you need: http://www.php.net/ftp Adam Voigt [EMAIL PROTECTED] On Tue, 2002-10-01 at 11:50, Simon Angell wrote: Hi everyone. I asked this a week or so ago but i am unsure if it got to the list, so here we go again. I am trying to get a remote file to be copied onto my own web

Re: [PHP] Quick question.

2002-10-01 Thread Robert Cummings
Simon Angell wrote: Hi everyone. I asked this a week or so ago but i am unsure if it got to the list, so here we go again. I am trying to get a remote file to be copied onto my own web server, I have looked at fopen() and fread() and fwrite() and get the general idea of each, but im

Re: [PHP] Quick question.

2002-10-01 Thread Simon Angell
i tried that ine and got this... Warning: fopen(/test/canberra.txt, w+) - No such file or directory in C:\Xitami\webpages\bomonster\test2.php on line 4 code.. ?php $rContents = implode( \n, file( 'ftp://ftp.bom.gov.au/anon/gen/fwo/IDN10035.txt' ) ); if( ($fp = fopen( '/test/canberra.txt', 'w+'

Re: [PHP] Quick question.

2002-10-01 Thread Robert Cummings
You're a Windows guy so probably you need the directory delimiters facing the other way :) Try this one (not tested AT ALL): $rContents = implode( \n, file( 'ftp://www.foo.bar/me/my/data.txt' ) ); if( ($fp = fopen( 'c:\path\to\directory\outfile.txt', 'wb+' )) !== false ) { fputs( $fp,

Re: [PHP] Quick question.

2002-10-01 Thread Simon Angell
i removed a / and it worked :) ?php $rContents = implode( \n, file( 'ftp://ftp.bom.gov.au/anon/gen/fwo/IDN10035.txt' ) ); if( ($fp = fopen( 'test/canberratest.txt', 'w+' )) !== false ) { fputs( $fp, $rContents ); fclose( $fp ); } ? Now the format of the content is no longer, can this be

Re: [PHP] Quick question.

2002-10-01 Thread Robert Cummings
Windows makes me cry... this will fix the problem... Change: $rContents = implode( \n, file( 'ftp://ftp.bom.gov.au/anon/gen/fwo/IDN10035.txt' ) ); To: $rContents = implode( \r\n, file( 'ftp://ftp.bom.gov.au/anon/gen/fwo/IDN10035.txt' ) ); If that doesn't work: To: $rContents =

Re: [PHP] Quick question.

2002-10-01 Thread Simon Angell
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 protected, can you help me with

Re: [PHP] quick question

2002-08-15 Thread Adam Williams
basically it is used for accessing a variable in an array. Adam On Wed, 14 Aug 2002, Chris Barnes wrote: hey people, I have been seeing something in a few php scripts i've been playing with and i really dont know what it means or does. I'm only new to php so maybe

Re: [PHP] Quick Question

2002-07-24 Thread Jason Wong
On Wednesday 24 July 2002 15:48, Nicholas Mercier wrote: I'm currently developing a Remote CMS for a site. I'm working on the image upload and want to create a smaller thumbnail type image (thought 200x180 instead of 50x50) I know I'm going to need either imagecopyresize() or

Re: [PHP] Quick question

2002-06-14 Thread Marek Kilimajer
Quick answer: input type=checkbox name=name value=value?= ( $HTTP_POST_VARS['name']=='value' ? ' checked' : '' ) ? the same for radio boxes. Dan McCullough wrote: I have a form, and if someone doesnt fill in a field it returns and asks them to filling in the missing field. I have made it

Re: [PHP] Quick question

2002-06-14 Thread SenthilVelavan
Hello Dan, Please try this.Let me know if you have any problem. HTML HEAD TITLE/TITLE /HEAD BODY BGCOLOR=#FF TEXT=#00 LINK=#FF VLINK=#800080 script language=JavaScript function setChecked() { document.forms[0].r1value.value='on'; } function checkr1() {

RE: [PHP] Quick Question about Classes

2002-06-06 Thread Ray Hunter
You need to call new operator to create the object. Thank you, RAY HUNTER -Original Message- From: Jay [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 2:22 PM To: Php-General (E-mail) Subject: [PHP] Quick Question about Classes When you define a new class can you do the

RE: [PHP] quick question

2002-01-11 Thread Ford, Mike [LSS]
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 10 January 2002 15:44 I thought that $_GET[] and $_POST[] could be used in place of regular variables... that is, $sql = SELECT * FROM tablename WHERE tablename.column=$_GET['criteria_integer']; but

RE: [PHP] quick question

2002-01-11 Thread Philip Olson
$sql = SELECT * FROM tablename WHERE tablename.column=$_GET['criteria_integer']; but unfortunately, this isn't working. On a related note, outside of strings one should always surround keys with quotes, so: $arr = array('a' = 'apple', 'b' = 'banana'); print $arr['a']; // apple

[PHP] both work? (was Re: [PHP] quick question)

2002-01-11 Thread Erik Price
On Friday, January 11, 2002, at 06:05 AM, Ford, Mike [LSS] wrote: Incidentally, I've occasionally had problems including a variable name containing an underscore in a double-quoted string (e.g. $num_recs records retrieved), where PHP tries to insert the value of $num followed by the

Re: [PHP] quick question

2002-01-11 Thread Erik Price
It seems that you are saying that not using quotes is bad (first), but then later you show that omitting the quotes does not result in an error. Or are you saying that the quotes can be omitted if the array element is being used in a string (between quotes), but generally the quotes around the

RE: [PHP] quick question

2002-01-10 Thread Ford, Mike [LSS]
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 09 January 2002 19:22 I'm trying to write my code in accordance with the PHP 4.1.0 security advisory -- that is, I want to use the $_GET and $_POST arrays when grabbing variables passed with GET and POST forms.

Re: [PHP] quick question

2002-01-10 Thread Erik Price
I thought that $_GET[] and $_POST[] could be used in place of regular variables... that is, $sql = SELECT * FROM tablename WHERE tablename.column=$_GET['criteria_integer']; but unfortunately, this isn't working. On Thursday, January 10, 2002, at 08:18 AM, Ford, Mike [LSS] wrote:

Re: [PHP] quick question

2002-01-10 Thread Erik Price
I thought that $_GET[] and $_POST[] could be used in place of regular variables... that is, $sql = SELECT * FROM tablename WHERE tablename.column=$_GET['criteria_integer']; but unfortunately, this isn't working. It resulted in the following error message in the browser: Parse error: parse

Re: [PHP] quick question

2002-01-10 Thread Miles Thompson
Yes, but $sql is passed to the database, which has no understanding of $_GET. Will it take PHP that much longer to make this assignment: $criteria_integer = $_GET['criteria_integer']; With the benefit that the SQL is much easier to read $sql = SELECT * FROM tablename WHERE

  1   2   >