Re: [PHP] cookie crumbles

2003-09-01 Thread Jaap van Ganswijk
At 2003-09-01 00:49 -0400, John Taylor-Johnston wrote: >I create this cookie, using Javascript:: > >testals.flsh.usherb.ca FALSE / FALSE 1062433227 weather.htm9995 1 > >If the browser is reloaded, I want php to read the cookie and do my else statement. >Even after a browser shut-down and restar

Re: [PHP] in the middle of shift and pop

2003-08-20 Thread Jaap van Ganswijk
At 2003-08-21 00:54 +0200, Decapode Azur wrote: >> Or will PHP realize "OK I need to change the numbers indexing the other >> elements"? > >** as PHP is a high level language I can write very quickly and very easily >scripts to make manipulations on my 3D meshes, but the problem is that it >often

Re: [PHP] need help with cookies

2003-08-18 Thread Jaap van Ganswijk
At 2003-08-18 16:17 -0400, Dan Anderson wrote: >I need to grab cookies from a web page and pass those cookies back to >the web page when needed. I downloaded the cURL program and was playing >with it, but don't understand how cURL functions correlate into the PHP >equivalents. I don't know cURL,

Re: [PHP] How configure PHP parser 4.3.x in IIS version 6.0?

2003-08-18 Thread Jaap van Ganswijk
At 2003-12-06 00:07 -0400, [EMAIL PROTECTED] wrote: >I use the dll "php4isapi.dll" and it doesn't work, >Could someone give me a hand? We can't hear you yet, since you're living in the future. Wait about 4 months and we will have received your question! Or adjust your clock... Greetings, Jaap

Re: [PHP] better understanding of ereg_replace and other functions

2003-08-16 Thread Jaap van Ganswijk
At 2003-08-16 23:05 +, Curt Zirzow wrote: >* Thus wrote Binay Agarwal ([EMAIL PROTECTED]): >> Hi everybody, >> >> Lot of places in manual i came across using "ereg_replace" or "ereg" is very >> resource intensive and hence its better to use "preg_replace" or "str_replace" or >> "strpos" if t

Re: [PHP] Sessions

2003-08-16 Thread Jaap van Ganswijk
At 2003-08-16 22:45 +, Curt Zirzow wrote: >* Thus wrote Jaap van Ganswijk ([EMAIL PROTECTED]): >> At 2003-08-16 23:28 +0200, Peda wrote: >> >> When you have a shell login, try this: >> - cd /tmp >> - chown . >> >> This probably gives an error war

Re: [PHP] imagecreatefromjpeg() problems

2003-08-16 Thread Jaap van Ganswijk
At 2003-08-16 14:35 +0200, J-K wrote: >I've made a little script to make thumbnails which worked before the >summer, but now I get this errormessage: > >Fatal error: Call to undefined function: >imagecreatefromjpeg() in >/usr/local/others/www.stud.users/mark/gfx/create_tn.php on line >15 > >First

Re: [PHP] Sessions

2003-08-16 Thread Jaap van Ganswijk
At 2003-08-16 23:28 +0200, Peda wrote: >I have some problem on my site. > >When I'm using this PHP script: > >session_start(); >session_register( "aUser", "aAccount" ); >$aUser = "Cidnie"; >$aAccount = "1016"; >?> >" ); print( "Current Account: $aAccount >" ); ?> > >Go to pa

Re: [PHP] redhat 8: upgrade php from 4.2.2 to 4.3.2

2003-08-16 Thread Jaap van Ganswijk
At 2003-08-15 09:31 -0700, Chris W. Parker wrote: >Hello eveyone. > >I want to upgrade my php install from 4.2.2 to 4.3.2. I'm pretty new to >linux so I don't know how to install from source and I haven't been able >to find any Redhat 8 rpm's. > >Can someone please give me instructions as to what I

Re: [PHP] Installing How-To

2003-08-16 Thread Jaap van Ganswijk
At 2003-08-15 15:12 -1000, Rodney Davis wrote: >Does anyone know of a good howto on installing >php w/ GD and phplib etc on a Redhat box? I have just upgraded my (Mandrake) system by doing: - Upgrading from Mandrake 9.0 to 9.1 using the CD's that came with the UK Linux Format magazine of june

RE: [PHP] Determining where a function is called from..

2003-08-15 Thread Jaap van Ganswijk
At 2003-08-15 16:35 +0200, Wouter van Vliet wrote: >I noticed the __LINE__ and __FUNCTION__ magic constants too, but they don't >really contain the values I was looking for, as they have the current >function and line in it. But what I want my Logging class (I have one too >:D) to display is what I

Re: [PHP] Graduated fills using PHP Images

2003-08-15 Thread Jaap van Ganswijk
At 2003-08-15 08:14 -0400, Adrian wrote: >Is it possible to have PHP creates an image that graduates 1 color to >another, such as create and images 100 pixels wide and in height which >fades red to green top to bottom? It's possible. I have just been experimenting with it using ImageCreateTrueColo

Re: [PHP] Delimiter must not be alphanumeric or backslash

2003-07-05 Thread Jaap van Ganswijk
At 2003-07-05 20:01 +0200, Alan D'Angelo wrote: >Try this: > >$text = "pot post pat patent"; >if(preg_match("/\bp\w+t\b/", $text, $array)){ >print $array[0]; >} >?> > >the pattern in preg_match() does not have correct limit :) It is probably also a good idea to use single quotes ('/\bp\w+t\b/'

Re: [PHP] web site security: how to hide login info for mysql-connection

2003-06-29 Thread Jaap van Ganswijk
At 2003-06-29 17:21 +0100, Avvio - Frank wrote: >basically you need to append to your include_path and you can probably >create a local .htaccess file and set an include path in there (look up >php_value syntax for .htaccess) > >otherwise start your script with a customised version of the following

Re: [PHP] error_log function

2003-06-29 Thread Jaap van Ganswijk
At 2003-06-29 03:55 +0200, Ole Brumm wrote: >I have just implemented the error_log function on my web site, as I find this >feature very useful. I have chosen to write to a file on the server. > >my question is: How can I make error_log write each error message on a NEW line >in the file I have c

Re: [PHP] Writing GIFs with LZW compression, patch

2003-06-17 Thread Jaap van Ganswijk
At 2003-06-17 09:31 +0300, Jaakko Hyvätti wrote: >For those impatient to wait for official inclusion, I took gd_lzw_out.c >from gd1.5.tar.gz and put it in php-4.3.2. The patch for configure script >is not the most beautiful one, but it works for now. In case you >developers have not yet included

Re: [PHP] Good PHP Books

2003-06-17 Thread Jaap van Ganswijk
At 2003-06-17 01:16 -0500, John Nichel wrote: >Jaap van Ganswijk wrote: > >>Some of the O'Reilly books that I thought were >>not perfect: >>- All books about Perl. Now that we have nice >> c-like script languages like PHP, Python and >> Javascript who st

Re: [PHP] Basic Help

2003-06-16 Thread Jaap van Ganswijk
At 2003-06-16 23:39 -0400, Logan McKinley wrote: >I am new to PHP but have been using ASP for years. What i am trying to do >is: >1) take a querystring variable >2) set it as a session variable >3) redirect the page back on itself >all of this is done so the user never sees the querystring var

Re: [PHP] Good PHP Books

2003-06-16 Thread Jaap van Ganswijk
At 2003-06-16 10:24 -0400, Mark McCulligh wrote: >I have been asked to teach an introduction course on PHP/MySQL at my local >College. > >I am looking for a good beginner book for the course. Like most people I >learned PHP from php.net and online tutorials. But I need a book for the >course. > >I

Re: [PHP] Re: Upgrading PHP 4.1.2 to Current

2003-06-15 Thread Jaap van Ganswijk
At 2003-06-15 23:57 +0200, Catalin Trifu wrote: > As I understand, you are using prepackaged PHP and Apache, >the ones that come with a Linux distribution. >If you want to continue using this style of RPMs you should >consider looking for an upgrade on the web site for u'r Linux >distro (like

Re: [PHP] Generating Static Pages || Preserve PHP Code?

2003-06-10 Thread Jaap van Ganswijk
Hi Noah, You seem to be just copying a file, if so use this instead: http://www.php.net/manual/en/function.copy.php Or try to describe what you're trying to do and what the you see as a problem. Both fread() and fwrite(0 don't interpret the PHP code in files that they are reading and writing.

RE: [PHP] HTML and PHP

2003-06-09 Thread Jaap van Ganswijk
At 2003-06-04 15:59 -0400, Edward Peloke wrote: >you would have to use echo or print statements... Yes. After a while I stopped mixing PHP and HTML parts and started writing everything in PHP using echo and print statements. That way the code is much more regular and flexible. Greetings, Jaap

Re: [PHP] Is It Possible to Tell PHP To Output x Decimal Places Per Float?

2003-06-09 Thread Jaap van Ganswijk
At 2003-06-09 18:22 -0400, Dan Anderson wrote: >Is it possible to tell PHP when converting a number to a string (i.e. in >an echo or print command) to use x decimal places? > >Specifically, if I > > echo '$' . $some_price; >?> > >And some_price is $1.50, it outputs: > >$1.5 This should work: pr

RE: [PHP] Show php code

2003-06-06 Thread Jaap van Ganswijk
At 2003-04-12 16:33 -0400, Jack Dempsey wrote: >you can also make a copy of the file with a .phps extension, and if you have >it configured, the source code will show up, nicely colorized, etc... Before I read about the .phps extension (which probably stands for php source), I used: ln -s mysourc

Re: [PHP] Shipping Rates

2003-06-04 Thread Jaap van Ganswijk
At 2003-06-01 01:48 -0700, Ralph wrote: >Maybe it's just that it's late, but can't seem to figure this out. I >want to show a shipping price depending on the amount of purchase. I >thought about using a lot of if() statements, but I know this is not the >best way to go about this. > >Can anybody en

Re: [PHP] Planning a new job

2003-06-03 Thread Jaap van Ganswijk
At 2003-06-03 09:15 +0930, Tim Burgan wrote: >I'm wondering what processes everyone has before quoting a web programming / >design job? > >Do you have a face-to-face meeting with the client? > >What questions do you ask? > >What information should be found-out about the job? > >Do I then go away an

Re: [PHP] Strange Behaviour of cookies

2003-06-02 Thread Jaap van Ganswijk
At 2003-06-02 01:49 +0500, Haseeb Iqbal wrote: >when ever i set a cookie it didn't get set even i refresh the page (with php header >function) but then i echo something on the page and then use HTML meta refresh the >cookie becomes availble on the next page. >what is it that i am missing here. I

Re: [PHP] PHP getting values from XML

2003-06-01 Thread Jaap van Ganswijk
Hi, At 2003-05-31 14:52 -0400, [EMAIL PROTECTED] wrote: >I'm developing a site PHP site. > >I would like to define HTML code in XML and be able to get the HTML code using PHP. > >I was hoping for a simple example. > >I will not be able to update the version of PHP with any "modules" as my hosting

Re: [PHP] Best Practices in Directory Layout?

2003-05-31 Thread Jaap van Ganswijk
Hi, At 2003-05-30 12:04 -0700, motorpsychkill wrote: >I've wanted to get some input on this for a while... I've recently been >designing PHP applications using the following directory architecture: > >main/ >master php files (e.g. addphoto.php) > >includes/ >forms/ >

Re: [PHP] \n outputs \r\n ??

2003-05-30 Thread Jaap van Ganswijk
At 2003-05-29 11:38 -0700, Michael Isaacs wrote: >Still new to PHP - any assistance would be very much appreciated... > >I am using a php script to send info to a local file for mail filtering. >Whe the php script sends the following: > >fputs($nf, "MAILDIR=$MAILDIR # Default mail directory\n"); >