[PHP] PHP 4.0.4pl1 RPM download ?

2001-02-22 Thread Oguz Demirkapi
Hi, Where can I find PHP 4.0.4pl1 RPM files in order to download ? -- 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] Global variables - please explain me someone.

2001-02-22 Thread Dezider Góra
Guys, I'm former asp guy and a long time Visual FoxPro programer, so I'm carying some habbits and logic from it. I'm really glad I switched to php, but some things are confisung me. One of them are globals. From my understandig, globals are globaly seen and accessed variables from any script ( whe

[PHP] php_self

2001-02-22 Thread Brandon Feldhahn
Why does php self always show php4/php.exe? how do i take it off? -- 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] How to pass variables on php command line ?

2001-02-22 Thread Simon Garner
From: "Leonard Schneider" <[EMAIL PROTECTED]> > I use PHP as script to generate HTML pages using the command > php -q script.php > file.html > > I would like to pass some variables to the PHP script so that it > generates a different HTML file. > I tried the -d option but it seems it doesn't wor

[PHP] How to pass variables on php command line ?

2001-02-22 Thread Leonard Schneider
I use PHP as script to generate HTML pages using the command php -q script.php > file.html I would like to pass some variables to the PHP script so that it generates a different HTML file. I tried the -d option but it seems it doesn't work. Is there any means of doing this ? Leonard Schneider

Re: Re: [PHP] passing variables in javascript

2001-02-22 Thread Simon Garner
From: "Nicholas W. Miller" <[EMAIL PROTECTED]> > > H ... is there anyway to do this without requiring the page > >with the link to use PHP? > > Well if the string you're going to urlencode() is always going to be the same, then just run it through once, grab the encoded version and hard-co

Fwd: Re: [PHP] passing variables in javascript

2001-02-22 Thread Nicholas W. Miller
> H ... is there anyway to do this without requiring the page >with the link to use PHP? > >> >>You have to encode each part of the query string on the URL correctly: >> >>> . "&url=" . >>urlencode("http://www.domain.com/biz/pubs.html#antitrust"); >>?>', 'email','width=410,height=435

[PHP] is there a way to set apache's auth_user from php?

2001-02-22 Thread Bob Mroczka
I would like to have the authenticated user name appear in my apache access web logs but I am not using HTTP authentication. I am using phplib to have better control over the authentication process. Is there a way to set this apache api variable from php code so that apache will log these user na

Re: [PHP] mail prob

2001-02-22 Thread Simon Garner
From: "W.D." <[EMAIL PROTECTED]> > yea I guess that would work better, I dunno tho, I tried setting $from = > $Email and the blasted server still served it up as nobody in the header. > But the rest would make more sense. Yes [EMAIL PROTECTED] would need a copy to > trigger an autoresponse. I kno

RE: [PHP] Counter Help

2001-02-22 Thread Boaz Yahav
WeberDev will fix it ASAP if you tell it the number of the example :) Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Navid Yar [mailto:[EMAIL PROTECTED]] Sent: Friday, February 23, 2001 6:25 AM To: [EM

RE: [PHP] Counter Help

2001-02-22 Thread Navid Yar
Thanks for the great suggestion Simon, I'll definatley keep that in mind. I'm new to PHP, and the counter thing was "copied" off of Weberdev.com. They forgot to add the single quotes around counter. At least this experience helped me learn something new. Again, I thank you for your help and for Ch

Re: [PHP] mail prob

2001-02-22 Thread David Robley
On Fri, 23 Feb 2001 16:52, W.D. wrote: > > First Name: > Last Name: > E-mail Address: > Ask a > Question > > > > > > $from = $FirstName ." ". $LastName; > $subject = $Email; > $message = $Info; > mail("[EMAIL PROTECTED], [EMAIL PROTECTED], $subject, $message, > $from); ?> > You seem to h

Re: [PHP] mail prob

2001-02-22 Thread Simon Garner
From: "W.D." <[EMAIL PROTECTED]> > > First Name: > Last Name: > E-mail Address: > Ask a > Question > > > > > > $from = $FirstName ." ". $LastName; > $subject = $Email; > $message = $Info; > mail("[EMAIL PROTECTED], [EMAIL PROTECTED], $subject, $message, $from); > ?> > See, your syntax

Re: [PHP] mail prob

2001-02-22 Thread W.D.
First Name: Last Name: E-mail Address: Ask a Question > From: "W.D." <[EMAIL PROTECTED]> > > > well this is actually what I did tho, I used an $email var and set it too > > $from which I used mail()and it still came out as nobody > > > > > Can you show us the PHP code you're usin

Re: [PHP] mail prob

2001-02-22 Thread Simon Garner
From: "W.D." <[EMAIL PROTECTED]> > well this is actually what I did tho, I used an $email var and set it too > $from which I used mail()and it still came out as nobody > Can you show us the PHP code you're using please. Ta > > From: "W.D." <[EMAIL PROTECTED]> > > > > > so there is no

Re: [PHP] mail prob

2001-02-22 Thread W.D.
well this is actually what I did tho, I used an $email var and set it too $from which I used mail()and it still came out as nobody > From: "W.D." <[EMAIL PROTECTED]> > > > so there is no way to pull this variable from an email form field? > > > > > Eh? Of course, $from can be set by a form

Re: [PHP] mail prob

2001-02-22 Thread David Robley
On Fri, 23 Feb 2001 16:32, W.D. wrote: > so there is no way to pull this variable from an email form field? > > > From: "W.D." <[EMAIL PROTECTED]> > > > > > I'm using a remote host, and when I call mail() with all the var's > > pulling > > > > values from form fields, it still shows as nobody in f

Re: [PHP] mail prob

2001-02-22 Thread Simon Garner
From: "W.D." <[EMAIL PROTECTED]> > so there is no way to pull this variable from an email form field? > Eh? Of course, $from can be set by a form field if you want. Or a database, or any way you can set a variable. Then pass it to mail(), per my last message. > > > > From: "W.D." <[EMAIL PR

Re: [PHP] mail prob

2001-02-22 Thread W.D.
so there is no way to pull this variable from an email form field? > From: "W.D." <[EMAIL PROTECTED]> > > > I'm using a remote host, and when I call mail() with all the var's pulling > > values from form fields, it still shows as nobody in from header. Is this > a > > server situation? Theyre

Re: [PHP] mail prob

2001-02-22 Thread Simon Garner
From: "W.D." <[EMAIL PROTECTED]> > I'm using a remote host, and when I call mail() with all the var's pulling > values from form fields, it still shows as nobody in from header. Is this a > server situation? Theyre using php4 support and they claim its that I'm not > using appropriate variables i

[PHP] mail prob

2001-02-22 Thread W.D.
I'm using a remote host, and when I call mail() with all the var's pulling values from form fields, it still shows as nobody in from header. Is this a server situation? Theyre using php4 support and they claim its that I'm not using appropriate variables in the function. ___

Re: [PHP]

2001-02-22 Thread Simon Garner
From: "Jonathan Sharp" <[EMAIL PROTECTED]> > well...i just finished some code for dealing with an option box that has all > the states listed... > > > Select State > $ST[] = 'AL'; $ST[] = 'AK'; $ST[] = 'AR'; $ST[] = 'AZ'; > $ST[] = 'CA'; $ST[] = 'CO'; $ST[] = 'CT'; $ST[] = 'DC'; > $ST[] = 'DE';

RE: [PHP]

2001-02-22 Thread Jonathan Sharp
well...i just finished some code for dealing with an option box that has all the states listed... Select State '.$ST[$i]."\n"; }//For ?> First it creates an array $ST that contains a list of all the states (includes PR and DC) Next it loops through that array and if $state has the same value a

[PHP-CVS] cvs: php4 /ext/standard exec.c

2001-02-22 Thread André Langhorst
andre Thu Feb 22 21:08:15 2001 EDT Modified files: /php4/ext/standard exec.c Log: fix stas' last commit, added additional ifdefs PHP_SIGCHILD to fix win32 build Index: php4/ext/standard/exec.c diff -u php4/ext/standard/exec.c:1.50 php4/ext/standard/exec.c:1.

Re: [PHP]

2001-02-22 Thread David Robley
On Fri, 23 Feb 2001 14:46, Peter Houchin wrote: > > if i have a form with a select box in it how an i get the values to > echo a php value ... > ie > > > ACT > VIC > > > can i change it to say > > ACT > VIC > > > so that when the page loads it shows which ever option is in the Da

Re: [PHP] Counter Help

2001-02-22 Thread Simon Garner
From: "Chris Lee" <[EMAIL PROTECTED]> > change > > $row[count] > > to > > $row['count'] > > it thinks the work [count] is some kind of conastant, it doesnt know you > mean (string) 'count' > I have noticed a lot of people do not put quotes on their array indexes (e.g. VBulletin is a prime off

RE: [PHP] Counter Help

2001-02-22 Thread Navid Yar
Chris, It worked! Thanks so much! Weberdev needs to fix it too. Navid -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 4:46 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Counter Help change $row[count] to $row['count'] it thinks the wor

[PHP]

2001-02-22 Thread Peter Houchin
if i have a form with a select box in it how an i get the values to echo a php value ... ie ACT VIC can i change it to say ACT VIC so that when the page loads it shows which ever option is in the Data base? Peter Houchin Sun Rentals [EMAIL PROTECTED]

Re: [PHP] Obtaining a value from dynamic list box

2001-02-22 Thread David Robley
On Fri, 23 Feb 2001 05:21, Claudia wrote: > When selecting a value from a dynamically generated list box, the > subsequent value passed to the table truncates when > there is a blank in the string > > Here is the table structures (Mysql database) > > First table has variable course_name (varchar -

RE: [PHP] -----s--- bit

2001-02-22 Thread Yasuo Ohgaki
If you would like to access /etc/shadow, you probaly make a new extension that interfaces PAM. Is there PAM extensoin for PHP4?? already??. I also would like to get one if there is. -- Yasuo Ohgaki > >Hi, > >Why do you want to access /etc/shadow from your PHP?. As a general >rules of thumb that

Re: [PHP] Adding new data at beginning.

2001-02-22 Thread David Robley
On Fri, 23 Feb 2001 08:34, Jan Grafström wrote: > Hi! > I am trying to put in a new data at the beginning of a file. > I have started like this; > > > > $yourfile = "test.xml"; ( this is the file.) > $fp = fopen ($yourfile, r); > $message = array(1 => '', '', '', '', '', '', > ''); > He

Re: [PHP] passing variables in javascript

2001-02-22 Thread Simon Garner
From: "Nicholas W. Miller" <[EMAIL PROTECTED]> > I have a text link that is coded to open a PHP file in a popup window: > > href="#"onClick="MM_openBrWindow('../email/popup.php?title=B2B+Antitrust:+Op ening+Moves+in+the+Game&url=http://www.domain.com/biz/pubs.html#antitrust',' email','width=410,

[PHP] passing variables in javascript

2001-02-22 Thread Nicholas W. Miller
I have a text link that is coded to open a PHP file in a popup window: http://www.domain.com/biz/pubs.html#antitrust','email','width=410,height=435')">Emailthis article For some reason the $url variables cuts off the anchor, so I only get this: $url = http://www.dttgfsi.com/ebiz/pubs_eviews.h

[PHP] more info: Re: [PHP] file uploads problem?

2001-02-22 Thread Ed Lazor
I was curious, so I uploaded a file using the upload form and transferred the same file via ftp and did a diff on the two files. Here's the results: diff -a Poster.jpg Poster_test.jpg 0a1,2 > Content-Type: image/pjpeg > Does that help? -Ed At 06:01 PM 2/22/2001 -0800, Ed Lazor wrote: >More

php-general Digest 23 Feb 2001 03:00:44 -0000 Issue 528

2001-02-22 Thread php-general-digest-help
php-general Digest 23 Feb 2001 03:00:44 - Issue 528 Topics (messages 41147 through 41251): PHP and PAM 41147 by: Robert Marzon Re: No GIF support in this PHP build??? 41148 by: Jeremy Gillies java servlets 41149 by: Adrian Murphy 41177 by: Michael Stearne

RE: [PHP] -----s--- bit

2001-02-22 Thread Opec Kemp \( Ozemail \)
Hi, Why do you want to access /etc/shadow from your PHP?. As a general rules of thumb that's a pretty bad idea. The reason for this is that /etc/shadow is owned by Root and it's *should* only be readable by Root and noone else. Now in answer to your question "Why your PHP" script can't read /etc

Re: [PHP] file uploads problem?

2001-02-22 Thread Ed Lazor
More info: I transferred an image to the web server via ftp and was able to view it successfully from the web site. Here's an example image that was transferred using a file upload form that won't display properly: http://www.atfantasy.com/attachments/3224/samurai1.jpg When you try to view i

[PHP] Location

2001-02-22 Thread Brandon Feldhahn
Im making a website and i want the viewer to know were he of she is, what do i need to do to make a location bar (home > serverices ect...) with the $PHP_SELF command, i wasent able to figure it out so i am asking assistance from another person. -- PHP General Mailing List (http://www.php.net/)

[PHP] file uploads problem?

2001-02-22 Thread Ed Lazor
File uploads -was- working. I reinstalled the server with the RedHat packages apache-1.3.14-3.rpm php-4.0.4pl1-3.rpm php-mysql-4.0.4pl1-3 I'm using the same scripts, but file uploads is not working now. Correction... the file uploads to the server, but doesn't view pr

[PHP-CVS] cvs: php4 /ext/midgard preparser-scanner.l

2001-02-22 Thread David Guerizec
davidg Thu Feb 22 17:08:44 2001 EDT Modified files: /php4/ext/midgard preparser-scanner.l Log: misbehavior of the preparser that translated (eg) myeval() into mymgd_eval() Index: php4/ext/midgard/preparser-scanner.l diff -u php4/ext/midgard/preparser-scan

Re: [PHP] Counter Help

2001-02-22 Thread Chris Lee
change $row[count] to $row['count'] it thinks the work [count] is some kind of conastant, it doesnt know you mean (string) 'count' -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Navid Yar"" <[EMAIL PROTECTED]> wrote in mess

Re: [PHP] Problem using META tag refresh for page re-directs

2001-02-22 Thread Chris Lee
yes I know what your saying. trans-sid will not work when the url is absolute ie. or index or header("Location: http://$SERVER_NAME/index.php"); header redirects *require* absolute url's so your going to have to add the phpsessid yourself, ie. http://$SERVER_NAME/index.php?$SID"); ?> rem

[PHP] Best Way To Control Forms

2001-02-22 Thread Jonathan Sharp
I have a few sites which contain forms that span multiple screens (all contained in two scripts though...) theforms.php The html for the form. The html for the form. forms.php showScreen1(); break; case 'saveScreen1':

RE: [PHP] Problem using META tag refresh for page re-directs

2001-02-22 Thread Johnson, Kirk
Thanks, Chris. This touches on another problem. Have you tried this with session cookies disabled in your browser? Can you pass the session ID using the header function? I can't seem to, but I *can* pass it using SID appended to the URL in the META tag. This is one reason I wanted to stay with the

[PHP] Counter Help

2001-02-22 Thread Navid Yar
Can someone help me with this script? It is an example from weberdev.com. I ran it and it gave me the following error... -- Warning: Use of undefined constant count - assumed 'count' in c:\windows\desktop\localhost\examples\counter\counter1.php on line 27 25 The number 25 is the correct number f

[PHP] Problems sending mail to aol with the mail() function

2001-02-22 Thread Steve Kenshalo
Hello, I am working on a PHP script for an e-commerce site that mails out calling card pin numbers after somebody purchases them online. Turing testing I not noticed that aol users were not receiving the messages. AOL seems to be filtering them out without sending a bounce or anything. We tried i

RE: [PHP] books

2001-02-22 Thread Navid Yar
I think Wrox is a very good reference for any language. I have an XSLT reference from Wrox and it has helped me tremendously because it is so comprehensive (includes online reference material). I'm sure the PHP book from Wrox is just as good. Another great book for PHP, especially for beginners, i

Re: [PHP] PDF Problems

2001-02-22 Thread php3
Addressed to: Mike Tuller <[EMAIL PROTECTED]> php mailing list <[EMAIL PROTECTED]> ** Reply to note from Mike Tuller <[EMAIL PROTECTED]> Thu, 22 Feb 2001 09:05:34 -0600 > > Do you have any idea when 4.0.5 will be out? If nothing goes wrong, they hope to do it around the first of

Re: [PHP] Ok, this might make more sense

2001-02-22 Thread Chris Lee
Your asking a huge question and expecting a small answer ie. php_save(); the anser your looking or is not small, im sorry. your asking a big question, and with all big questions comes a big answer. Do you know how to use db's ? mysql? postgres? I'll assume you do. save you changes in a db, pull

Re: [PHP] How do I request a new feature?

2001-02-22 Thread php3
Addressed to: "Ide, Jim" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Ide, Jim" <[EMAIL PROTECTED]> Thu, 22 Feb 2001 13:48:34 -0500 > > > Hi - > > How can/should I contact the developers of PHP > to request that they add a new feature to PHP? Submit a bug report at

Re: [PHP] Ok, this might make more sense

2001-02-22 Thread Phillip Bow
You could have the page output options to a formatted plain text file. Sample Format { bold = 0; italic = 1; } and then when the page loads it reads in the options from that file and alters the page accordingly. For extra credit use a database rather than a plain text file, but if you haven't do

Re: [PHP] Arrays -- How do I insert a pair of data into an array

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 22:58, Scott Walter wrote: > I am attempting to insert a set of data (actually a pair) into an > array, without much success. I would like to insert the data set > ("course number", "course title") into a numerically indexed array so > that when I want to output the a

[PHP] Ok, this might make more sense

2001-02-22 Thread YoBro
Hi, My last message on this topic was a bit hard to translate. So here is the thought out version. 1.I have a page on a server called admin.php (protected by htaccess for admin use only) 2.This page holds variables that are changed by form elements. (Checkboxes etc) And this in tu

Re: [PHP] Regex problems.....

2001-02-22 Thread Phillip Bow
You should either do this with ereg, or strtolower and not a combination of the two, and in all actuality strtolower is specifically desinged to do this very easily so I would go with it. "; $contents = strtolower($contents); ?> Should do what you want. -- phill "Ian LeBlanc" <[EMAIL PROTECTED

Re: [PHP] String manipulation with ereg_replace

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 23:42, Simon Garner wrote: > This should do the trick (untested!): > > $contents = " alt=ThisOneReallyNeedsToBeAllLowercase.gif>"; > > $contents = preg_replace("/([-_a-zA-Z0-9]+)\.gif/e", > "strtolower('\\1') . '.gif'", $contents); > ?> simpler that "/([-_a-

[PHP] Regex problems.....

2001-02-22 Thread Ian LeBlanc
Guys/Gals: For some reason too long to explane .. i have this site that i need to make all the image names in an image src all lowercase.. Here is what I have so far. Please someone tell me what I am doing wrong. "; $contents = EREG_REPLACE("([-_a-zA-Z0-9]+).gif",strtolower("\\0"),$contents);

Re: [PHP] Problem using META tag refresh for page re-directs

2001-02-22 Thread Chris Lee
if you have output buffering on in php.ini output_bufffering = on cobine this with http://$SERVER_NAME/index.php"); exit(); ?> and youve got a great cobination, zero html will be sent to the browser, just the header, the browser will refresh for you. try it, works better then meta tags.

Re: [PHP] MySQL execution order?

2001-02-22 Thread Mark Maggelet
On Thu, 22 Feb 2001 17:41:43 -0500, ..s.c.o.t.t.. [gts] ([EMAIL PROTECTED]) wrote: >mysql executes the queries in the order it recieves >them, (so if your program's logic executes a select >before an update, you'll never see results from the >update in your select... at least not normally :) well

Re: [PHP] books

2001-02-22 Thread Phillip Bow
Personally I started with the Wrox Professional PHP Programming guide and still use it today(its sittin in front of me). I see they have one out now for php4 which is around $60 which I am probably going to order just to keep up to date. They cover the basics and then go into some more specific

[PHP] Problem using META tag refresh for page re-directs

2001-02-22 Thread Johnson, Kirk
I have been using the code below to do my page redirects for a year and a half with good results. Recently, some users have reported to me that the actual code is being partially displayed to the screen, and the re-direct is not occurring. It is as if the server stops serving the page before it is

Re: [PHP] MySQL execution order?

2001-02-22 Thread ..s.c.o.t.t.. [gts]
mysql executes the queries in the order it recieves them, (so if your program's logic executes a select before an update, you'll never see results from the update in your select... at least not normally :) Are you able to access the MySQL monitor program? if so, verify that the data really does

Re: [PHP] String manipulation with ereg_replace

2001-02-22 Thread Simon Garner
From: "Ian LeBlanc" <[EMAIL PROTECTED]> > > I am working on a site that has over 1000 pages and all the images need to > be made lower case in the HTML. > Here is what I have so far. Please someone tell me what I am doing wrong. > > > $contents=" alt=ThisOneReallyNeedsToBeAllLowercase.gif>"; > >

Re: [PHP] Asking Sth about PHP

2001-02-22 Thread Toby Butzon
You can also use PHP for shell scripting - just add #!/path/to/php -q as the first line of your script. Note: You will still need to enclose all PHP scripting in tags. Here's an example: file: phpinfo.phpshell The preceding information was returned by PHP info. [EOF] Then run the followi

RE: [PHP] Arrays -- How do I insert a pair of data into an array

2001-02-22 Thread Javier Muniz
Try: echo $array[$i][course_num] . ' ' . $array[$i][course_title]; -jm -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] Arrays -- How do I insert a pair of data into an array I am attemptin

RE: [PHP] security

2001-02-22 Thread Javier Muniz
Those are the only two methods I'm aware of... Zend does offer it's Encoder Unlimited on a subscription basis though that would allow you to encode all of your users scripts (they actually list that as problem for which the encoder is a good solution). -jm -Original Message- From: Gustav

[PHP] Adding new data at beginning.

2001-02-22 Thread Jan Grafström
Hi! I am trying to put in a new data at the beginning of a file. I have started like this; $yourfile = "test.xml"; ( this is the file.) $fp = fopen ($yourfile, r); $message = array(1 => '', '', '', '', '', '', ''); Here I need some code to get the output look like this"" print_r($mes

Re: [PHP] filenames on file download

2001-02-22 Thread Chris Lee
no problem :) Header("Content-Type: {$prod_r["file_type"]} "); Header("Content-Disposition: filename='{$prod_r["file_name"]}' "); echo $prod_r["file"]; this code works perfect for me, just modify the variables to meet yours. -- Chris Lee ""indrek siitan"" <[EMAIL PROTECTED]> wrot

[PHP] Arrays -- How do I insert a pair of data into an array

2001-02-22 Thread Scott Walter
I am attempting to insert a set of data (actually a pair) into an array, without much success. I would like to insert the data set ("course number", "course title") into a numerically indexed array so that when I want to output the array I can reference it like so: echo("$array[$i]["c

Re: [PHP] security

2001-02-22 Thread Gustavo Vieira Goncalves Coelho Rios
Javier Muniz wrote: > > Encode them, or set filesystem permissions in such a way (suggest using > groups) to allow apache to read files but not other users. > > For instance, if your users are all members of the users group, and apache > runs as nobody, then set your files to be owned by the use

[PHP] best slashdot?

2001-02-22 Thread Jaxon
I hate to post flamebait, but I genuinely want to know - what have people liked as far as a slasdot style PHP apps? I would love one that has integrated user management and mailing lists :) TIA, and sorry for the YAWIB (yet another which-is-best) post. regards, jaxon -- PHP General Mailing L

[PHP] filenames on file download

2001-02-22 Thread indrek siitan
Hi, I'm storing files in DB. basically (what's important in this case), I have two columns: file_name - contains the original filename file_src - blob which contains the actual file now the user clicks on a link something like download.php?file_id=123 and the php script will spit out

Re: [PHP] Sessions and naming a file with SID

2001-02-22 Thread Martin A. Marques
Mensaje citado por: Brandon Orther <[EMAIL PROTECTED]>: > Hello, > > Is there a way to start a session and then save a temp file with the > name of > the Session ID? I thought that was what it did. :-) Read the session manual, the papers published in phpbuilder and check the session options in

RE: [PHP] books

2001-02-22 Thread Boaz Yahav
Check out : http://www.weberdev.com/index.php3?GoTo=ShowShoppingItems.php3%3FMasterCateg ory%3D156%26SubCategory%3D106%26SubCategoryName%3DPHP%26MainCategoryName%3DB ooks Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original M

[PHP] Annoucement: Smarty template engine 1.3.0 released

2001-02-22 Thread Monte Ohrt
Smarty homepage: http://www.phpinsider.com/php/code/Smarty/ Changes: - built-in caching support (Monte, Andrei) - moved license from GPL to LGPL (Monte) - implemented workaround for PHP "feature" that eats carriage returns if the PHP tag is at the end of the line. (Andrei)

Re: [PHP] concatenate vars?

2001-02-22 Thread W.D.
Thanks, do you know if making multiple statements to eregi in line 3 is possible? 1. if(...something...) 2.{ 3. (eregi("stuff1", $one)("stuff2", $two)("stuff3", $three)) ? 4. do something : do something else; _ Do You Yahoo!? Get

[PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-22 Thread David Guerizec
davidg Thu Feb 22 12:32:20 2001 EDT Modified files: /php4/ext/midgard midgard.c Log: Registering Midgard constants. Index: php4/ext/midgard/midgard.c diff -u php4/ext/midgard/midgard.c:1.13 php4/ext/midgard/midgard.c:1.14 --- php4/ext/midgard/midgard.c:1.

Re: [PHP] phpPgAdmin ?

2001-02-22 Thread Martin A. Marques
Mensaje citado por: Oguz Demirkapi <[EMAIL PROTECTED]>: > > Hi, > > We have a PostgreSQL and Php 4.02 preinstalled Cobalt RaQ4r server and > I > want to manage PostgreSQL via pgPgAdmin. But when I try to login I got > error such as : > > > Fatal

RE: [PHP] security

2001-02-22 Thread Javier Muniz
Encode them, or set filesystem permissions in such a way (suggest using groups) to allow apache to read files but not other users. For instance, if your users are all members of the users group, and apache runs as nobody, then set your files to be owned by the user with the nobody group (chown us

Re: [PHP] concatenate vars?

2001-02-22 Thread Philip Olson
> I need to combine two variables which are set to two form field values and > will be put into $from of mail(). Should it be $from = "$varOne . $varTwo" > ? Check out : Using Strings : -

[PHP] security

2001-02-22 Thread Gustavo Vieira Goncalves Coelho Rios
How may i prevent my users from reading others php scripts? -- 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] books

2001-02-22 Thread Philip Olson
"PHP Developers Cookbook" is my favorite, it and many others are listed here : http://www.php.net/books.php The WROX books are popular. Also, check out the archives for previous discussions : http://marc.theaimsgroup.com/?l=php-general&r=1&w=2&q=b&s=book Regards, Philip Olson http

[PHP] concatenate vars?

2001-02-22 Thread W.D.
I need to combine two variables which are set to two form field values and will be put into $from of mail(). Should it be $from = "$varOne . $varTwo" ? also a way to make if(.something) (eregi("blah", $one)("blah2", $two)("blah3", $three));

Re: [PHP] Troubleshooting Strange Problem

2001-02-22 Thread Philip Olson
It could have to do with the register_globals setting (within php.ini) as the following : Will print nothing if register_globals is off. The following will print it correctly, whether on or off (assuming track_vars is on) : Perhaps one script takes register_globals and track_vars into

[PHP] Solaris with 100 VHosts -- death

2001-02-22 Thread Dan Debertin
I'm seeing various posts to mailing lists in the past on this subject, but there doesn't appear to be a fix. I'd love it if one of you can help out. We're running PHP 4.0.0 and Apache 1.3.12 on Solaris 7. PHP runs fine with 99 VirtualHosts, but when we add our 100th, every site on the server spits

Re: [PHP-I18N] International support

2001-02-22 Thread Hironori Neal Sato
(I'm only cc'ing to php-i18n) On Thu, Feb 22, 2001 at 10:22:37AM -0800, Soma Interesting wrote: >I'm currently working a project that is intended to handle Japanese >character sets - and now I'm told ideally iMode too. :) The iMode isn't >such an issue at the moment - but the article below has

[PHP] File command

2001-02-22 Thread Liam Gibbs
I'm using the file command, which reads an entire file and sticks it into an array. I'm trying to read a file from mp3.com, and what I get back is basically that the connection is refused. Doesn't it just load it up like any browser would load it? Is there an equivalent command that wouldn't try t

[PHP] books

2001-02-22 Thread Gustavo Vieira Goncalves Coelho Rios
May some suggest a kick ass book on php? Thanks a lot for your time and cooperation. best regards, Gustavo Rios PS: Any one here from Brazil/South America ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: [PHP] variable sent using pots is cat!

2001-02-22 Thread Jason Stechschulte
On Thu, Feb 22, 2001 at 06:36:06PM -, kaab kaoutar wrote: > i have a problem! > i send a variable from one page to another page using post method! > but when a variable is like composed of two words , the other page receives > only the first word ! > can u please help?! Look at the form that

[PHP] Troubleshooting Strange Problem

2001-02-22 Thread Ben Ocean
Hi, I moved my server, changed the IP addresses, etc., and now I'm having strange problems with PHP. Not on all scripts, just some. Scripts that worked just fine before I moved it. Most notably, I'm working with Phorm < http://holotech.net > and I can no longer pass certain variables. Again: t

php-general@lists.php.net

2001-02-22 Thread Ernest E Vogelsinger
At 20:11 22.02.2001, Tom Harris said: [snip] >I want to assign a value using the url however the value contains both a ? >and an & so PHP (or the browser) seems to get confused. > >Here's an example: > >http://www.mysite.com/index.php?id=23&url=http://www.an

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 11:18:10 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Benjamin Schulz Index: CVSROOT/avail diff -u CVSROOT/avail:1.97 CVSROOT/avail:1.98 --- CVSROOT/avail:1.97 Thu Feb 22 11:05:45 2001 +++ CVSRO

php-general@lists.php.net

2001-02-22 Thread Javier Muniz
URLs must be encoded if they contain special characters (and should be encoded always). See urlencode(). -jm -Original Message- From: Tom Harris [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 11:12 AM To: [EMAIL PROTECTED] Subject: [PHP] Passing values containing a ? and a

php-general@lists.php.net

2001-02-22 Thread Tom Harris
I want to assign a value using the url however the value contains both a ? and an & so PHP (or the browser) seems to get confused. Here's an example: http://www.mysite.com/index.php?id=23&url=http://www.anothersite.com/file.ph p?qid=234&forum=4 Everything after url= should be the value of $url

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 11:05:45 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Revoke CVS account - the confirmation email bounced Index: CVSROOT/avail diff -u CVSROOT/avail:1.96 CVSROOT/avail:1.97 --- CVSROOT/avail:1.96 Thu Feb 22 11:

[PHP] Templates & PHP

2001-02-22 Thread Maamiin
Where can I find some help, how to make & use page templates on my webpages??? Needs this some add-ons to my PHP3(Linux-main)/PHP4(win98+pws)? THNX -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] Sessions and naming a file with SID

2001-02-22 Thread Ernest E Vogelsinger
At 19:55 22.02.2001, Brandon Orther said: [snip] >Is there a way to start a session and then save a temp file with the name of >the Session ID? [snip] RTFM: session_start(); session_register(); Controlled by

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 11:01:21 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Jaemin Byon Index: CVSROOT/avail diff -u CVSROOT/avail:1.95 CVSROOT/avail:1.96 --- CVSROOT/avail:1.95 Thu Feb 22 10:59:40 2001 +++ CVSROOT/a

Re: [PHP-I18N] International support

2001-02-22 Thread Peter Van Dijck
"Ok the next part of this message is an article I thought would be generally interesting so I'm not hesitating to post it entirely. It was forwarded to me so I'm not sure of the source." here: http://www.zend.com/zend/cs/newbold.php Peter ~ http://liga1.com ,a weblog on: -

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:59:40 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Adonias Malosso Index: CVSROOT/avail diff -u CVSROOT/avail:1.94 CVSROOT/avail:1.95 --- CVSROOT/avail:1.94 Thu Feb 22 10:56:52 2001 +++ CVSRO

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:56:53 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Carlos Eduardo Vargas Miranda Index: CVSROOT/avail diff -u CVSROOT/avail:1.93 CVSROOT/avail:1.94 --- CVSROOT/avail:1.93 Thu Feb 22 10:53:51

  1   2   3   >