[PHP] Re: Where to start?

2003-06-06 Thread Bix
www.php.net is a beauty for function reference Your best place to start is here: http://www.devshed.com/Server_Side/PHP/PHP101/PHP101_1/page1.html 5 tutorials on the basics, plus devshed has 100s of tutorials on everything. "Simon Thurtle" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTEC

php-general Digest 5 Jun 2003 14:03:34 -0000 Issue 2099

2003-06-06 Thread php-general-digest-help
php-general Digest 5 Jun 2003 14:03:34 - Issue 2099 Topics (messages 150291 through 150353): Re: selecting first character from a MySQL table 150291 by: David Robley Re: How to optimize this MySQL command? 150292 by: Jomi Garrucho Does PHP have vb's 'mid' function (or simil

[PHP] PHP 4.3.2 Compiling error in native GD

2003-06-06 Thread Bix
I'm compiling with: ./configure --with-apxs --with-mysql=/usr --with-mcrypt=/usr/local/lib/ --wi th-imap=/home/redhat/SOURCES/imap-2001a/ --with-imap-ssl=/usr/local/ssl --wi th-dba --with-gd --with-jpeg-dir=/usr/local/lib --with-zlib-dir=/usr/local/l ib --enable-gd-native-ttf --with-png-dir=/usr/l

[PHP] Php 4.3.2 "stream does not support seeking" in includes

2003-06-06 Thread Nicolas Ross
Hi there ! I just upgraded to php 4.3.2 on several servers, and some of them uses incldes of remote files (via include("http:...") functions. I get : Warning: main(): stream does not support seeking in ... on line .. All the time, on all machines. My "standard" configure line is : ./configure

[PHP] How stable is CVS releases?

2003-06-06 Thread Timothy Arnold
Hi all, I am having a problem with compiling PHP 4.3.2 on Solaris 8. The compile runs ok but blows up when I try a make install. Before submitting this a bug I downloaded the latest CVS release to see if it has been fixed. It has! Unfortunatly, I do not know how stable the CVS version is for prod

[PHP] Re: MySQL Problem

2003-06-06 Thread Esteban Fernandez
What's up Supposing that the filename of the you code is create_table.php. Try tipping in the URL: create_table.php?nueva_base=prueba EF. --- Que tal Suponiendo que el archivo del codigo se llama create_table.php. Prueba poniendo el la URL: create_table.php?nueva_base=prueba EF. "Felipe R."

Re: [PHP] header function problem

2003-06-06 Thread Daniel J. Rychlik
It works now. Are their any examples out there that will show how to pass back the information that was entered and pass the error message back to the form.htm ? Or a function that i need to read up on. -Dan - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTE

[PHP] PHP CLI question

2003-06-06 Thread Monte Ohrt
Hi, A couple of questions: 1) Is there a way to make the CLI version of PHP ignore certain settings in the php.ini file? For instance, I don't want the ioncube accelerator invoked when using PHP from the command line. My current work around is to use two separate init files, php.ini and php-cli.i

[PHP] How do I display new lines in a textearea?

2003-06-06 Thread Petre Agenbag
Hi I want to have a textarea that contains details read from a mysql table, but I want to echo each row so that it is on a new line. What is the "new-line" character for a textarea? ( in effect the reverse of nl2br() ) Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] PHP CLI question

2003-06-06 Thread Cal Evans
http://www.php.net/manual/en/function.ini-set.php * Cal Evans * http://www.christianperformer.com * Stay plugged into your audience * The measure of a programmer is not the number of lines of code he writes but the number of lines he does not have to write. * - Original Message - From: "M

Re: [PHP] How do I display new lines in a textearea?

2003-06-06 Thread CPT John W. Holmes
> I want to have a textarea that contains details read from a mysql table, > but I want to echo each row so that it is on a new line. What is the > "new-line" character for a textarea? ( in effect the reverse of nl2br() A newline is \n $text = "word\nword\nword\n"; echo "$word"; will have each

Re: [PHP] PHP CLI question

2003-06-06 Thread Monte Ohrt
Hi Cal, I may be missing something, but I don't see how this page answers either of my questions. ini_set() is for setting configuration options. Monte On Thu, 2003-06-05 at 09:23, Cal Evans wrote: > http://www.php.net/manual/en/function.ini-set.php > > * Cal Evans > * http://www.christianperfo

[PHP] libphp4.so

2003-06-06 Thread Ryan Vennell
ok, when i compile php i dont get libphp4.so. i'm not a linux Newb or anything but i'm not an extremely advanced user either so any help would be useful... i cant exactly run apache w/ php w/out this module. thanks for any help any of you can give me. Redhat 8/apache2 (ugh @ both) -Ryan

[PHP] Re: How do I display new lines in a textearea?

2003-06-06 Thread Bobby Patel
this is discussed in the posted comments under the function section of nl2br on php.net. But from what I remember there is no br2nl() (unfortunately). just goto php.net/nl2br and search the posted comments for br2nl Bobby "Petre Agenbag" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTEC

Re: [PHP] PHP CLI question

2003-06-06 Thread Adam Voigt
>From a ./php -h: -c | Look for php.ini file in this directory The "|" means "OR", so logic would dictate you can point directly to the file with the -c option. On Thu, 2003-06-05 at 10:35, Monte Ohrt wrote: > Hi Cal, > > I may be missing something, but I don't see how this page answers eithe

Re: [PHP] Advice on script length please!

2003-06-06 Thread Wendell Brown
On Thu, 5 Jun 2003 10:25:01 +0100, Bix wrote: >My file is currently 1200 lines long and consist of 450 lines of case >statements and then the rest are functions. Obviously there are ways to optimize the code for speed. However, as with many optimizations, there are trade offs... One way to do a

[PHP] recursive displaying tree structure

2003-06-06 Thread Armand Turpel
Hi, May this can help you: $value) { $tmp[$key] = $value; } $tmp['indent'] = $indent; $ret_tree[] = $tmp; tree($tmp['id'], $indent+1); } }

[PHP] Re: Browser detection script (css)

2003-06-06 Thread Øystein Håland
Maybe this could do the job as well. Thanks "Emo" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > I don't know if you mean this ... > I use for detect browser and send css for it this script: > > // set default css file (MSIE) > $css='main.css'; > // if browser is opera ... > if

Re: [PHP] PHP Class for IP CIDR notation

2003-06-06 Thread Mark
Here's a quick function of the top of my head. I'm not sure if x.x.0.x or x.0.x.x are valid IP addresses. Adjust as necessary. 255) { echo "First octet of IP address cannot exceed 255"; return false; } $ip_list[]=implode(".",$octet); } return $ip_list; } $arr=cidr("192.1

[PHP] PDF

2003-06-06 Thread Lukas Gerhold
Hy! I have an existing pdf formular, which I have to fill up with data from a mysql database. Now, I know, that there are these pdf funktions which could do all the work. But to use these functions I needed the PDFlib. Only the 'lite PDFlib' is an open source product, and the full version espezial

[PHP] PHP Mailing list software..

2003-06-06 Thread Chad Day
Can anyone make a recommendation for me? I'm looking to tie mailing lists in to my existing site, which is coded in php/mysql. I would be looking for a script that has browseable archives, ability to restrict access to them to subscribers only, and the ability to send mail to the list a web form,

Re: [PHP] PHP Mailing list software..

2003-06-06 Thread Adam Voigt
Probably not what you want, but you might be able to adapt the phpBB forum software. Very sweet program in general. http://www.phpbb.com/ On Thu, 2003-06-05 at 12:13, Chad Day wrote: > Can anyone make a recommendation for me? I'm looking to tie mailing lists > in to my existing site, which is

[PHP] Re: php4isapi.dll and header("Location: ...")

2003-06-06 Thread Peter Clarke
Eric Tonicello wrote: Hi ! Have somebody successed with the function < header("Location: http://...";) using the php4isapi.dll ??? My code works well with PHP using the CGI php.exe, but impossible to make it work with the ISAPI module !!! Configuration: -Windows 2000 server - PHP 4.3.2 "php.in

[PHP] Passing values back to form

2003-06-06 Thread Daniel J. Rychlik
Im new to PHP coming from a background in perl devlopement. I have a form that a user can fill out. On submit the values are iterated over a foreach to check for empty(). If the an emtyp $key is found then it passes an error string to my error function. I have 2 php files, one that is the

Re: [PHP] PDF

2003-06-06 Thread Philip Olson
Odds are you don't need PDFlib at all. The docs at php.net/pdf link to the following faq: How can I generate PDF files without using the non-free and commercial libraries ClibPDF and PDFLib? I'd like something that's free and doesn't require external PDF libraries. http://us2.php

[PHP] Initialized PHP Module frequently

2003-06-06 Thread andre . lagadec
Hello, On Sun Solaris with Iplanet 4.1 et PHP 4.2.3, I have theses messages on the error log of the Web server : [04/Jun/2003:16:04:54] info ( 7643): php4_init reports: Initialized PHP Module [04/Jun/2003:16:09:57] info ( 7679): php4_init reports: Initialized PHP Module [04/Jun/2003:16:11:12] info

Re: [PHP] Passing values back to form

2003-06-06 Thread Kevin Stone
Hi Daniel, My advice is to use php sessions. You can register both the filled and empty values in the session after processing them. Then you can header() redirect normally with no fuss and extract the values from the session file on the form page. And here's a tip. Set up some CSS in a switch

Re: [PHP] PHP CLI question

2003-06-06 Thread Monte Ohrt
Hi Adam, I know it can be altered with a command-line switch, but it is the default that I want to change. I don't want to have to remember to set the -c flag everytime, or go back and change all my existing scripts. Monte On Thu, 2003-06-05 at 09:53, Adam Voigt wrote: > >From a ./php -h: > >

Re: [PHP] Passing values back to form

2003-06-06 Thread Daniel J. Rychlik
Thanks so much for your time. These are great tips, thanks again. - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: "Daniel J. Rychlik" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, June 05, 2003 12:37 PM Subject: Re: [PHP] Passing values back to form > Hi Dan

[PHP] scheduled tasks

2003-06-06 Thread Matt Palermo
Does anyone know if there is any other way to have a php script run automatically (everyday, or week, or month, etc...) besides a cron job or scheduled task? Thanks. Matt

RE: [PHP] scheduled tasks

2003-06-06 Thread Jay Blanchard
[snip] Does anyone know if there is any other way to have a php script run automatically (everyday, or week, or month, etc...) besides a cron job or scheduled task? Thanks. [/snip] I suppose that you could run a script with a sleep statement for x time, the re-direct to itself restarting the slee

[PHP] Regex for Browser Versions

2003-06-06 Thread Gerard Samuel
Im trying to pull the Mozilla version and *possibly* the MSIE x.xx string out $_SERVER['HTTP_USER_AGENT'] If I did this correctly, (MSIE\s\d\.\d{1,2})? should mean that if its there pull it out, else move on, since its not there. When viewing this script via a windows browser, it doesn't match th

Re: [PHP] PHP CLI question

2003-06-06 Thread Jason Wong
On Friday 06 June 2003 01:43, Monte Ohrt wrote: > I know it can be altered with a command-line switch, but it is the > default that I want to change. I don't want to have to remember to set > the -c flag everytime, or go back and change all my existing scripts. You can run separate ./configure co

[PHP] PHP/Javascript Help

2003-06-06 Thread Stephen
Hello, I'm trying to use a calendare script to select a date in another form. I got the calendar working and I've got it all working except one bit of error. I'm repeating a table field to get all these items into a table. Each row of the table has it's own text field where the user can type in

[PHP] Re: Regex for Browser Versions

2003-06-06 Thread Monty
Maybe it might be easier to just use the get_browser() function: http://www.php.net/manual/en/function.get-browser.php Monty > From: [EMAIL PROTECTED] (Gerard Samuel) > Newsgroups: php.general > Date: Thu, 05 Jun 2003 14:00:23 -0400 > To: [EMAIL PROTECTED] > Subject: Regex for Browser Versions >

[PHP] Re: Where to start?

2003-06-06 Thread Monty
Knowing any kind of programming language will help in learning PHP. If you understand variables, arrays, if/else structures, etc., it allows you to skim over some of the basics quickly. I had very little programming experience, but, learned a lot from the book "PHP and MySQL Web Development" by Lu

RE: [PHP] Needing Just a Little Advice!

2003-06-06 Thread sevenfiftyflat
Thanks very much!!! :-D I had no idea it was an old topic!!! -Original Message- From: Evan Nemerson [mailto:[EMAIL PROTECTED] Sent: June 4, 2003 1:25 PM To: sevenfiftyflat; [EMAIL PROTECTED] Subject: Re: [PHP] Needing Just a Little Advice! Try not hijacking threads. Other than that, thi

[PHP] Using the .htaccess file to extend the php.ini include path entry

2003-06-06 Thread Saint Urho
I want to add some directories to the "include path" entry in the php.ini file. I have to do this via the .htaccess file because I do not have access to the php.ini file on the server. Will the additional directories in the .htaccess file replace the directories in the php.ini file or will the

Re: [PHP] Morph an object

2003-06-06 Thread [EMAIL PROTECTED]
Torben, Thanks for your help. I got it to work by creating a constructor that took the content as an argument then set the property $this->content = SetContent($content); Then in my script I instantiated the object with the login form as the content. I created a switch case for the result of the

[PHP] Approved

2003-06-06 Thread cadaver
Please see the attached file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Regex for Browser Versions

2003-06-06 Thread Gerard Samuel
True, but since the code is being run by 3rd parties, I don't have a guarantee that the browsecap.ini file is available on the server. Monty wrote: Maybe it might be easier to just use the get_browser() function: http://www.php.net/manual/en/function.get-browser.php Monty -- PHP General Mai

[PHP] Basic counter & users online..

2003-06-06 Thread PHPSpooky
Glory! I'm working on a Counter thing. with a basic Hit Meter and a Users Online Meter. The problem I face is.. the index page of my site is HTML .. no frameset.. and I need to display these vars on that page. The solution I use is that I place a Flash Clip (.swf) and I'm calling the PHP Variabl

[PHP] Allowing punctuation marks in regular expressions

2003-06-06 Thread Luis Lebron
I found the following function to test a string for alphanumeric characters function is_alphanumeric($string) { return (preg_match("/^[a-z0-9]+$/i", $string)); } How can I modify it so that it also allows punctuation marks? thanks, Luis R. Lebron

RE: [PHP] Allowing punctuation marks in regular expressions

2003-06-06 Thread Dan Joseph
Hi, > return (preg_match("/^[a-z0-9]+$/i", $string)); That a-z0-9 is where you can do it. Just add ! or . or ? to the end: a-z0-9!?. Also, if you want upper case letters, make sure you add A-Z: A-Za-z0-9!?. -Dan Joseph -- PHP General Mailing List (http

[PHP] PHP Install help with gettext

2003-06-06 Thread Andrew Li
Hi, We are attempting to install PHP 4.3.2 on to windows XP using Apache as our web server. When we try to start apache, the Warning message appears: "Unkown(): Unable to load dynamic library 'c:\PHP\extensions\php_gettext.dll' - The specified module could not be found." We have not been able to

Re: [PHP] Validating user input

2003-06-06 Thread Misha Peric
Try this: if (is_numeric($txt1) && (float)$txt1<24 && (strlen($txt1)-strpos($txt1,"."))<=3) { echo "True"; } else { echo "False"; }; Misha PHP Genie "Electroteque" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > is_numeric and strlen ? > > -Original Message-

RE: [PHP] Allowing punctuation marks in regular expressions

2003-06-06 Thread Luis Lebron
I tried adding a period to the end but a string will a period still returns false function is_alphanumeric($string) { return (preg_match("/^[A-Za-z0-9.]+$/i", $string)); } -Original Message- From: Dan Joseph [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:42 PM To: Php

Re: [PHP] PHP CLI question

2003-06-06 Thread Mark
Wrap it in a shell script or batch file. Something like: REM ---Start cli.bat--- ./cli/php.exe -c <> %1 %2 %3 %4 %5 %6 %7 %8 %9 @exit REM ---End cli.bat--- --- Monte Ohrt <[EMAIL PROTECTED]> wrote: > Hi Adam, > > I know it can be altered with a command-line switch, but it is the > default tha

Re: [PHP] scheduled tasks

2003-06-06 Thread Mark
If the issue is running a cron job on the server, you could run the cron job or scheduled task on a client with lynx. The client would just need to be on and have access to the server at the time it fires up the task. --- Matt Palermo <[EMAIL PROTECTED]> wrote: > Does anyone know if there is any o

[PHP] ob_get_contents returns FALSE?

2003-06-06 Thread Shawn McKenzie
I can't get ob_get_contents() to return false, or I don't know how to test for it. Help appreciated. The following never echos STARTING!!! ob_end_flush(); if(ob_get_contents() === FALSE) { echo "STARTING!!!"; ob_start(); } also tried: if(ob_get_contents() == FALSE) and:

Re: [PHP] Allowing punctuation marks in regular expressions

2003-06-06 Thread Leif K-Brooks
It's using the case-insensitive switch. Dan Joseph wrote: Also, if you want upper case letters, make sure you add A-Z: -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailin

RE: [PHP] Using register_globals

2003-06-06 Thread Lars Torben Wilson
On Thu, 2003-06-05 at 05:28, Jay Blanchard wrote: > [snip] > Another issue I haven't read so far is that making your script work when > register_globals is off makes it to be more compatible since scripts > using GET and POST array should still work on systems that have > register_globals turned

Re: [PHP] PHP CLI question

2003-06-06 Thread Monte Ohrt
ok, so there are plenty of ways to work around it ;-) I guess my original question should be answered as such? "No, you cannot specify a different configuration file name other than php.ini, you must either hack the C code or supply a workaround at runtime." Monte On Thu, 2003-06-05 at 15:07, Mar

[PHP] Automatic Headers and Footers

2003-06-06 Thread Wendell Brown
Ok guys, I think I have a challenge for you (actually, I don't think this can be done, but I've been proven wrong every time I've made that assumption with php in the past, so I'll ask anyway). Here's the question: Is there a way to have php insert headers and/or footers into all of the html file

[PHP] Re: Approved

2003-06-06 Thread Esteban Fernandez
No file attached.. <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Please see the attached file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Automatic Headers and Footers

2003-06-06 Thread Tom Ray [Lists]
I would have to say yes it can be done. The way *I* would do it is like this: First, I would drop a .htaccess file that allows the HTML files to run through the PHP parser. Like this AddType application/x-httpd-php .php .html The in all of the HTML docs it would look like this: -HTML- -Head- -

Re: [PHP] Automatic Headers and Footers

2003-06-06 Thread Mark
Well, my understanding of mod_rewrite is nonexistent (heck, I'm not even sure that's the correct name), but I believe you do the following. Write a php script to parse the file and output it with the added lines you want where you want them. Then setup apache/php to accept something like http://ww

Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-06 Thread Monty
> both the cookie and URL based session passed over without SSL is insecure. > i'd love to know who told you otherwise. I can't remember the exact sites now, but, the issue was about how much easier it is to spoof Sessions when IDs are passed via the URL as opposed to being stored in a cookie. >

Re: [PHP] Re: move_uploaded_file > 1MB

2003-06-06 Thread Maurício Valente
I couldn't find the option max_body_request somebody knows where it is? Thanks! Maurício Valente "Mauricio Agp5" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > > - Original Message - > From: "Yves Daemen" <[EMAIL PROTECTED]> > Newsgroups: php.general > To: <[EMAIL PRO

Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-06 Thread Leif K-Brooks
I don't have a study in front of me, but I'm fairly sure that cookies are much more likely to be enabled than javascript. I reccomend opening a normal popup using a link with a target, and opening a sized popup and returning false with javascript in an onclick property. Something like: Open po

Re: [PHP] Basic counter & users online..

2003-06-06 Thread Gustavo Del Castillo Meza
Make database increment on the flash movie Look on flash documentation for the loadVars object "Phpspooky" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Glory! > > I'm working on a Counter thing. with a basic Hit Meter and a Users > Online Meter. > The problem I face is.. the

[PHP] Re: Approved

2003-06-06 Thread \[cz\]Emo
I'm glad that no file is attached ... this message is from mail-worm :o) "Esteban Fernandez" <[EMAIL PROTECTED]> pí¹e v diskusním pøíspìvku news:[EMAIL PROTECTED] > No file attached.. > > <[EMAIL PROTECTED]> escribió en el mensaje > news:[EMAIL PROTECTED] > > Please see the attached file. > > -

[PHP] session_start questions.

2003-06-06 Thread Daniel J. Rychlik
Questions, Questions, Questions. Where do I start in understanding how this function works. Ive read the document multiple times, and I am having a bit of trouble figuring out how this function works. I know that you can take session data and hold it somewhere for a user and use that data

Re: [PHP] Automatic Headers and Footers

2003-06-06 Thread Wendell Brown
On Thu, 05 Jun 2003 16:41:01 -0400, Tom Ray [Lists] wrote: >First, I would drop a .htaccess file that allows the HTML files to run >through the PHP parser. Like this AddType application/x-httpd-php .php .html > >-h1--/h1- Yeah, that would work but my goal was to not have to modify the html files

[PHP] $PHP_SELF

2003-06-06 Thread Johnny Martinez
Hi all, I'm trying to get the path and filename of the script I am running. $PHP_SELF doesn't seem to work. I'm running PHP4 on a Windows 2000 system. Thanks in advance. Johnny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $PHP_SELF

2003-06-06 Thread Stephen
Try $HTTP_SERVER_VARS['PHP_SELF'] I'm not yours, so why should I be sincere about it, Stephen Craton Senior Executive Web Developer Mophus.com, Inc. - Original Message - From: "Johnny Martinez" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Thursday, June 05, 2003 4:36 PM

[PHP] Re: [otro] Re: [PHP] $PHP_SELF

2003-06-06 Thread j0rd1 adame
you should also try with dirname(__FILE__) for getting the real path j0rd1 On Thursday 05 June 2003 16:51, Stephen wrote: > Try $HTTP_SERVER_VARS['PHP_SELF'] > > I'm not yours, so why should I be sincere about it, > Stephen Craton > Senior Executive Web Developer > Mophus.com, Inc. > > > - Ori

[PHP] PHP Webmail Solutions?

2003-06-06 Thread Richard Lynch
I'm taking a survey of Webmail Solutions at: http://l-i-e.com/compare/ It's a crude grid of "Solution" and "Feature" with user-voted ratings. If you love a particular solution and care to vote, have at it. If you think I've missed some crucial feature, add it. If you think I've missed some won

[PHP] Trouble with fopen() || Win2k Machine

2003-06-06 Thread CF High
Hey all. Quick question here that's driving me up the wall: Using fopen(), I'm easily able to open files for reading; however, when I attempt to open files for writing using fopen($file_path, "W+"), an error occurs. I'm able to use fopen($file_path, "a+"), but I need to be able to overwrite file

[PHP] Heredoc question

2003-06-06 Thread Sparky Kopetzky
Can one use within the heredoc syntax or is there another way?? I'm trying to dynamically generate email from generic text but with obvious additions, like this: $message = < Lot get_id(); ?> has been approved. Here is the link to the lot: my_message; Robin E. Kopetzky Black Mes

RE: [PHP] Heredoc question

2003-06-06 Thread Jennifer Goodie
> Can one use within the heredoc syntax or is there > another way?? I'm trying to dynamically generate email from > generic text but with obvious additions, like this: http://us4.php.net/types.string says that heredoc acts just like double quoted, which would mean it expands variables, so I would

Re: [PHP] Automatic Headers and Footers

2003-06-06 Thread Robert Cummings
Yes it can be done, using the auto-prepend feature call a script that turns output buffering on. Then in the auto-appended script read the buffer a manipulate ith with the automatic header and footer. Thus you modify the content only and achieve what you want without modifying the actual HTML file

Re: [PHP] Heredoc question

2003-06-06 Thread Sparky Kopetzky
That's fine for that but I have several places that use if's and else's... Sparky - Original Message - From: "Jennifer Goodie" <[EMAIL PROTECTED]> To: "Sparky Kopetzky" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Thursday, June 05, 2003 16:47 Subject: RE: [PHP] Heredoc que

RE: [PHP] Heredoc question

2003-06-06 Thread Jennifer Goodie
> That's fine for that but I have several places that use if's and else's... > > Sparky > > http://us4.php.net/types.string says that heredoc acts just like double > > quoted, which would mean it expands variables, so I would try just Than I would suggest reading the manual page (the link I gave)

[PHP] Re: SQL Select on a DATE field

2003-06-06 Thread Lorenzo Ciani
Sven wrote: > just some thoughts to your script: Dear Sven, Thank you for your comments. Sounds like I really have to study preg_match and regexp!!! -- Lorenzo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Do not display page errors...

2003-06-06 Thread Vernon
Not sure if there is an html tag or php that will tell a page not to display any errors on the page, but does anyone know how to do that? I want to hide any error that might be displayed, JavaScript or otherwise. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

RE: [PHP] Do not display page errors...

2003-06-06 Thread John W. Holmes
> Not sure if there is an html tag or php that will tell a page not to > display > any errors on the page, but does anyone know how to do that? I want to > hide > any error that might be displayed, JavaScript or otherwise. error_reporting(0); This will have no effect on JavaScript errors, though,

[PHP] Re: session_start questions.

2003-06-06 Thread Monty
Sessions seem like voodoo at first, but, once you understand what's really going on, it's actually not that complicated. Here are some links to check out: http://www.zend.com/zend/spotlight/sessionauth7may.php http://www.free2code.net/tutorials/programming/php/4/sessions.php http://www.devshed.c

Re: Re: [PHP] Get the date&time from server

2003-06-06 Thread poetbox
CPT John W. Holmes,您好! Thank you very much,you're right!I've got it just now:-)Perhaps I tested it on localhost yesterday.This function is very good. === 2003-06-05 07:07:00 您在来信中写道:=== >> Can anyone teach me how to get the date >> and time from the web-server,it's not >> chang

[PHP] imagearc() and imageline()

2003-06-06 Thread Dan Helmer
Hello, My question concerns the php function 'imageline' and 'imagearc'. I am = using them to create tables with rounded borders. I thouroughly = examined the specs for these methods and have come to the conclusion = that it is not possible to draw lines or arcs with a pixel width greater = than

RE: [PHP] Allowing punctuation marks in regular expressions

2003-06-06 Thread John W. Holmes
> I tried adding a period to the end but a string will a period still > returns > false > > function is_alphanumeric($string) > { > return (preg_match("/^[A-Za-z0-9.]+$/i", $string)); > } No it doesn't. It's not allowing spaces, though... Is that the problem? ---John W. Holmes... Amazon W

RE: [PHP] Gracefully dealing with Cookies OFF

2003-06-06 Thread John W. Holmes
> > both the cookie and URL based session passed over without SSL is > insecure. > > i'd love to know who told you otherwise. > > I can't remember the exact sites now, but, the issue was about how much > easier it is to spoof Sessions when IDs are passed via the URL as opposed > to > being stored

Re: [PHP] Do not display page errors...

2003-06-06 Thread Leif K-Brooks
You need to set it from a .htaccess file or php.ini to hide parse errors. John W. Holmes wrote: error_reporting(0); -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing Li

[PHP] Is Session a Cookie?

2003-06-06 Thread Miranda, Joel Louie M
Hello, Im quite confused on how things work here. Is session a cookie also? Cookie stores data On your harddrive, does session stores also? -- Thanks, Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Is Session a Cookie?

2003-06-06 Thread Miranda, Joel Louie M
Hey, I got it. 2 types of cookies 1) session cookies - expire at the end of the session 2) persistent cookies - do not expire at the end of the session Thanks, Louie -Original Message- From: Miranda, Joel Louie M Sent: Friday, June 06, 2003 8:39 AM To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] imagearc() and imageline()

2003-06-06 Thread Tom Rogers
Hi, Friday, June 6, 2003, 9:21:23 AM, you wrote: DH> Hello, DH> My question concerns the php function 'imageline' and 'imagearc'. I am = DH> using them to create tables with rounded borders. I thouroughly = DH> examined the specs for these methods and have come to the conclusion = DH> that it i

[PHP] Php handling apache's error directive?

2003-06-06 Thread Miranda, Joel Louie M
Can I use php to be apache's error directive? I mean, im trying to change apache's error directive But at the same time I can only change the page and couldn't see what error it was, I can send it only to a page with an error saying 404, etc but I can't add what file did he type in the url. Any su

Re: [PHP] Php handling apache's error directive?

2003-06-06 Thread Leif K-Brooks
$_SERVER['REQUEST_URI'] Miranda, Joel Louie M wrote: Can I use php to be apache's error directive? I mean, im trying to change apache's error directive But at the same time I can only change the page and couldn't see what error it was, I can send it only to a page with an error saying 404, etc bu

[PHP] Re: using a for loop but it is not working how come

2003-06-06 Thread Monty
> I am having a problem with this script It pulls a list of numbers from > one field in the database (the numbers are in this format > (275,277,278,276) It needs to pull each number and run it through the > function dofunction and then move on to the next one in tell there are > no more to process.

Re: [PHP] How do I display new lines in a textearea?

2003-06-06 Thread Petre Agenbag
Hi Thanks, I DID use \n, BUT, I made a stupid mistake, I did: And the literal ' did not "parse" the \n, replacing with " works fine... On Thu, 2003-06-05 at 16:32, CPT John W. Holmes wrote: > > I want to have a textarea that contains details read from a mysql table, > > but I want to echo

RE: [PHP] PHP - File Edit

2003-06-06 Thread Boaz Yahav
Maybe this can help : A simple configuration file editor to ease you life in setting up php applications. Reads variables from a given file automatically and displays current value. New value will be written to file after submit. http://examples.weberdev.com/get_example.php3?count=1741 or EditPH

[PHP] how is this done: shirtcity.com

2003-06-06 Thread humme-online.de
how do they create the different fonts as a png-file ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Administration packages

2003-06-06 Thread Boaz Yahav
I think you meant http://phpclasses.org and not http://phpclasses.com Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 4:36 AM To: christia

[PHP] PHP + MySQL Free Shopping Cart

2003-06-06 Thread Miranda, Joel Louie M
Hello, Im trying to find a free php+mysql shopping cart, I have tried oscommerce but coudlnt edit some of the scripts. Does anyone know an php script that is very customizable and has a lot features too? And ofcourse its free. Thanks, Louie -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP CLI question

2003-06-06 Thread Marek Kilimajer
Or as Jason noted at compile time. Monte Ohrt wrote: ok, so there are plenty of ways to work around it ;-) I guess my original question should be answered as such? "No, you cannot specify a different configuration file name other than php.ini, you must either hack the C code or supply a workaround

[PHP] Re: php4isapi.dll and header("Location: ...")

2003-06-06 Thread Eric Tonicello
> Have you tried: > ob_end_clean(); > header("Location: http://...";); > to throw away the contents of the output buffer before sending the > Location header, then its nice and clean. Yes I tried ... Other idea ??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

[PHP] Creating alphabetical index links

2003-06-06 Thread Awlad Hussain
How i do create alphabetical index links with data in a table? for example i have table like this: category - apple bread cornflakes doughnut egg with the above records i want to create alphabetical links like click on the letter to check its listing [A] - [B] - [C] - [D] - [E] so if

[PHP] [FYI] phpbooks.com

2003-06-06 Thread Mark Owen
Hi guys, we set up a new resource for organizing all books on PHP in a quick-to-scan, Google-like center. Hope you enjoy it. http://www.phpbooks.com Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [FYI] phpbooks.com

2003-06-06 Thread Awlad Hussain
weldone, Very neat desgin - Original Message - From: "Mark Owen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 06, 2003 10:07 AM Subject: [PHP] [FYI] phpbooks.com > Hi guys, > > we set up a new resource for organizing all books on PHP in a quick-to-scan, > Google-like c

RE: [PHP] Using the .htaccess file to extend the php.ini include path entry

2003-06-06 Thread Ford, Mike [LSS]
> -Original Message- > From: Saint Urho [mailto:[EMAIL PROTECTED] > Sent: 05 June 2003 20:14 > > I want to add some directories to the "include path" entry in the > php.ini file. I have to do this via the .htaccess file > because I do not > have access to the php.ini file on the server

  1   2   >