[PHP] url rewriting within sessions - confused newbie needs help

2003-12-10 Thread Peter Walter
From the book "Core PHP programming", 3ed ; "As stated earlier, PHP sends session identifiers with cookies, but a browser may refuse them. PHP can detect when a browser does not accept cookies, and in this situation it modifies all forms and links to include the session identifier." My php pag

RE: [PHP] Php shell scripting [SOLVED]

2003-12-10 Thread Jake McHenry
> -Original Message- > From: Evan Nemerson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 10, 2003 9:32 PM > To: Jake McHenry; [EMAIL PROTECTED] > Subject: Re: [PHP] Php shell scripting > > > On Thursday 11 December 2003 12:31 am, Jake McHenry wrote: > > Does anyone know how I can

Re: [PHP] Fatal Error: PDFlib error ...

2003-12-10 Thread Evan Nemerson
On Wednesday 10 December 2003 09:08 pm, Matthias Nothhaft wrote: > Hi, > > I'm trying to get the pdflib work... > > I use pdflib 4.0.3 downloaded from pdflib.de and php 4.3.4 on Debian Linux. > > I wrote this test code: > > > dl("libpdf_php.so"); > > $pdf = pdf_new(); > pdf_begin_page($pdf, 421, 5

Re: [PHP] Php shell scripting

2003-12-10 Thread Evan Nemerson
On Thursday 11 December 2003 12:31 am, Jake McHenry wrote: > Does anyone know how I can pass variables into a script being executed > from the command line? > > I have a script, named testscript. So far, I have been getting all my > variables from the system env command, not a big deal. But I want

Re: [PHP] Compiling...hellllp!

2003-12-10 Thread Evan Nemerson
On Wednesday 10 December 2003 08:23 pm, Ryan A wrote: > Hi, > > Its been quite some time since I have done any compiling, the last time was > java and before that C...which was years back. > > I want to install Turck MMCache for php on one of our new dedicated servers > as we will be running a crap

Re: [PHP] Php shell scripting

2003-12-10 Thread Robert Cummings
$argv, possibly $_SERVER['argv']. Cheers, Rob. On Thu, 2003-12-11 at 00:31, Jake McHenry wrote: > Does anyone know how I can pass variables into a script being executed > from the command line? > > I have a script, named testscript. So far, I have been getting all my > variables from the system

[PHP] Php shell scripting

2003-12-10 Thread Jake McHenry
Does anyone know how I can pass variables into a script being executed from the command line? I have a script, named testscript. So far, I have been getting all my variables from the system env command, not a big deal. But I want to input a username into the script, like testscript jmchenry. In b

Re: [PHP] Error that I can't find causing header() to fail

2003-12-10 Thread rogue
Yes. The html is after the call to header(). I am very clear on header() now :) That isn't the problem since the header() should be called way before any output... this is something bizarre here... The offending code is a block right smack in the middle of a bunch of other html stuff - which i

Re: [PHP] Error that I can't find causing header() to fail

2003-12-10 Thread TheHeadSage
Is the HTML code before or after the header? As the header(); function should be before any output is passed to the browser. I advise you read about the header() function in the PHP manual. - Original Message - From: "rogue" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, Dece

Re: [PHP] Re: Write on image in faint color

2003-12-10 Thread Al
>4) I'd love to see a PEAR IM module a la PerlMagick (but I haven't even >looked yet, so please don't flame me for missing something obvious). One >of these days I'll have The Great Rewrite and that will go in then. I'd >love to be rid of the system() calls to convert and mogrify. The closest th

RE: [PHP] Cannot Use Database

2003-12-10 Thread Chris
I'm fairly sure database names are only restricted by characters allowed in a filename on whatever OS MySQL is on. USE `anime-soup_com_-_chatting` (note: those are backticks [top left key on most keyboards], not single-quotes) That should work fine, and is probably exactly what mysql_use_db() is

RE: [PHP] Help with associative array in a PHP class. Not working as I'd expect it to?!

2003-12-10 Thread Daevid Vincent
Grrr what a newbie mistake (about the scope I mean)! I guess I assumed that in a class, the $this-> was redundant for a method (it is in J++ which is where I learned my OOP). So all my variables in the main class were 'global' to methods in the class. My second bit of confusion is that I've made cl

Re: [PHP] Cannot Use Database

2003-12-10 Thread Stephen Craton
Found the problem. I was using the query of "use database_name" rather then the defined function given out by PHP. Some systems don't have the permission to do the use command I suppose. - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday,

[PHP] Error that I can't find causing header() to fail

2003-12-10 Thread rogue
Hi all, This template I have, has been driving me nuts. I am trying to debug someone else's code and have narrowed the problem down to a few lines, but I can't see what would be causing the problem. Here is the scoop. When this template loads it is making: header("Location: http://www.myurl.co

[PHP] Re: Help with associative array in a PHP class. Not working as I'd

2003-12-10 Thread Justin Patrin
Justin Patrin wrote: class kismetap { function kismetap() { $this->$myPacket = array('blah' => 'asdfasdfasdf'); } } That should be $this->myPacket = ... -- paperCrane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help with associative array in a PHP class. Not working as I'd expect it to?!

2003-12-10 Thread Justin Patrin
Daevid Vincent wrote: I'm pulling out my hair on this. I don't think I'm doing anything wrong and I've tried it with PHP 4.3.4 (cli) (built: Nov 7 2003 03:47:25) AND also v4.1.2 on Linux. With the line commented as shown, I get this output: -- [daevid=pts/4]6:[EMAIL PROTECTED]:{/home/daevid}>

Re: [PHP] Help with associative array in a PHP class. Not working as I'd expect it to?!

2003-12-10 Thread John W. Holmes
Daevid Vincent wrote: myPacket: -- How come I don't get ANY array under "myPacket:"? [snip] function printMyVars() { echo "myPacket:\n"; print_r($myPacket); } Two words: Variable Scope. :) $myPacket is local to the function and empty. -- ---John Holmes... Amazon

Re: [PHP] Constraint Violation when INSERT

2003-12-10 Thread irinchiang
>>> Hi all, >>> I got the error " Constraint Violation " when I did an "INSERT" . >>> Gone thru the code umpteen times but to no avail..Wondering where my >>> error was??...Below is a snip of the block of code: >>> >> "mysql://root:[EMAIL PR

Re: [PHP] Re: Write on image in faint color

2003-12-10 Thread David T-G
Dave, et al -- ...and then David O'Brien said... % % I just did something similar to what you are asking to do % I created a mask.png in photoshop with white text at 50% opacity saying % what I wanted A good start. % Then I used the ImageMagick composite command line program thru a system %

[PHP] Help with associative array in a PHP class. Not working as I'd expect it to?!

2003-12-10 Thread Daevid Vincent
I'm pulling out my hair on this. I don't think I'm doing anything wrong and I've tried it with PHP 4.3.4 (cli) (built: Nov 7 2003 03:47:25) AND also v4.1.2 on Linux. With the line commented as shown, I get this output: -- [daevid=pts/4]6:[EMAIL PROTECTED]:{/home/daevid}> ./test.php pa

[PHP] Fatal Error: PDFlib error ...

2003-12-10 Thread Matthias Nothhaft
Hi, I'm trying to get the pdflib work... I use pdflib 4.0.3 downloaded from pdflib.de and php 4.3.4 on Debian Linux. I wrote this test code: dl("libpdf_php.so"); $pdf = pdf_new(); pdf_begin_page($pdf, 421, 595); pdf_set_font($pdf, "Helvetica", 24, "host"); pdf_show_xy($pdf, "Hello World!", 7

[PHP] question on which day is the first day of the week

2003-12-10 Thread 以琳書房
Dear Sir, > > In the computer's memory, I find out that the first day of the week is Monday. But > actually, the first day of the week is Sunday, not Monday. When I try to use the > date function to number the week, I find some difficulty. For example, the second > week of 2004 should be Janua

[PHP] Re: fopen >> custom 404 issue

2003-12-10 Thread Justin Patrin
Mike D wrote: I am trying to read in a particular page to a variable. How do you handle if the page is a 404 and then redirects to a custom error page? Am I supposed to use fsockopen and read headers or ?? Ideally I need to pull the end-result page to search for a string in it. Here's the code $ha

Re: Re[4]: [PHP] HTML Form with method="POST" and enctype="multipart/form-data" is not working for passing data to the web server.

2003-12-10 Thread Jason Wong
On Thursday 11 December 2003 09:10, Richard Davey wrote: > JW> Possibly, if and when it is supported by most browsers. > > IE and Mozilla recognise and support it, where are these other "most > browsers" ? It might be an advisory, but it's still good practise. If you know off-hand which versions

[PHP] Compiling...hellllp!

2003-12-10 Thread Ryan A
Hi, Its been quite some time since I have done any compiling, the last time was java and before that C...which was years back. I want to install Turck MMCache for php on one of our new dedicated servers as we will be running a crapload of scripts there...differient applications...we estimate arou

Re[4]: [PHP] HTML Form with method="POST" and enctype="multipart/form-data" is not working for passing data to the web server.

2003-12-10 Thread Richard Davey
Hello Jason, Thursday, December 11, 2003, 12:52:55 AM, you wrote: JW> Possibly, if and when it is supported by most browsers. IE and Mozilla recognise and support it, where are these other "most browsers" ? It might be an advisory, but it's still good practise. JW> But in the context of the OP'

Re: [PHP] fopen >> custom 404 issue

2003-12-10 Thread Jason Wong
On Thursday 11 December 2003 08:48, Mike D wrote: > I am trying to read in a particular page to a variable. How do you handle > if the page is a 404 and then redirects to a custom error page? Am I > supposed to use fsockopen and read headers or ?? Ideally I need to pull the > end-result page to sea

Re: Re[2]: [PHP] HTML Form with method="POST" and enctype="multipart/form-data" is not working for passing data to the web server.

2003-12-10 Thread Jason Wong
On Thursday 11 December 2003 08:41, Richard Davey wrote: > Thursday, December 11, 2003, 12:29:07 AM, you wrote: > >> You should have set the max_file_size here, but it's not included. > > JW> Why? (see archives). > > Because it's good practise, not to mention sensible? Possibly, if and when it is

[PHP] fopen >> custom 404 issue

2003-12-10 Thread Mike D
I am trying to read in a particular page to a variable. How do you handle if the page is a 404 and then redirects to a custom error page? Am I supposed to use fsockopen and read headers or ?? Ideally I need to pull the end-result page to search for a string in it. Here's the code $handle = fopen

Re: [PHP] Array problem....

2003-12-10 Thread John W. Holmes
Jas wrote: but what I need to do is something like this... $sql_subs = mysql_query("SELECT * FROM $t_02",$db)or die(mysql_error()); while(list($id,$sub,$msk,$dns01,$dns02,$rtrs,$rnge) = mysql_fetch_row($sql_subs)) { $_session[''] = "$sub+$msk+$dns01... } How about: $sql_subs = mysql

Re[2]: [PHP] HTML Form with method="POST" and enctype="multipart/form-data" is not working for passing data to the web server.

2003-12-10 Thread Richard Davey
Hello Jason, Thursday, December 11, 2003, 12:29:07 AM, you wrote: >> You should have set the max_file_size here, but it's not included. JW> Why? (see archives). Because it's good practise, not to mention sensible? -- Best regards, Richardmailto:[EMAIL PROTECTED]

Re: [PHP] Cannot Use Database

2003-12-10 Thread Jason Wong
On Thursday 11 December 2003 06:17, Stephen Craton wrote: > I am having an issue connecting to a MySQL database. I've made a script > that installs itself to a MySQL database (creates all the tables and such) > and then the script uses the tables to store information and whatever else > it may hav

Re: [PHP] HTML Form with method="POST" and enctype="multipart/form-data" is not working for passing data to the web server.

2003-12-10 Thread Jason Wong
On Thursday 11 December 2003 01:25, Richard Davey wrote: > p> enctype="multipart/form-data"> p> > p> > p> > p> > > You should have set the max_file_size here, but it's not included. > > Why? (see archives). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syst

Re: [PHP] treu type fonts

2003-12-10 Thread Jason Wong
On Thursday 11 December 2003 06:06, cj wrote: > I tried the png like you suggested and the same thing happens. > I get nothing on the screen but if I do a right click and properties on the > spot where the image should be the image type is a png image. 1) Enable FULL error reporting. 2) For debug

[PHP] PHP5

2003-12-10 Thread daniel
Hi i am trying to instigate across the board software upgrades, i was wondering when PHP5 will be released ? I am thinking its best to wait for it to come out, or i'll prob wont see it on the servers until the next commet passing. Please let me know thanks. -- PHP General Mailing List (http://www

RE: [PHP] Array problem....

2003-12-10 Thread Chris W. Parker
Jas on Wednesday, December 10, 2003 3:44 PM said: > having no idea you could use numbers as session variable names I kinda > feel like a retard right now. You solution worked, thank you very > much. It's an array just like any other which you probably realize now.

Re: [PHP] Array problem....

2003-12-10 Thread Jas
having no idea you could use numbers as session variable names I kinda feel like a retard right now. You solution worked, thank you very much. Jas Chris W. Parker wrote: Jas on Wednesday, December 10, 2003 3:21 PM said: while(list($id,$sub,$msk,$dns01,$dns02,$rtr

RE: [PHP] Array problem....

2003-12-10 Thread Chris W. Parker
Chris W. Parker <> on Wednesday, December 10, 2003 3:27 PM said: > while(list(...)) = mysql_fetch_row(...)) > { Got one too many ) in there. Should be: while(list(...) = mysql_fetch_row(...)) { Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

RE: [PHP] Array problem....

2003-12-10 Thread Chris W. Parker
Jas on Wednesday, December 10, 2003 3:21 PM said: > while(list($id,$sub,$msk,$dns01,$dns02,$rtrs,$rnge) = > mysql_fetch_row($sql_subs)) { > $_session[''] = > "$sub+$msk+$dns01... > } No exactly sure what you mean but here goes: $iCtr = 0; while(list(...)) =

[PHP] Array problem....

2003-12-10 Thread Jas
Not very good at arrays so I figured i would look here $sql_subs = mysql_query("SELECT * FROM $t_02",$db)or die(mysql_error()); while(list($id,$sub,$msk,$dns01,$dns02,$rtrs,$rnge) = mysql_fetch_row($sql_subs)) { print $sub; print ""; print $msk; print ""; print $dns01; print ""; pr

[PHP] PHP Internship job (Seattle, WA)

2003-12-10 Thread Daevid Vincent
Sorry if this is a repost, but I never saw it come through the list. Maybe prefixing "OT:" caused it to get /dev/null'd?? -Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 3:59 PM To: '[EMAIL PROTECTED]' Subject: OT: PHP Internship job (Se

[PHP] Active windows

2003-12-10 Thread [EMAIL PROTECTED]
I have a site I am developing in PHP that has multiple windows. Is there any way in PHP to change from the active window to another? For instance the data entered in one window will show up in another once the window is refreshed. Any way to do that automatically? Thanks! /T

Re: [PHP] Images in MySQL vs directory/file?

2003-12-10 Thread Justin Patrin
Gerard Samuel wrote: On Wednesday 10 December 2003 02:43 pm, Galen wrote: If you store images that are played with a lot on the disk, it'll likely be slower than MySQL due to MySQL having better caching. I disagree. Depending on your setup, when a file based image is downloaded to a user's com

[PHP] Cannot Use Database

2003-12-10 Thread Stephen Craton
Hello, I am having an issue connecting to a MySQL database. I've made a script that installs itself to a MySQL database (creates all the tables and such) and then the script uses the tables to store information and whatever else it may have to do. The problem is, the install works just fine, but

RE: [PHP] header, also stumped

2003-12-10 Thread Bart
I've tried to test it in a browser with copy-url and it works fine. Through the script however it doesn't (using the same/correct url!!). Any ideas... Regards, Bart !> -Oorspronkelijk bericht- Van: Richard Davey [mailto:[EMAIL PROTECTED] Verzonden: woensdag 10 december 2003 17:06 A

RE: [PHP] treu type fonts

2003-12-10 Thread cj
Thanks Tom I tried the png like you suggested and the same thing happens. I get nothing on the screen but if I do a right click and properties on the spot where the image should be the image type is a png image. -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: [PHP] date conversion

2003-12-10 Thread Daniel Purdy
Hi, is there a PHP function that will convert MM/DD/ to MMDD? Also I will need to take into affect some people may put in M/D/ (some people may put in 1 instead of 01, 2 instead of 02, etc). Is there a way to do this? take a look at these functions http://www.php.net/mktime ht

RE: [PHP] date conversion

2003-12-10 Thread Andrew Wilson