RE: [PHP] $phpvar = javascriptvar???
You probably want to make statistics for web pages. The most common way to do that is to use a PHP script that outputs an image and writes to a database some data. The code may look like this: /** stat.php / /** any_file.html ***/ > -Original Message- > From: Romeo Manzur [mailto:[EMAIL PROTECTED]] > Sent: 5 iulie 2001 22:12 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] $phpvar = javascriptvar??? > > > I want to store the value of screen.ColorDepth on a php var... > Thanks... > > Kurt Lieber wrote: > > > As the original respondent said: > > > > window.location = 'http://url?yourVar=' + yourVar; > > > > from there, parse out the URL variable and store it into a > PHP variable and > > you're good to go. > > - Original Message - > > From: "Romeo Manzur" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, July 05, 2001 11:55 AM > > Subject: [PHP] $phpvar = javascriptvar??? > > > > > what I mean is, how could I save a javascript var value > on a php var??? > > > Thanks... > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] when to delete a temporary file ?
Hi, I've created a site where users can upload photos and specify which other users are allowed to view them using PHP session management. now I have alittle problem in the post-upload page, script creates a temporary copy of the uploaded image with a name the same as user's session ID, and puts a in the page for the user to view the uploaded photo and confirm it. now I don't know when to delete that temporary file ! because I don't know how long does the user's browser take to download the image. currently I delete it in the script coming up just after user clicks the confirm button, but what if the user close his/her browser before clicking the confirm button ? the file remains there for ever !! what's your suggestion ? Thanks Arash Dejkam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Executing after certain time
if you are going to use a cron job and you haven't got 'php as CGI' then use something like below and save it in your crod_daily or hourly #! /bin/sh wget -q -c http://my.domain/phpfile.php3 > /dev/null Ajdin On Thu, 5 Jul 2001, Marty Landman wrote: > At 08:41 am 7/5/01 -0700, Oliver Hotz wrote: > >Hey guys, I have a php script that generates files, and a www page that > >links to them. > > > >Is there a way to delete those files, based on a time variable ?.. > > Why not have cron kick off a script every minute that checks all candidate > files and deletes the ones that need it. You can either embed the delete > criteria within the file name or alternatively have the program which > creates the candidate files post entries to a control file which the cron > pgm reads. > > What about updating the links on the webpage though? You'll have to handle > this too unless the page is written by a program which generates links on > the fly based on candidate file availability. Like generating the links > from a read of the candidate file directory. > > Of course you'll want a very appealing 404 handler (see .htaccess for > those) because the webpage could be invoked by a visitor to the site > displaying links that are clobbered some seconds/minutes later by the cron > job. Then the visitor clicks and it ain't there. :( > > Maybe there's a better way to accomplish what you're after?? > > hth, > > Marty > > Face 2 Interface Web Solutions > Website Creation Made SIMPL(tm) > Online Demo Available > http://face2interface.com/Home/Demo.shtml > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Number of the line ?
Hi All, i'm currently writing a debugging lib in PHP and i would like to find the number of the line in my script when i made an myfile.php 1 would give : i'm on line 2 i'm on line 3 it perhaps exists because when we have warning we see the line number Thanks Manu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Number of the line ?
That's easy :) Use __LINE__ ! example: 1 --- Emmanuel FAIVRE <[EMAIL PROTECTED]> wrote: > Hi All, > > i'm currently writing a debugging lib in PHP and i > would like to find > the number of the line in my script > > when i made an > > myfile.php > > 1 2 echo "i'm on line $NUMBER_LINE\n"; > 3 echo "i'm on line $NUMBER_LINE\n"; > 4 ?> > > would give : > > i'm on line 2 > i'm on line 3 > > it perhaps exists because when we have warning we > see the line number > > Thanks > > > Manu > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > = Linux... Because it works. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Number of the line ?
get editplus at editplus.com great program, has syntax highlighting, numbers, auto complete, everything - James "ReDucTor" Mitchell - Original Message - From: Emmanuel FAIVRE <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 6:19 PM Subject: [PHP] Number of the line ? > Hi All, > > i'm currently writing a debugging lib in PHP and i would like to find > the number of the line in my script > > when i made an > > myfile.php > > 1 2 echo "i'm on line $NUMBER_LINE\n"; > 3 echo "i'm on line $NUMBER_LINE\n"; > 4 ?> > > would give : > > i'm on line 2 > i'm on line 3 > > it perhaps exists because when we have warning we see the line number > > Thanks > > > Manu > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Socket Madness !!!!
many thanks. i settled for fgetc and checking for a NULL (ascii 0) Steve > -Original Message- > From: David George [mailto:[EMAIL PROTECTED]] > Sent: 05 July 2001 21:50 > To: Justin Farnsworth > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Socket Madness > > > Justin Farnsworth wrote: > > >Steve Brett wrote: > > > >>does anyone know the ascii value for EOF ? > >> > > > >I think it is four (CTRL-D), viz: > > > >| 00 nul| 01 soh| 02 stx| 03 etx| 04 eot| 05 enq| 06 ack| 07 bel| > > > Actually EOT is not EOF. There is no such ASCII character as > EOF. It > is a condition not a character. Different functions that use an EOF > condition have different ways of indicating it. > > There are examples at: > http://www.php.net/manual/en/function.fgets.php > > Here is a link to PHP's feof function: > http://www.php.net/manual/en/function.feof.php > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Number of the line ?
You could also use phpcoder, if you're working with M$ windows. http://www.phpide.de It is freeware and currently still in development, but it's working quite fine. I use it when programming php in windows, under linux I still use Gvim. Marc van Duivenvoorde At 06:37 PM 7/6/2001 +1000, ReDucTor wrote: >get editplus at editplus.com great program, has syntax highlighting, >numbers, auto complete, everything >- James "ReDucTor" Mitchell >- Original Message - >From: Emmanuel FAIVRE <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Friday, July 06, 2001 6:19 PM >Subject: [PHP] Number of the line ? > > > > Hi All, > > > > i'm currently writing a debugging lib in PHP and i would like to find > > the number of the line in my script > > > > when i made an > > > > myfile.php > > > > 1 > 2 echo "i'm on line $NUMBER_LINE\n"; > > 3 echo "i'm on line $NUMBER_LINE\n"; > > 4 ?> > > > > would give : > > > > i'm on line 2 > > i'm on line 3 > > > > it perhaps exists because when we have warning we see the line number > > > > Thanks > > > > > > Manu > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Number of the line ?
On Friday 06 July 2001 10:19, Emmanuel FAIVRE wrote: > Hi All, > > i'm currently writing a debugging lib in PHP and i would like to find > the number of the line in my script > > when i made an > > myfile.php > > 1 2 echo "i'm on line $NUMBER_LINE\n"; > 3 echo "i'm on line $NUMBER_LINE\n"; echo "I'm in file " . __FILE__ . ", line " . __LINE__ . "\n"; -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) (A)bort (R)etry (P)retend this never happened ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Single quote
I got a data file containing this line: $ 1'000'000.- Then I read and echo this line $fp = fopen ( $sFilename,"r"); $sData = fgets ( $fp, 1000 ) ) echo $sData Now what came out is $ 1\'000\'000.- I tried to get rid of these slashes with ereg_replace( "\\'", "'", $sData ); but I had no luck. Who can help? Andy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Single quote
string stripslashes (string str) Returns a string with backslashes stripped off. (\' becomes ' and so on.) Double backslashes are made into a single backslash. Steve > -Original Message- > From: Andy [mailto:[EMAIL PROTECTED]] > Sent: 06 July 2001 10:29 > To: [EMAIL PROTECTED] > Subject: [PHP] Single quote > > > I got a data file containing this line: > $ 1'000'000.- > > Then I read and echo this line > $fp = fopen ( $sFilename,"r"); > $sData = fgets ( $fp, 1000 ) ) > > echo $sData > > Now what came out is > $ 1\'000\'000.- > > I tried to get rid of these slashes with > ereg_replace( "\\'", "'", $sData ); > but I had no luck. > > Who can help? > Andy. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Single quote
On Fri, Jul 06, 2001 at 11:28:38AM +0200, Andy wrote: > I got a data file containing this line: > $ 1'000'000.- > > Then I read and echo this line > $fp = fopen ( $sFilename,"r"); > $sData = fgets ( $fp, 1000 ) ) > > echo $sData > > Now what came out is > $ 1\'000\'000.- > > I tried to get rid of these slashes with > ereg_replace( "\\'", "'", $sData ); > but I had no luck. > Use: stripslashes($sData); That ought to do the trick.. ad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] where can I find a good documentation on regular expressions?
Or if yu9o *really* want to learn reg-ex's then I can highly recommed "Mastering Regular Expressions" by O'Reilly press starts from nothing and by the end you'll find them easy as can be HTH - Original Message - From: "Christian Reiniger" <[EMAIL PROTECTED]> To: "Mick Foster" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 10:18 AM Subject: Re: [PHP] where can I find a good documentation on regular expressions? > On Thursday 05 July 2001 19:33, Mick Foster wrote: > > where can I find a good documentatio on regular expressions? > > I´m desperate in need of it... > > > > thanks for your time > > http://php.net/manual/en/pcre.pattern.syntax.php > > And if you need an intro look through phpbuilder.com. > > -- > Christian Reiniger > LGDC Webmaster (http://lgdc.sunsite.dk/) > > (A)bort (R)etry (P)retend this never happened ... > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] where can I find a good documentation on regular expressions?
On Thursday 05 July 2001 19:33, Mick Foster wrote: > where can I find a good documentatio on regular expressions? > I´m desperate in need of it... > > thanks for your time http://php.net/manual/en/pcre.pattern.syntax.php And if you need an intro look through phpbuilder.com. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) (A)bort (R)etry (P)retend this never happened ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Number of the line ?
Emmanuel FAIVRE wrote: > i'm currently writing a debugging lib in PHP and i would like to find > the number of the line in my script > 1 2 echo "i'm on line $NUMBER_LINE\n"; > 3 echo "i'm on line $NUMBER_LINE\n"; > 4 ?> It's __LINE__, I think. regards Wagner -- "Isn't it strange? The same people who laugh at gypsy fortune tellers take economists seriously." - Cincinnati Enquirer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: [PHP] Very urgent!!!
have a look here : http://www.php.net/manual/en/function.ocinewdescriptor.php second example should answer all your questions... sebastian > -Ursprüngliche Nachricht- > Von: Duy B [mailto:[EMAIL PROTECTED]] > Gesendet: Samstag, 9. Januar 1999 00:16 > An: [EMAIL PROTECTED] > Betreff: [PHP] Very urgent!!! > > > Dear all, > Is there anybody know how to upload a file gif or jpg from a > form into Oracle database? > I am very keen to solve that problem. Please show me soon. > Thanks you very much. > Best regards, > BaoDuy > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Binding PHP Arrays to Oracle Arrays in OCI library - can you do it?
On Fri, Jul 06, 2001 at 11:38:48AM +0100, Neil Kimber wrote: > > We have a nice PHP framework that handles all of of our interactions with > Oracle via OCI calls. It works beautifully and gives us no problems. > However, the one thing that we cannot get working is the calling of an > Oracle stored procedure that takes an array of numbers as an argument. The > problem seems to be the binding in PHP. > > Let me give an example. > The stored procedure looks like: please download my "session notes" from "http://conf.php.net/oci2"; - it has a sample how to bind arrays. re, tc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] get a screen resolution
I'm trying to make a small browser and screen resolution script for my site, the browser part isn't a problem, but I can't find a function for screen resolutions, does anyone know whether such a function exists. Thanks, Marc van Duivenvoorde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] get a screen resolution
I think you have to do it with javascript (being client side). But thats all i know. ;) On Fri, 6 Jul 2001, Marc van Duivenvoorde wrote: > I'm trying to make a small browser and screen resolution script for my > site, the browser part isn't a problem, but I can't find a function for > screen resolutions, does anyone know whether such a function exists. > > Thanks, > > Marc van Duivenvoorde > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] get a screen resolution
I know I can do it with javascript, but if possible I'd like to do it with php. Marc van Duivenvoorde At 02:12 PM 7/6/2001 +0300, you wrote: >JavaScript > > > -Original Message- > > From: Marc van Duivenvoorde [mailto:[EMAIL PROTECTED]] > > Sent: 6 iulie 2001 14:18 > > To: Php general lijst > > Subject: [PHP] get a screen resolution > > > > > > I'm trying to make a small browser and screen resolution > > script for my > > site, the browser part isn't a problem, but I can't find a > > function for > > screen resolutions, does anyone know whether such a function exists. > > > > Thanks, > > > > Marc van Duivenvoorde > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: > > [EMAIL PROTECTED] > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Exec and Session
Hi Folks, I got a problem with an asynochrnous call of another program within a php-script: If the php-script is called a second time, WITH a session (using cookies) it is blocked untill the command is finished. (This happens even if I just call a different script, that uses the session) It works absolutely fine, if I dont use sessions (eg. just reject the cooky) Any sugestions ? martin harm [EMAIL PROTECTED] PS: Using PHP.4.0.5 on Linux Test-Script: logfile = tempnam("/tmp/","LOG_"); $cmd="nohup perl asyn_proc.pl $para 1> $job->logfile 2>&1 &"; exec($cmd); } ?> Parameter: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] get a screen resolution
The browser detection etc. capabilities all come from the HTTP_USER_AGENT variable.. from this it is possible to interpret browser, platform and a number of other things. Unfortunately screen resolution is not one of these. PHP itself has no way of detecting anything about the client, only what it is told (if that makes any sense) The only possibility is for JavaScript to "tell" PHP about it..ie.. when a link within the site is pressed (say from a splash screen or a login box) then have javascript append on the resolution to the redirect url, from which php will then know HTH,Tom - Original Message - From: "Marc van Duivenvoorde" <[EMAIL PROTECTED]> To: "Php general lijst" <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 12:24 PM Subject: RE: [PHP] get a screen resolution > I know I can do it with javascript, but if possible I'd like to do it with php. > > Marc van Duivenvoorde > > At 02:12 PM 7/6/2001 +0300, you wrote: > >JavaScript > > > > > -Original Message- > > > From: Marc van Duivenvoorde [mailto:[EMAIL PROTECTED]] > > > Sent: 6 iulie 2001 14:18 > > > To: Php general lijst > > > Subject: [PHP] get a screen resolution > > > > > > > > > I'm trying to make a small browser and screen resolution > > > script for my > > > site, the browser part isn't a problem, but I can't find a > > > function for > > > screen resolutions, does anyone know whether such a function exists. > > > > > > Thanks, > > > > > > Marc van Duivenvoorde > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] get a screen resolution
Marc van Duivenvoorde wrote: > > I know I can do it with javascript, but if possible I'd like to do it with php. - Then have PHP write out the necessary javascript. There is, obviously, no way for PHP, on the server side, to know what the screen resolution is of a client, until that client returns its screen resolution to the server/PHP for PHP to use. So, as previously stated by many, use javascript to find out and send back on the round trip for PHP/you to use however you wish. _jef -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] get a screen resolution
While we are talking about JavaScript, do you know of any postlist like this one I can subscribe to? I have been looking for it but not found any (I know of lot of websites but without this). Regards, Sumarlidi Einar Dadason SED - Graphic Design -- Phone: (+354) 4615501 Mobile: (+354) 8960376 Fax: (+354) 4615503 E-mail: [EMAIL PROTECTED] Homepage:www.sed.is -- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Justin Farnsworth Sent: 6. júlí 2001 11:30 To: Marc van Duivenvoorde Cc: Php general lijst Subject: Re: [PHP] get a screen resolution Marc van Duivenvoorde wrote: > > I know I can do it with javascript, but if possible I'd like to do it > with php. - Then have PHP write out the necessary javascript. There is, obviously, no way for PHP, on the server side, to know what the screen resolution is of a client, until that client returns its screen resolution to the server/PHP for PHP to use. So, as previously stated by many, use javascript to find out and send back on the round trip for PHP/you to use however you wish. _jef -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] checking if checkbox is checked
On Wed, 4 Jul 2001, Richard Kurth wrote: I have no try, but.. > > > > > > change interest* in interest[] (without number in []). in the .php file use if (count($interest) > 0) { echo "ok"; } else echo "no one check"; bye -- Non capisco tutta questa eccitazione per il multitasking: io sono anni che leggo in bagno [BUONGIORNO] -- Michel Morelli [EMAIL PROTECTED] ICQ UIN: 58351764 PR of Linux in Italy http://www.ziobudda.net http://www.linuxlab.it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Convert MP3s using PHP ?
On Fri, 6 Jul 2001, Micha Ober wrote: >hi, >is it possible to convert a mp3 file (for example >190kbps) to a mp3 file with 128kbps or less ? exec() system() bye -- "Cara tu dici che ami i fiori e li strappi dai campi, dici che ami i pesci e te li mangi. Cara quando dici che mi ami io ho paura." -- Michel Morelli [EMAIL PROTECTED] ICQ UIN: 58351764 PR of Linux in Italy http://www.ziobudda.net http://www.linuxlab.it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Convert MP3s using PHP ?
> >hi, > >is it possible to convert a mp3 file (for example > >190kbps) to a mp3 file with 128kbps or less ? > > exec() > system() To expand upon that previous answer.. sort of. PHP can't, but if you can find a command line utility to perform the conversion (sorry, I don't know any of hand) then PHP can save the file to the syatem, run the utility by exec() and then read in the resulting file. HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Fatal error: Internal Zend error
Hi all, at this moment I'm debugging a site for a customer. At some weird moments we get this error Fatal error: Internal Zend error - Missing class information for in classes/sql.class on line 4 The file itself is a class which we use for connect to the mysql. It get's some variables for the current session. After touching this file , the error is gone. The strange thing about this is that after some time the error reappears. It would be reasonable if the error accours after the 2'nd reload. But that doesn't happen at all. Is there some trick to tell Zend not to cache this file?? Met vriendelijke groet/with kind regards, Tijmen Hennink [EMAIL PROTECTED] Medi@connect Dit e-mail bericht is uitsluitend bestemd voor de geadresserde(n). Gebruik van deze informatie door andere dan de geadresseerde is verboden. Het is evenmin toegestaan om deze informatie openbaar te maken, te vermenigvuldigen, te verspreiden of te verstrekken aan derden. Aan dit bericht kunnen geen rechten worden ontleend. Indien u dit mailtje heeft ontvangen terwijl het niet aan u gericht was, reply richting mij en verwijder vervolgens de email en uitgeprinte versies van dit mailtje. This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform me promptly by reply e-mail, then delete the e-mail and any printed copy. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL Apps
Sorry for being so vague in my last message. Let's say you want to hilight 100 people (say best atheletes, coders, what have you). You want a brief profile of this person. Name, location, languages, picture, areas of interest, etc.. Something so that you can get a sense of who these folks are. Mike Chris Anderson wrote: > "profiles"? > - Original Message - > From: "Mike Gifford" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, July 06, 2001 2:06 AM > Subject: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL > Apps > > > >>Hello, >> >>I'm looking to see if someone out there has already developed a php/mysql >>bibilography. I haven't been able to find one online. >> >>I'm also looking for a profiles directory. Rather vague definition here, >> > sorry. > >>Ultimately it will be i18n compliant.. >> >>Mike >>-- >>Mike Gifford, OpenConcept Consulting, http://openconcept.ca >>Offering everything your organization needs for an effective web site. >>Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ >>It is a miracle that curiosity survives formal education. - A Einstein >> >> >>-- >>PHP General Mailing List (http://www.php.net/) >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >>To contact the list administrators, e-mail: [EMAIL PROTECTED] >> >> > -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ It is a miracle that curiosity survives formal education. - A Einstein -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Common security problems in PHP
A short article (http://www.zez.org/article/articleview/69/) describing a couple of the most common security issues in PHP scripts are available at http://zez.org. The article also offers short and helpful tips on avoiding the problems. -- Paul K Egell-Johnsen zez.org: about code http://zez.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] -help
-help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: checking if checkbox is checked
To check if a type checkbox variable has been set use isset() i.e. if ( isset($interest) or isset($interest2) or isset($interest3) or isset($interest4) or isset($interest1) ) { // Everthing is ok } else { $error = . ) This should do exactly what you want, and although it may not use the least characters it should be the quickest to write/debug/maintain and run. Regards, George Richard Kurth wrote: > > I have 5 checkbox's in a form that I what to make sure at least one of > the checkbox is checked. > > > > > > > > I am checking for blank field buy doing this below How can I check for at > least one of the above check boxes is checked > > if ($name == "") { > $name_err = " >Please enter your name! "; > > $send = "no"; > > } > > Best regards, > Richard > mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: javascript var on a php var...
Romeo Manzur wrote: > > hi, I want to know how could I save a javascript variable on a php > variable??? > Thanks... It depends how the user will get to the php page: 1. Form If the user is about to submit a form and you want some Javascript variable from your page to end up as a php variable after the form is submitted then: Create a hidden form variable e.g. Set this formvariable to your Javascript variable in the Javascript e.g. document.form.myvariable.value = myjavascriptvariable; After submission $myvariable will be a php variable in the target page with the value you gave it. 2. Link If you want to set a php variable in a page which the user will get to by a link, then you need to add a GET query to the link e.g. your Javascript will have something like this: document.myhref.location = document.myhref.location+"?myvariable="+myjavascriptvariable; i.e. the link becomes myoriginallink?myvariable=... php will automatically become up the value you specify and set $myvariable to that value. George -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Batch job in UNIX.
mysql client will read from standard input, so you can just pipe in the sql e.g. echo "insert into . ;" | mysql -p -u root test or from a shell script you can use "here is" syntax e.g. mysql -p -u root test < > If i want to add something into a table with just the mysql command. > Is this possible. > > Like > /mysql -p -u root test "insert into..." > > Something like this.Is that possible and how in that case. > > Johan Vikerskog > Technician - CAE Tools Support > Research & Technology Development > >''' > Ericsson Mobile Communications AB > Mobile Phones & Terminals Telephone: +46 46 19 33 38 > Nya VattentornetTelefax:+46 46 19 32 36 > SE-221 83 Lund, Sweden -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] -help
Question? - Original Message - From: "Peter Mead" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 9:52 AM Subject: [PHP] -help > -help > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] new lines in text fields
Hi all, I am in desperate need for a solution to HTML text fields not storing new lines. I'm storing news articles in a database but all the text just ends up in a big block because it ignores line breaks. Is thre a way around this without having to upload text files? Thanks, Mat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Question
Hello, I am in the need to do the following: A web form in which A user clicks on a timer button. The after a certian amount of time the click a end timer button and the time is logged to a mysql dbase. ANyone know how I could go about this. I was thinking I could store the start time in a cookie, and then when end timer button is pressed I could read the value from the cookie, write it, and then destroy the cookie. ANy ideas ? Thanks Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Question
That sounds more client side...maybe javascript. Tyler - Original Message - From: "James W Greene" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 10:02 AM Subject: [PHP] Question > Hello, > I am in the need to do the following: > A web form in which A user clicks on a timer button. The after a certian > amount of time the click a end timer button and the time is logged to a > mysql dbase. ANyone know how I could go about this. I was thinking I could > store the start time in a cookie, and then when end timer button is pressed > I could read the value from the cookie, write it, and then destroy the > cookie. ANy ideas ? Thanks > Jim > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] new lines in text fields
Have you tried putting the newline character (\n) into your html? That works great for me. My only problem is that the output from an XSL transformation has all the line breaks stripped out... - Original Message - From: "Mat Marlow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 8:06 AM Subject: [PHP] new lines in text fields > Hi all, > I am in desperate need for a solution to HTML text fields not storing new > lines. I'm storing news articles in a database but all the text just ends up > in a big block because it ignores line breaks. Is thre a way around this > without having to upload text files? > > Thanks, > > Mat > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Question
I'm no expert by any means, but couldn't you set a variable=now(); then when the user clicks again, set a variable2=now(); then subtract the difference and store the result? Clayton Dukes CCNA, CCDA, CCDP, CCNP (c) 904.477.7825 (h) 904.292.1881 Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net - Original Message - From: "James W Greene" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 11:02 AM Subject: [PHP] Question > Hello, > I am in the need to do the following: > A web form in which A user clicks on a timer button. The after a certian > amount of time the click a end timer button and the time is logged to a > mysql dbase. ANyone know how I could go about this. I was thinking I could > store the start time in a cookie, and then when end timer button is pressed > I could read the value from the cookie, write it, and then destroy the > cookie. ANy ideas ? Thanks > Jim > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Performance: functions vs includes?
Is there a performance benefit or other reason to prefer including files or using functions that write the same contents? For instance, on my pages I have an number of includes for header, main nav, footer, random quote. If I need to pass variables to one of them I just set the variable right before the include. I could of course do the same thing with an include file of functions that output the data... Which one is better? Why? c -- Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re : Recommendation for - FREE Yellow Page entry
Hi, Reference : May we have your permission ? A visitor to one of our 60 Topical sites has recommended we contact you, to include your business in the Only-Yellow-Pages Directory. The information they have provided is : Email: [EMAIL PROTECTED] URL : e-gineer.com Category : Florida Do you feel this would be appropriate and if so, may we have permission to give your site a FREE listing ? Only-Yellow-Pages is the first online GLOBAL Yellow Pages Directory covering over 700 cities in over 120 countries, EACH with it's own domain and directory. Entries are displayed on almost 3000 topical and regional web sites currently getting over 2 MILLION visitors per month. We receive numerous submissions like this but will not activate ANY without the owner's consent. May we have your permission to list your site ? There is no charge. If you want it listed, please go to : http://www.only-yellow-pages.com to choose the design, and enter your information. Thanking you in anticipation.. Sincerely, Tony Alkin Director mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] functions?
Okay there is a file called global.inc $row[0]"; } } ?> But when I call it like this: It only shows the first result from the db... How do I get it to list them all? Susan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RES: [PHP] Cookie Strange Problem
Hi list members! I'm having a strange problem here regarding cookies. First let me explain the scenery: I'm developing a site that have a login system. I'm using PHP , MYSQL and APACHE under MS windows 98 SE. So, when the user login into the first page, I "set up" 2 cookies, one with his name and other with the number of accesses, so, when the user is taken to the main page, I print a message, and inside this message I print the two cookies. Well, the strange thing, is that in the beggining, everything was working FINE...but, without any reason, it stopped to work...it was appearing that the browser wasn't getting the cookie value or not returning it...So, I tried a lot of times and nothing happened!...I tried with Netscape and even with Internet Explorer 5.0...nothing...So, without any reason, AGAIN, it started to work in Netscape...but It don't work in Internet Explorer...noway... Any tips? Any experience like this??? Thanks in advance for any kind of help!!! Best Regards, Felipe Moreno -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] functions?
instead of returning that line, put it into some variable... like: while ($row = mysql_fetch_row ($result)) { $map_list .= "$row[0]"; } } return $map_list; - Original Message - From: <[EMAIL PROTECTED]> To: "'Php-General (E-Mail)" <[EMAIL PROTECTED]> Sent: Friday, July 06, 1979 8:27 AM Subject: [PHP] functions? > Okay there is a file called global.inc > > > // display a list from the DB > > function list_of_maps () { > > db_connect (); > $sql = "SELECT mapname,rowid FROM maps"; > $result = mysql_query($sql); > > while ($row = mysql_fetch_row ($result)) { > return "$row[0]"; } > > } > > > > ?> > > But when I call it like this: > > > include('global.inc'); > echo list_of_maps (); > > ?> > > It only shows the first result from the db... How do I get it to list them > all? > > > Susan > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] FEDEx API's
http://www.fedex.com/us/ebusiness/ecommerce/shipapi.html --- Brad Hubbard <[EMAIL PROTECTED]> wrote: > On Fri, 6 Jul 2001 02:10, Daniel Guerrier wrote: > > The FED Es api suite says tat windows is a > > requirement. > > > > URL? > > Cheers, > Brad > -- > Brad Hubbard > Congo Systems > 12 Northgate Drive, > Thomastown, Victoria, Australia 3074 > Email: [EMAIL PROTECTED] > Ph: +61-3-94645981 > Fax: +61-3-94645982 > Mob: +61-419107559 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL Apps
Ahh, dunno about that at all - Original Message - From: "Mike Gifford" <[EMAIL PROTECTED]> To: "Chris Anderson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 9:41 AM Subject: Re: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL Apps > Sorry for being so vague in my last message. > > Let's say you want to hilight 100 people (say best atheletes, coders, what have > you). You want a brief profile of this person. Name, location, languages, > picture, areas of interest, etc.. > > Something so that you can get a sense of who these folks are. > > Mike > > Chris Anderson wrote: > > > "profiles"? > > - Original Message - > > From: "Mike Gifford" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, July 06, 2001 2:06 AM > > Subject: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL > > Apps > > > > > > > >>Hello, > >> > >>I'm looking to see if someone out there has already developed a php/mysql > >>bibilography. I haven't been able to find one online. > >> > >>I'm also looking for a profiles directory. Rather vague definition here, > >> > > sorry. > > > >>Ultimately it will be i18n compliant.. > >> > >>Mike > >>-- > >>Mike Gifford, OpenConcept Consulting, http://openconcept.ca > >>Offering everything your organization needs for an effective web site. > >>Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ > >>It is a miracle that curiosity survives formal education. - A Einstein > >> > >> > >>-- > >>PHP General Mailing List (http://www.php.net/) > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >>To contact the list administrators, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > Mike Gifford, OpenConcept Consulting, http://openconcept.ca > Offering everything your organization needs for an effective web site. > Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ > It is a miracle that curiosity survives formal education. - A Einstein > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] addslashes problem ..
I have to use addslashes on a string of mine so I can use it in a javascript function, so that when a link is clicked, a html textarea box is populated with that string. The problem I have is that if there are line breaks in the string, the 's seem to get created when addslashes is run on the string, then in the textarea box my string looks like: i can't do thatright nowbut maybe later How can I get the slashes escaped properly, but keep the same format? I tried this: $RESPONSE = eregi_replace('', "\n", $RESPONSE); but it didn't work for me, it just kinda merged all the strings together, no line breaks (or 's) at all. Thanks, Chad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: upgrading to gd2.0.1
If you want to manipulate PNG or JPEG images, you need to make sure you have the PNG and JPEG libraries, and recompile PHP with GD as before, and adding --with-png-dir=/path/to/pnglib, --with-jpeg-dir=/path/to/jpeglib For the complete list of compilation options, see http://php.net/manual/en/install.configure.php -Andy > -Original Message- > From: Mark Maggelet [mailto:[EMAIL PROTECTED]] > Hi, > I just upgraded gd to 2.0.1 and recompiled apache1.3.20/php4.06. > when I do phpinfo() it says: > and when i call imagepng() it says: > Warning: ImagePng: No PNG support in this PHP build > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] remote files on IIS
Hi, I need to get the following working on windows with IIS: http://www.php.net";); ?> I know, it's working on unix, but it creates an error message on IIS. Is there a patch, which enables this feature on IIS? (I do develop my webpages on a windows system, later, they are hosted on linux with apache) Thanks for our help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] mysql fun! JOIN me ...
The syntax to do this in Transact SQL would be, Delete From notes where location in (select rowid from locations where map = @MapID) Delete From Locations Where Map = @MapID Delete From Maps Where RowID = @MapID I dont imagine that MySQL would be that different, although I have a nagging feeling that MySQL doesnt suppport nested queries. BTW, "@MapID" in the above code is a variable with ID of the map you want deleted. Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 05 July 1979 22:38 To: [EMAIL PROTECTED] Subject: [PHP] mysql fun! JOIN me ... Question 1: is there a good explination online of how to use the JOIN function in mysql? I've looked at the documentation: http://www.mysql.com/doc/J/O/JOIN.html but it's to confusing. It doesn't exactly what you are joining or why you might want to do that ... I think JOIN is what I need, here is the problem: So I have some tables: create table maps ( rowid INT(10) AUTO_INCREMENT PRIMARY KEY NOT NULL ); create table locations ( map INT(10), #map rowid rowid INT(10) AUTO_INCREMENT PRIMARY KEY NOT NULL ); create table notes ( location INT(10), ## location rowid rowid INT(10) AUTO_INCREMENT PRIMARY KEY NOT NULL ); Each map has many locations and each location has many notes ... I want to delete the map, all of it's locations and all of the locations notes. clearing the maps and locations is easy: $sql = "DELETE FROM maps WHERE (rowid='$mapid')"; $result = mysql_query($sql); $sql = "DELETE FROM locations WHERE (map='$mapid')"; $result = mysql_query($sql); but how to get rid of those notes? I'm thinking of sending all of the location rowid(s) to an array then using that array to delete the notes ... but I think this JOIN thing might let me do it all with one query. Can any of you kind folks help me here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] functions?
on 7/6/01 11:36 AM, rick at [EMAIL PROTECTED] wrote: > while ($row = mysql_fetch_row ($result)) { > $map_list .= "$row[0]"; } > } > return $map_list; Thanks Rick! This worked great. I guess I'm right in assuming that all you can get back from a function is one big string return. I've tried passing varibles to function and gave up on it. global.inc mainfile.php3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Interpreting PHP in dynamic generated web-pages
> Here's how I see things: > > say http://mydom.com/cgi-bin/dynsite.pl is the thing that generates the > html/php code. Make http://mydom.com/index.php contain just this line: > > http://mydom.com/cgi-bin/dynsite.pl";) ?> > > This works effectively as a include-virtual SSI directive: it reads from > http and interprets the stream as php code. I have checked it and it seems > to work just fine. > > Good luck, > georgeb Thanks! That's exactly, what I was looking for! It works fine on a unix system, but it will create a error message on IIS (windows). Is there a path, which allows this also on IIS? I'm developing web-pages on a windows2000 system with IIS. Later, the pages gets hosted on a linux system with apache. So, to test my pages also at home, IIS suport is requiered. Thanks for your help Dieter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] hey, got a question....
i can't seem to access certain ports, through a nat program i have setup on the computer here with the net, but i was thinking i could use something like socks, because i want to setup some fsockopen() stuff...but i can't use it on the ports i want, just frezzez...works over the lan fine, and over the net on ports i can access...
[PHP] Redirect
Hi! Still new on PHP, converting from vb$cript, I wonder how I do a redirect... In vbscript: <% response.redirect("page.extension") %> In PHP??? Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
sounds like a firewall issue to me -- do you have a firewall in between your computer and your 'net connection? Might run a port scan on your default gateway (which is likely your firewall if you have one) to see what ports it's allowing inbound. Alternatively, you could have a router that has some ports closed down. Again, a port scan will show this. (and might also tick off your net admin) Either way, most likely not a php issue. --kurt - Original Message - From: "ReDucTor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 9:34 AM Subject: [PHP] hey, got a question i can't seem to access certain ports, through a nat program i have setup on the computer here with the net, but i was thinking i could use something like socks, because i want to setup some fsockopen() stuff...but i can't use it on the ports i want, just frezzez...works over the lan fine, and over the net on ports i can access... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Redirect
Hi! Still new on PHP, converting from vb$cript, I wonder how I do a redirect... In vbscript: <% response.redirect("page.extension") %> In PHP??? Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Redirect
Header("Location: whereveryouwanttogo.html"); On Fri, 6 Jul 2001, [iso-8859-1] Victor Spång Arthursson wrote: > Hi! > > Still new on PHP, converting from vb$cript, I wonder how I do a > redirect... > > In vbscript: > > <% > response.redirect("page.extension") > %> > > In PHP??? > > Sincerely > > Victor > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] addslashes problem ..
maybe i don't undestand correctly but try: $string = str_replace("","\\n",$string); i.e escape the escape character \\n - Original Message - From: "Chad Day" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 4:38 PM Subject: [PHP] addslashes problem .. > I have to use addslashes on a string of mine so I can use it in a javascript > function, so that when a link is clicked, a html textarea box is populated > with that string. > > The problem I have is that if there are line breaks in the string, the > 's seem to get created when addslashes is run on the string, then in the > textarea box my string looks like: > > i can't do thatright nowbut maybe later > > How can I get the slashes escaped properly, but keep the same format? I > tried this: > > $RESPONSE = eregi_replace('', "\n", > $RESPONSE); > > but it didn't work for me, it just kinda merged all the strings together, no > line breaks (or 's) at all. > > Thanks, > Chad > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Redirect
look in manual for HEADER and LOCATION - Original Message - From: "Vicor Spång Arthursson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 11:43 AM Subject: [PHP] Redirect > Hi! > > Still new on PHP, converting from vb$cript, I wonder how I do a > redirect... > > In vbscript: > > <% > response.redirect("page.extension") > %> > > In PHP??? > > Sincerely > > Victor > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
what's the OS? - Original Message - From: "ReDucTor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 11:34 AM Subject: [PHP] hey, got a question i can't seem to access certain ports, through a nat program i have setup on the computer here with the net, but i was thinking i could use something like socks, because i want to setup some fsockopen() stuff...but i can't use it on the ports i want, just frezzez...works over the lan fine, and over the net on ports i can access... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re : Recommendation for - FREE Yellow Page entry
no, go away - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 9:18 AM Subject: [PHP] Re : Recommendation for - FREE Yellow Page entry > Hi, > > Reference : May we have your permission ? > > A visitor to one of our 60 Topical sites has recommended > we contact you, to include your business in the Only-Yellow-Pages Directory. > > The information they have provided is : > > Email: [EMAIL PROTECTED] > URL : e-gineer.com > Category : Florida > > Do you feel this would be appropriate and if so, may we > have permission to give your site a FREE listing ? > > Only-Yellow-Pages is the first online GLOBAL Yellow Pages > Directory covering over 700 cities in over 120 countries, > EACH with it's own domain and directory. > > Entries are displayed on almost 3000 topical and regional web sites > currently getting over 2 MILLION visitors per month. > > We receive numerous submissions like this but will not > activate ANY without the owner's consent. > > May we have your permission to list your site ? > > There is no charge. > > If you want it listed, please go to : > > http://www.only-yellow-pages.com > > to choose the design, and enter your information. > > Thanking you in anticipation.. > > > > Sincerely, > > Tony Alkin > Director > > mailto:[EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
It's just a port that isn't open on the NAT, i have attempted to open it, just isn't opening, but i want to know if it is possible to use Socks in PHP - Original Message - From: Kurt Lieber <[EMAIL PROTECTED]> To: ReDucTor <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, July 07, 2001 2:48 AM Subject: Re: [PHP] hey, got a question > sounds like a firewall issue to me -- do you have a firewall in between your > computer and your 'net connection? Might run a port scan on your default > gateway (which is likely your firewall if you have one) to see what ports > it's allowing inbound. > > Alternatively, you could have a router that has some ports closed down. > Again, a port scan will show this. (and might also tick off your net admin) > > Either way, most likely not a php issue. > > --kurt > - Original Message - > From: "ReDucTor" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, July 06, 2001 9:34 AM > Subject: [PHP] hey, got a question > > > i can't seem to access certain ports, through a nat program i have setup on > the computer here with the net, but i was thinking i could use something > like socks, because i want to setup some fsockopen() stuff...but i can't use > it on the ports i want, just frezzez...works over the lan fine, and over the > net on ports i can access... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
Windows - Original Message - From: Christopher Allen <[EMAIL PROTECTED]> To: ReDucTor <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 2:45 AM Subject: Re: [PHP] hey, got a question > what's the OS? > > > - Original Message - > From: "ReDucTor" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, July 06, 2001 11:34 AM > Subject: [PHP] hey, got a question > > > i can't seem to access certain ports, through a nat program i have setup on > the computer here with the net, but i was thinking i could use something > like socks, because i want to setup some fsockopen() stuff...but i can't use > it on the ports i want, just frezzez...works over the lan fine, and over the > net on ports i can access... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP 4.0.6 and Apache 1.3.6 ?
hi Micha, are you using the apache version 1.3.6-7? or just 1.3.6, can you tell me if you can see your php4 load and add module in etc/httpd/conf/httpd.conf? is that am having problems with this my php4.0.6 does not work only when i change my php ext to php3 or php but not php4!!! pls advise >From: Micha Ober <[EMAIL PROTECTED]> >To: php <[EMAIL PROTECTED]> >Subject: [PHP] PHP 4.0.6 and Apache 1.3.6 ? >Date: Fri, 6 Jul 2001 00:15:02 -0700 (PDT) > >I've installed Apache 1.3.6 and PHP 4.0.6 and it >works. But if I load an extension in the php.ini >Apache says "abnormal program termination". > >= >Linux... >Because it works. > >__ >Do You Yahoo!? >Get personalized email addresses from Yahoo! Mail >http://personal.mail.yahoo.com/ > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] eregi replace help
I want to delete some lines original: http://www.example.com/1.html"; >ABCD > Football http://www.example.com/2.html"; >BCDE > Tennis http://www.example.com/3.html"; >CDEF > Football http://www.example.com/4.html"; >DEFG > Basketball http://www.example.com/5.html"; >EFGH > Tennis http://www.example.com/6.html"; >FGHI after: http://www.example.com/1.html"; >ABCD http://www.example.com/2.html"; >BCDE http://www.example.com/3.html"; >CDEF http://www.example.com/4.html"; >DEFG http://www.example.com/5.html"; >EFGH http://www.example.com/6.html"; >FGHI I tryed eregi replace with (.*) but that does not seem to work Thanks if you can help me Richard van Leeuwen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
well theres your problem...winblows.lol - Original Message - From: "ReDucTor" <[EMAIL PROTECTED]> To: "Christopher Allen" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 11:58 AM Subject: Re: [PHP] hey, got a question > Windows > - Original Message - > From: Christopher Allen <[EMAIL PROTECTED]> > To: ReDucTor <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, July 06, 2001 2:45 AM > Subject: Re: [PHP] hey, got a question > > > > what's the OS? > > > > > > - Original Message - > > From: "ReDucTor" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, July 06, 2001 11:34 AM > > Subject: [PHP] hey, got a question > > > > > > i can't seem to access certain ports, through a nat program i have setup > on > > the computer here with the net, but i was thinking i could use something > > like socks, because i want to setup some fsockopen() stuff...but i can't > use > > it on the ports i want, just frezzez...works over the lan fine, and over > the > > net on ports i can access... > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
nothing wrong with windows - Original Message - From: Christopher Allen <[EMAIL PROTECTED]> To: ReDucTor <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 3:21 AM Subject: Re: [PHP] hey, got a question > well theres your problem...winblows.lol > - Original Message - > From: "ReDucTor" <[EMAIL PROTECTED]> > To: "Christopher Allen" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Friday, July 06, 2001 11:58 AM > Subject: Re: [PHP] hey, got a question > > > > Windows > > - Original Message - > > From: Christopher Allen <[EMAIL PROTECTED]> > > To: ReDucTor <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > Sent: Friday, July 06, 2001 2:45 AM > > Subject: Re: [PHP] hey, got a question > > > > > > > what's the OS? > > > > > > > > > - Original Message - > > > From: "ReDucTor" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Friday, July 06, 2001 11:34 AM > > > Subject: [PHP] hey, got a question > > > > > > > > > i can't seem to access certain ports, through a nat program i have setup > > on > > > the computer here with the net, but i was thinking i could use something > > > like socks, because i want to setup some fsockopen() stuff...but i can't > > use > > > it on the ports i want, just frezzez...works over the lan fine, and over > > the > > > net on ports i can access... > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Number of the line ?
Doesn't work if you put ++ after the variable? > 1 2 echo "i'm on line $NUMBER_LINE++\n"; > 3 echo "i'm on line $NUMBER_LINE++\n"; > 4 ?> Or maybe: echo "i'm on line " .$NUMBER_LINE++ ."\n"; -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "Emmanuel FAIVRE" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hi All, > > i'm currently writing a debugging lib in PHP and i would like to find > the number of the line in my script > > when i made an > > myfile.php > > 1 2 echo "i'm on line $NUMBER_LINE\n"; > 3 echo "i'm on line $NUMBER_LINE\n"; > 4 ?> > > would give : > > i'm on line 2 > i'm on line 3 > > it perhaps exists because when we have warning we see the line number > > Thanks > > > Manu > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] custom tag support
I was curious if there was any custom tag support like jsp or cold fusion in php (or outside libraries). I'm looking at trying to make re-usuable components and want to use something more than including simple classes or function calls. Thanks for your time, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] new lines in text fields
Hi, I don't know what is exactly what you want to do, but I have a page with a tag, and a mySQL database with a TEXT field, that way I can use newline breaks. Bye. On Fri, Jul 06, 2001 at 04:06:58PM +0100, Mat Marlow wrote: > Hi all, > I am in desperate need for a solution to HTML text fields not storing new > lines. I'm storing news articles in a database but all the text just ends up > in a big block because it ignores line breaks. Is thre a way around this > without having to upload text files? > > Thanks, > > Mat > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Something weird
I just installed a fresh RH 7.1 server with compiled apache and php 4.0.6 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Something weird
Sorry... I just installed a fresh RH 7.1 server with compiled apache 1.3.16 and php 4.0.6 if I make a change on a page it doesn't show -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Redirect
Hi Victor! On Fri, 06 Jul 2001, Victor Spång Arthursson wrote: > Hi! > > Still new on PHP, converting from vb$cript, I wonder how I do a > redirect... > > In vbscript: > > <% > response.redirect("page.extension") > %> > > In PHP??? $response->redirect("page"); where: class Response { function redirect($page) { header("Location: $page"); } } $response = new Response(); to feel more at home :D -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Problem writting to file...
Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James
[PHP] string formatting help
I'm trying to pull a string from a database to use in a javascript function.. but it's doing line breaks on me, which in turn messes up the javascript. The string in the mysql db is like: kjdsakjadkskjdkskjkdfjdfkjfd When I pull it out, it becomes: kjdsakjadk skjdks kjkdfjdfkjfd I've tried replacing the br's with blank spaces or new line characters, but in the html code it still breaks on those breaks when I echo it back out. How can I force this string to be all on one line? Thanks, Chad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Something weird
check the browser cache settings. for some bizarre reason, almost every browser i've seen has the default option set to "cache everything and never look for updates" > -Original Message- > From: David OBrien [mailto:[EMAIL PROTECTED]] > Subject: [PHP] Something weird > > > Sorry... > > I just installed a fresh RH 7.1 server with compiled apache 1.3.16 and php > 4.0.6 > if I make a change on a page it doesn't show > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
I don't see anything wrong with the code. Does this work: - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 2:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
nope... The 'new line' tages are printed inside the file but not the values produced by the counter... - Original Message - From: Chris Anderson To: James Bartlett ; [EMAIL PROTECTED] Sent: Friday, July 06, 2001 7:25 PM Subject: Re: [PHP] Problem writting to file... I don't see anything wrong with the code. Does this work: - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 2:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James
Re: [PHP] Something weird
Half the message didn't get sent ... If I manually do a apachectl restart the page updates with the correct changes on it the other 3 apache / php servers I have all work correctly just this one on 7.1 the rest are 6.2 redhat installs. -Dave At 02:04 PM 7/6/2001 -0400, David OBrien wrote: >Sorry... > >I just installed a fresh RH 7.1 server with compiled apache 1.3.16 and php >4.0.6 >if I make a change on a page it doesn't show > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
Any errors being given to you? Tyler - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: string formatting help
Maybe: $array = explode("", $string); foreach ($array as $key => $value) { echo "$value"; } Would separate the string by 's and print all in one line. -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "Chad Day" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to pull a string from a database to use in a javascript > function.. but it's doing line breaks on me, which in turn messes up the > javascript. > > The string in the mysql db is like: > kjdsakjadkskjdkskjkdfjdfkjfd > > When I pull it out, it becomes: > > kjdsakjadk > > skjdks > > > kjkdfjdfkjfd > > I've tried replacing the br's with blank spaces or new line characters, but > in the html code it still breaks on those breaks when I echo it back out. > How can I force this string to be all on one line? > > Thanks, > Chad > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Something weird
> for some bizarre reason, almost every browser i've seen > has the default option set to "cache everything and never > look for updates" Connection speed. Cached pages load faster -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
No errors at all... - Original Message - From: Tyler Longren To: php-general ; James Bartlett Sent: Friday, July 06, 2001 7:29 PM Subject: Re: [PHP] Problem writting to file... Any errors being given to you? Tyler - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James
RE: [PHP] Problem writting to file...
What happens when the code is - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Problem writting to file...
try this Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: James Bartlett [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 11:30 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Problem writting to file... No errors at all... - Original Message - From: Tyler Longren To: php-general ; James Bartlett Sent: Friday, July 06, 2001 7:29 PM Subject: Re: [PHP] Problem writting to file... Any errors being given to you? Tyler - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
When I use that code I get the following... Counter is = 0 Counter is = 1 Counter is = 2 Counter is = 3 Counter is = 4 Counter is = 5 However if you remove the "Counter is =" part then once again no numbers are written, only the 'new line' symbols... - Original Message - From: Chadwick, Russell To: '[EMAIL PROTECTED]' Sent: Friday, July 06, 2001 7:43 PM Subject: RE: [PHP] Problem writting to file... What happens when the code is - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
I get the same result... - Original Message - From: Jerry Lake To: [EMAIL PROTECTED] Sent: Friday, July 06, 2001 7:48 PM Subject: RE: [PHP] Problem writting to file... try this Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: James Bartlett [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 11:30 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Problem writting to file... No errors at all... - Original Message - From: Tyler Longren To: php-general ; James Bartlett Sent: Friday, July 06, 2001 7:29 PM Subject: Re: [PHP] Problem writting to file... Any errors being given to you? Tyler - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Problem writting to file...
Oooo, then make it fwrite($fp, "$counter\n"); -Original Message- From: James Bartlett [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 11:46 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Problem writting to file... When I use that code I get the following... Counter is = 0 Counter is = 1 Counter is = 2 Counter is = 3 Counter is = 4 Counter is = 5 However if you remove the "Counter is =" part then once again no numbers are written, only the 'new line' symbols... - Original Message - From: Chadwick, Russell To: '[EMAIL PROTECTED]' Sent: Friday, July 06, 2001 7:43 PM Subject: RE: [PHP] Problem writting to file... What happens when the code is - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Warning: Page has Expired
When using sessions with forms, a user presses the back button and gets the message: Page has Expired. How can I get around this happening? I have to use sessions because I store many different variables at a time for a shopping cart. Forms are submitted depending on what item the user is shopping for. What can I do to get around the expired page? Thanks! Patrick -- Patrick Hanna Database integration--E-commerce solutions The Wentworth Company
Re: [PHP] Problem writting to file...
It doesnt like that either... - Original Message - From: Chadwick, Russell To: '[EMAIL PROTECTED]' Sent: Friday, July 06, 2001 7:51 PM Subject: RE: [PHP] Problem writting to file... Oooo, then make it fwrite($fp, "$counter\n"); -Original Message- From: James Bartlett [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 11:46 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Problem writting to file... When I use that code I get the following... Counter is = 0 Counter is = 1 Counter is = 2 Counter is = 3 Counter is = 4 Counter is = 5 However if you remove the "Counter is =" part then once again no numbers are written, only the 'new line' symbols... - Original Message - From: Chadwick, Russell To: '[EMAIL PROTECTED]' Sent: Friday, July 06, 2001 7:43 PM Subject: RE: [PHP] Problem writting to file... What happens when the code is - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Something weird
maybe it's just me, but caches drive me nuts... i know... but IMO, i'll take a slight performance hit any day to make sure i get the most recent page... > -Original Message- > From: Inércia Sensorial [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] Something weird > > > for some bizarre reason, almost every browser i've seen > > has the default option set to "cache everything and never > > look for updates" > >Connection speed. Cached pages load faster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] is_alpha_numeric ?
Hello everyone, I'm trying to determine if an argument is alphanumeric. Is there a function to do this? I thought PHP had a IS_ALPHA_NUMERIC function, but I can't seem to find it anywhere. Was it wishful thinking ? Please help. If you do know of this function, then please send me the syntax. is_alpha_numeric($string) is not working. If you do know of another way to this, then please send me that as well. My expected string has the form 'A200A'. Both, letters and numbers, will change depending on the item. The value will ve passed via a hidden form. Thanks in advance. -John __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___+- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] is_alpha_numeric ?
"John Monfort" <[EMAIL PROTECTED]> wrote: > I'm trying to determine if an argument is alphanumeric. Is there a > function to do this? There may be in the CVS version (would have to check), but there's not in 4.0.6. eregi( [[:alnum:]]{1,}, $string ) may do the trick. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Something weird
Me too. I always put 'check for new versions' or 'don´t cache' or similar. While I am aware that cached pages doesn't perform well with dinamic pages, the browser developers are also aware that what the user want is to see the page. If you ask any average user what is his preference 'Load faster or don't cache?'... he will probaly answer 'load faster', IF he knows what the hell a cached page is... -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "scott [gts]" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > maybe it's just me, but caches drive me nuts... > > i know... but IMO, i'll take a slight performance > hit any day to make sure i get the most recent page... > > > -Original Message- > > From: Inércia Sensorial [mailto:[EMAIL PROTECTED]] > > Subject: Re: [PHP] Something weird > > > > > for some bizarre reason, almost every browser i've seen > > > has the default option set to "cache everything and never > > > look for updates" > > > >Connection speed. Cached pages load faster > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] is_alpha_numeric ?
you could also use this: function is_alphanum($data) { return preg_match('/^\w+$/', $data); } > -Original Message- > From: Steve Werby [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 06, 2001 3:32 PM > To: John Monfort; [EMAIL PROTECTED] > Subject: Re: [PHP] is_alpha_numeric ? > > > "John Monfort" <[EMAIL PROTECTED]> wrote: > > I'm trying to determine if an argument is alphanumeric. Is there a > > function to do this? > > There may be in the CVS version (would have to check), but there's not in > 4.0.6. eregi( [[:alnum:]]{1,}, $string ) may do the trick. > > -- > Steve Werby > President, Befriend Internet Services LLC > http://www.befriend.com/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Something weird
Why not just make all your pages force a no cache or a refresh? Kevin - Original Message - From: "Inércia Sensorial" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:32 PM Subject: Re: [PHP] Something weird > Me too. I always put 'check for new versions' or 'don´t cache' or similar. > While I am aware that cached pages doesn't perform well with dinamic pages, > the browser developers are also aware that what the user want is to see the > page. > > If you ask any average user what is his preference 'Load faster or don't > cache?'... he will probaly answer 'load faster', IF he knows what the hell a > cached page is... > > -- > > > Julio Nobrega. > > A hora está chegando: > http://sourceforge.net/projects/toca > > "scott [gts]" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > maybe it's just me, but caches drive me nuts... > > > > i know... but IMO, i'll take a slight performance > > hit any day to make sure i get the most recent page... > > > > > -Original Message- > > > From: Inércia Sensorial [mailto:[EMAIL PROTECTED]] > > > Subject: Re: [PHP] Something weird > > > > > > > for some bizarre reason, almost every browser i've seen > > > > has the default option set to "cache everything and never > > > > look for updates" > > > > > >Connection speed. Cached pages load faster > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Missing first record in PHP/Mysql query
here may be why: //Right here you grab a row $query_data = mysql_fetch_row($result); //but you don't use it and you move on while($query_data = mysql_fetch_array($result)) { - Original Message - From: "Rory O'Connor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 05, 2001 3:11 PM Subject: [PHP] Missing first record in PHP/Mysql query > Excuse me if this is too newbie...but I'm writing a simple script to > query a database and loop through the reuslts, echoing them on the page. > When I enter the query at the mysql command line, I get the correct > results. But the same query run through PHP renders all results except > the first one. Any idea why? I've included the code snippet below: > > //the query to select the data > $query = "SELECT firstname,email,optin from contact where > interest='rory'"; > $result = mysql_query($query); > if(!$result) error_message(sql_error()); > > $query_data = mysql_fetch_row($result); > > while($query_data = mysql_fetch_array($result)) { > $firstname = $query_data["firstname"]; > $email = $query_data["email"]; > $optin = $query_data["optin"]; > > echo "\n"; > echo "$firstname;$email;$optin\n"; > > } //end while loop > > also, what would be the code to output the reuslts to a text file > instead of (or in addition to) the screen? > > thanks, > > rory > > providing the finest in midget technology > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Something weird
Kevin, we were talking about cache in an user point of view... :-D -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "Kevin Pratt" <[EMAIL PROTECTED]> wrote in message 009f01c10655$b3558e40$0300a8c0@ouelong">news:009f01c10655$b3558e40$0300a8c0@ouelong... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Creating a Variable with the Name of a string
I know this has been discussed before, but I've searched the manual and didn't see it under Variable functions, or any of my searches. I have varible $temp, how can I create a variable whose name is the string stored in $temp? Thanks in advance