[PHP] Re: Why are Session Variables carried over into a brand new browser window?

2004-04-18 Thread Torsten Roehr
Bob Bruce - Programmer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This is my first posting to this group, so I am not familiar with any special etiquette for it, please bear with me. . . I maintain the PHP code for the website for the murals of Winnipeg and have found a

RE: [PHP] Bookmark server

2004-04-18 Thread PHP Email List
I am planning on writing a bookmark server in php. The idea is I will have a database that stores all my internet favorites on a web server some where, so if I am doing some web browsing away from home and find a site I want to save, I can go to my bookmark server and save the url there.

[PHP] addslashes vs. mysql_real_escape_string

2004-04-18 Thread Richard Davey
Hi, I just finished reading Chris Shiflett's article in this months php|a about SQL injection and have a question I can't seem to find answered anywhere: Does mysql_real_escape_string (or mysql_escape_string) do anything extra that addslashes() doesn't? In the examples in the manual it is just

Re: [PHP] Array Problem

2004-04-18 Thread Don Read
On 16-Apr-2004 Flavio Fontana wrote: Hi I have i Problem i got a variable a=2351 now i need to create an array out of this variable a[0]=1 a[1]=3 a[2]=5 a[3]=1 I have an idea to use the modulo function an do some Math but im sure there is a nicer way of solving my prob $a =

php-general Digest 18 Apr 2004 11:55:07 -0000 Issue 2712

2004-04-18 Thread php-general-digest-help
php-general Digest 18 Apr 2004 11:55:07 - Issue 2712 Topics (messages 183746 through 183760): Re: why doesn't this work ? 183746 by: Daniel Clark 183754 by: Pooya Eslami 183756 by: Andy Ladouceur Removing line breaks... 183747 by: Russell P Jones

Re: [PHP] Bookmark server

2004-04-18 Thread Justin French
On 18/04/2004, at 10:35 AM, Chris W wrote: So now I am out of ideas and was wondering if anyone here had any. We're getting a little OT, but it's possible that a bookmarklet (a JavaScript bookmark) installed on all browsers you use could act as the method of grabbing the existing URL, and

[PHP] Array Sorting Headaches

2004-04-18 Thread Burhan Khalid
Greetings everyone : Having a hard time with this one. I have a multi-dim array $foo[$x][$y]['key'], where $x and $y are numeric. Here is some sample data : Array ( [$x] = Array ( [0] = Array ( [invoiceid] = 11842

Re: [PHP] Bookmark server

2004-04-18 Thread Chris W
Justin French wrote: On 18/04/2004, at 10:35 AM, Chris W wrote: So now I am out of ideas and was wondering if anyone here had any. We're getting a little OT, but it's possible that a bookmarklet (a JavaScript bookmark) installed on all browsers you use could act as the method of grabbing the

Re: [PHP] Bookmark server

2004-04-18 Thread Marek Kilimajer
Chris W wrote: Justin French wrote: On 18/04/2004, at 10:35 AM, Chris W wrote: So now I am out of ideas and was wondering if anyone here had any. We're getting a little OT, but it's possible that a bookmarklet (a JavaScript bookmark) installed on all browsers you use could act as the method

Re: [PHP] why doesn't this work ?

2004-04-18 Thread Pooya Eslami
Yes, the server supports php, and I don't want to make it into a php file because its a big html file and I just need this little script on it. Why cannot I embed php in html files? Andy Ladouceur [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It's already been mentioned, but you do

Re: [PHP] why doesn't this work ?

2004-04-18 Thread Robert Cummings
On Sun, 2004-04-18 at 10:27, Pooya Eslami wrote: Yes, the server supports php, and I don't want to make it into a php file because its a big html file and I just need this little script on it. Why cannot I embed php in html files? You CAN embed PHP in .html files PROVIDED THAT YOUR WEBSERVER

Re: [PHP] why doesn't this work ?

2004-04-18 Thread Marek Kilimajer
Pooya Eslami wrote: Yes, the server supports php, and I don't want to make it into a php file because its a big html file and I just need this little script on it. Why cannot I embed php in html files? The server does not parse html files for php so that it does not waste CPU on parsing files

[PHP] Re: Array Sorting Headaches

2004-04-18 Thread Torsten Roehr
Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greetings everyone : Having a hard time with this one. I have a multi-dim array $foo[$x][$y]['key'], where $x and $y are numeric. Here is some sample data : Array ( [$x] = Array ( [0] =

Re: [PHP] why doesn't this work ?

2004-04-18 Thread Daniel Clark
You have this as a xxx.php file right? It has to have a .php extension for it to work. I put this in the body of an html file: ?php if ($handle = opendir('.')) { while (false !== ($file = readdir($handle))) { if ($file != . $file != .. eregi('\.html$', $file)) { echo lia

Re: [PHP] why doesn't this work ?

2004-04-18 Thread Daniel Clark
The web server is set up to see the .php file extension and pass the entire page to the PHP engine for processing. Then the web server passes the results back to the client's browser ( HTML, text, and images). Yes, the server supports php, and I don't want to make it into a php file because

[PHP] session var problems

2004-04-18 Thread Kathleen Ballard
Dear list, I am trying to set a simple session variable on PageA. $_SESSION['CategoryID'] = intval($Data['ID']); if I print after setting the value on PageA, I will get the expected ID number. go on to PageB and $_SESSION['CategoryID'] is '0'. If I hard code in a value for

RE: [PHP] why doesn't this work ?

2004-04-18 Thread Dave G
Why cannot I embed php in html files? I'm relatively new to PHP, but I am fairly sure that it is possible to have PHP embedded in .html files, as my web hosting service accomplishes exactly that. I believe it's just some kind of setting in Apache or somewhere else that you or your web

Re: [PHP] addslashes vs. mysql_real_escape_string

2004-04-18 Thread John W. Holmes
Richard Davey wrote: Does mysql_real_escape_string (or mysql_escape_string) do anything extra that addslashes() doesn't? In the examples in the manual it is just used to escape the ' character, but that is exactly what addslashes() will do anyway. real_escape_string() takes the current character

Re: [PHP] session var problems

2004-04-18 Thread Daniel Clark
Do yo have have start_session() on every page to before you can read session variables? Dear list, I am trying to set a simple session variable on PageA. $_SESSION['CategoryID'] = intval($Data['ID']); if I print after setting the value on PageA, I will get the expected ID number. go on to

[PHP] example from meloni not working

2004-04-18 Thread Anthony Ritter
A basic ht counter script from Meloni's book on mysql (page 318). Not working for me. Every time I load the page the counter stays at zero. Thanks for help. TR .. ? $page_name=test1; $db=mysql_connect(localhost,root,'mypass); mysql_select_db(sitename); $sql = UPDATE test_track

AW: [PHP] example from meloni not working

2004-04-18 Thread Red Wingate
Execute $sql :) -- red -Ursprüngliche Nachricht- Von: Anthony Ritter [mailto:[EMAIL PROTECTED] Gesendet: Sunday, April 18, 2004 7:42 PM An: [EMAIL PROTECTED] Betreff: [PHP] example from meloni not working A basic ht counter script from Meloni's book on mysql (page 318). Not working

Re: [PHP] example from meloni not working

2004-04-18 Thread Richard Harb
From what I've seen you didn't actually transmit the first query to the database. You assigned the query string to the variable $sql ... but didn't submit with: mysql_query($sql); hth richard Sunday, April 18, 2004, 7:41:47 PM, thus was written: A basic ht counter script from Meloni's book on

Re: [PHP] example from meloni not working

2004-04-18 Thread Anthony Ritter
Thank you. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] example from meloni not working

2004-04-18 Thread Anthony Ritter
Thank you. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regexp hyperlink

2004-04-18 Thread Martin Visser
I can't figure out how to do this. I've four different methods for changing a piece of text into a hyperlink. the text: [link=www.hotmail.com]hotmail[/link] [link=http://www.hotmail.com]hotmail[/link] www.hotmail.com http://www.hotmail.com what it should become (offcourse in HTML it will

Re: [PHP] Regexp hyperlink

2004-04-18 Thread Richard Harb
A while ago I've been looking at some piece of code of the tikiwiki project to see how they did some of their magic... Basically they run through the whole text and if they found something that was translated they made a hash and replaced the actual text with it and stored the link in an assoc

[PHP] session var puzzle

2004-04-18 Thread Kathleen Ballard
Dear list, I am sorry for the second posting, but this is going to drive me to drink something other than lattes! I have one page, index.php. when it calls mod_sub, a directory type of page is printed. Here I am trying to set a session var of the most recently selected category to allow the

Re: [PHP] session var puzzle

2004-04-18 Thread Richard Harb
Hi, As I have no idea what those var contain .. what does a print_r() of it give you? print it right when you assign it to the session var to check if it actually contains a value. like: print_r($Data['ID']); and maybe even print_r(intval($Data['ID'])); I suspect that this $Data['ID'] is empty

[PHP] test, please ignore

2004-04-18 Thread Michal Migurski
- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 18 Apr 2004 23:57:03 -0000 Issue 2713

2004-04-18 Thread php-general-digest-help
php-general Digest 18 Apr 2004 23:57:03 - Issue 2713 Topics (messages 183761 through 183784): Re: Bookmark server 183761 by: Justin French 183763 by: Chris W 183764 by: Marek Kilimajer Array Sorting Headaches 183762 by: Burhan Khalid 183768 by:

Re: [PHP] session var puzzle

2004-04-18 Thread Tom Rogers
Hi, Monday, April 19, 2004, 8:46:02 AM, you wrote: KB Dear list, KB I am sorry for the second posting, but this is going KB to drive me to drink something other than lattes! KB I have one page, index.php. when it calls mod_sub, a KB directory type of page is printed. Here I am trying KB to

[PHP] Problems compiling a DSO in BSD/OS 5.1

2004-04-18 Thread The Doctor
Can someone tell me where to start? I was able to compile a DSO in BSD/OS 4.3.1 . I try to use the same setup in BSD/OS 5.1 and not even a .so would show up. HELP!! -- Member - Liberal International On 11 Sept 2001 the WORLD was violated. This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED]

RE: [PHP] session var puzzle

2004-04-18 Thread Larry Brown
In the last pair of examples where it fails, you know you are first assigning the value of $Data['ID'] to the $_SESSION['CategoryID'] and the over-writing that value with the value of intval($Data['ID'])? Why are you assigning $Data['ID'] to it if you are going to overwrite it? If those other

Re: [PHP] why doesn't this work ?

2004-04-18 Thread Andy Ladouceur
Okay, what you can do is try use an .htaccess file (providing your host allows them) to make the PHP engine parse .html files. Create a file titled .htaccess with the following contents: AddType application/x-httpd-php .php .php3 .html .htm Upload it to the same folder that the .html file is in,