Re: [PHP] Secure coockie is not available as variable

2003-03-25 Thread Ernest E Vogelsinger
At 03:55 25.03.2003, Alexander Weber said: [snip] I send a secure cookie an it should be available as varible setcookie(pbas_usr, $row[usr], time()+600, , , 1); but the varable is empty. If it send the header without secure flag the cookie works well

[PHP] php regexp question

2003-03-25 Thread cpaul
hi i've made a small php site that is searching against french documents stored in a mysql database. when it comes to rendering search results, the client has asked if the words that were searched for can be highlighted. no problem! i thought. just do a regexp replace and wrap a b tag

[PHP] installing cUrl

2003-03-25 Thread Diana Castillo
Hi, I am running windows XP and I am looking for a way to install Curl, cant seem to find a version that I can easily install just by clicking on Setup.exe , does anyone know how to install it on XP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] array into another site

2003-03-25 Thread Fredrik
Hi I have an PHP array and want to send it into another PHP site. $arr = array(251,1,23,54,15,135,1651,156,13,123,321,123,32,54,654,456,32,1); ? script language=JavaScript type=text/javascript a href=\javascript: void(vindu2 =

Re: [PHP] array into another site

2003-03-25 Thread Justin French
1. Missing an equal sign: ?=$ not ?$ window.open('view.php?arr=?=$arr;?','windo... 2. Check out serialize() http://www.php.net/manual/en/function.serialize.php window.open('view.php?arr=?=serialize($arr)?','windo... 3. However, this creates a URL which isn't particularly URL friendly (not

[PHP] problems with rename() - permission denied

2003-03-25 Thread Christian Rosentreter
Hello, I've a small problem, which mades me crazy... :\ I'm trying to rename() a swapfile to real destination file (atomic update). It works on differnt environments very well. Sadly not on my ISP-server I've added an chmod($swapfile,0777), but this has not solve the problem. The directories

[PHP] Spooky numbers

2003-03-25 Thread Chris Blake
Greetings learned PHP(eople), This is what my lines look like in my text file : === Source : D:\ Dest : E:\ Files : *.* Options : *.* /S /E /V /R:5 /W:5 When I run the

[PHP] Re: problems with rename() - permission denied

2003-03-25 Thread liljim
Christian Rosentreter wrote: Hi Christian, I've a small problem, which mades me crazy... :\ I'm trying to rename() a swapfile to real destination file (atomic update). It works on differnt environments very well. Sadly not on my ISP-server I've added an chmod($swapfile,0777), but this has

Re: [PHP] array into another site

2003-03-25 Thread Ernest E Vogelsinger
At 11:21 25.03.2003, Justin French said: [snip] 1. Missing an equal sign: ?=$ not ?$ window.open('view.php?arr=?=$arr;?','windo... 2. Check out serialize() http://www.php.net/manual/en/function.serialize.php

[PHP] NewB Q on Arrays.

2003-03-25 Thread inpho
Hey All, I'm still a newB in php and mysql so I'm asking for your patience up front. i want to get a list of results from an array, which I can do with: $result=mysql_query(select * from mvlogtbl,$db); while ($row=mysql_fetch_array($result)){ echo $row[uid] $row[mvid]; } basically what I have

Re: [PHP] count up from 7

2003-03-25 Thread David T-G
Richard -- ...and then Richard Whitney said... % % Braindead! Hey, who are you callin' names?!? % % I need to evaluate a number if greater than 7 and add a value per increment. Greater than seven is easy. Adding a value is easy. Per increment can be a little tricky but we'll assume for

[PHP] timout in mail script

2003-03-25 Thread Wilbert Enserink
Hi all, I have this script sending 1000 personalized emails. However when I press the start button in my browser so the script starts mailing I get no response for a long time from the script. Most of the time I don't get any response. When I retrieve all the emails I just sent (to myself,

Re: [PHP] mail() Bcc:

2003-03-25 Thread David T-G
John, et al -- One more nit to add to this... ...and then CPT John W. Holmes said... % ... % % You can do it like this: % % $headers = From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: % [EMAIL PROTECTED]; Yes, figuring that the added line break is just because of a dumb mail program :-0 % % or

Re: [PHP] timout in mail script

2003-03-25 Thread Ernest E Vogelsinger
At 12:24 25.03.2003, Wilbert Enserink spoke out and said: [snip] I have this script sending 1000 personalized emails. However when I press the start button in my browser so the script starts mailing I get no response for a long time from the script. Most

Re: [PHP] timout in mail script

2003-03-25 Thread W. Enserink
Hi ernest, I don't think it is looping, cause I also tried it with 10 and 100 and 250 emails. No problems there...! regards Wilbert - Original Message - From: Ernest E Vogelsinger [EMAIL PROTECTED] To: Wilbert Enserink [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, March 25,

Re: [PHP] Viewing PHP pages

2003-03-25 Thread J.Veenhuijsen
What about naming your scripts .php4 that should work. Jochem Andy wrote: Hi Ben They say that the server is set up for PHP4, and they say it is something to do with my scripts. Not sure I believe them. My pages have the extension .php Andy Ben Edwards [EMAIL PROTECTED] wrote in message

Re: [PHP] Finding out which file is retrieved over HTTP

2003-03-25 Thread Jens Lehmann
David Otton wrote: On Sun, 23 Mar 2003 21:21:39 +0100, you wrote: The following short script retrieves a file over HTTP: $url = 'http://www.example.com/'; implode('',file($url)); // or file_get_contents() Now I'd like to find out which file was really retrieved, for instance

Re: [PHP] timout in mail script

2003-03-25 Thread Ernest E Vogelsinger
At 12:53 25.03.2003, W. Enserink spoke out and said: [snip] I don't think it is looping, cause I also tried it with 10 and 100 and 250 emails. No problems there...! [snip] Well if you report receiving 1300+ mails

[PHP] php4isapi.dll

2003-03-25 Thread Robin
Hello I am trying to install Cacti and it requires PHP.I have followed the instructions which require me to add the above dll and php extension into IIS. However, i have searched my entire hardrive, but can not find this dll so i cant continue. Please can somebody help? Thanks Robin --

Re: [PHP] php4isapi.dll

2003-03-25 Thread Nikunj Virani
Download PHP from http://www.php.net/downloads.php. You will find php4isapi.dll with it. Regards, Nikunj Virani - Original Message - From: Robin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 5:51 PM Subject: [PHP] php4isapi.dll Hello I am trying to install

[PHP] PHP grep

2003-03-25 Thread Chris Blake
Greetings learned PHP(eople) I`m using the following to strip values out of a file, however, the file I`m accessing contains multiple instance of the search criteria, and I only wanna return the first instance I`m just getting an empty variable and can`t figure it out... $criteria = `grep

Re: [PHP] php4isapi.dll

2003-03-25 Thread Robin
Thanks Nikunj Which actual download is it? The zip or the installer? Robin Nikunj Virani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Download PHP from http://www.php.net/downloads.php. You will find php4isapi.dll with it. Regards, Nikunj Virani - Original Message -

[PHP] curl

2003-03-25 Thread Diana Castillo
How can I tell if I have successfully installed curl on my windows XP machine? What is the syntax for sending a test curl command? I tried this and got a syntax error: curl http://www.netscape.com/; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] php4isapi.dll

2003-03-25 Thread Nikunj Virani
I prefer and use Zip file. Regards, Nikunj - Original Message - From: Robin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 6:06 PM Subject: Re: [PHP] php4isapi.dll Thanks Nikunj Which actual download is it? The zip or the installer? Robin Nikunj Virani

Re: [PHP] curl

2003-03-25 Thread Nikunj Virani
What does phpinfo() function says ? It should show you the curl module enabled. Regards, Nikunj Virani - Original Message - From: Diana Castillo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 6:06 PM Subject: [PHP] curl How can I tell if I have successfully

Re: [PHP] Finding out which file is retrieved over HTTP

2003-03-25 Thread Ernest E Vogelsinger
At 13:08 25.03.2003, Jens Lehmann spoke out and said: [snip] A thing which seemed a bit confusing to me is that if I open a non-existing website (fopen('http://www.amazon.de/nonsensestuff')) I always get an error message Success. It's the same thing if I

[PHP] substr() on part an ereg() capture

2003-03-25 Thread Justin French
Hi, I have this ereg to turn URLs into links: eregi_replace(([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/=]), a href=\\\1://\\2\\3\ {$t}\\\1://\\2\\3/a, $str); ... found it in the manual i think, or maybe on weberdev.com examples Anyhoo, it places the whole link in between the a... and /a,

Re: [PHP] substr() on part an ereg() capture

2003-03-25 Thread skate
couldn't you just do substr( $blah, 0, 55) or something similar? (i'm crap with syntax, so that's just off my head...) -skate- fatcuban.com - Original Message - From: Justin French [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 1:24 PM Subject: [PHP]

[PHP] Benchmarking

2003-03-25 Thread reven
Hi, I've been making a web ap PHP based, but I fear the number of arrays it has is too big. Is there any way to benchmark a script, or are there any recomendations or standards about how much time execution takes and how many resources it takes? Thanks, Reven -- PHP General Mailing List

[PHP] connecting to mysql db

2003-03-25 Thread Iggy
hi, I am trying to play and learn php along with mysql and I have a question about connecting to a db. Is the following code necessary on every php page where I am retrieving some data from a db or is there any way to connect once (something like index.php) and have that connection open through

RE: [PHP] connecting to mysql db

2003-03-25 Thread Rankin, Randy
Place the code in a file ( ie; dbcon.php ) and include that file in any page which may need it using an include statement: include(dbcon.php); Randy -Original Message- From: Iggy [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 7:50 AM To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] connecting to mysql db

2003-03-25 Thread Iggy
This really doesn't explain me much. I mean the difference between having that code on every page or calling it from an external page doesn't tell me if it is realy necessary to do it all the time. I guess I am looking for more generic explanation of the whole process rather than what you said.

RE: [PHP] connecting to mysql db

2003-03-25 Thread Mirco Ellis
No dude. Create a file called whatever.inc that includes the code that you are using to connect to the db. In every php script ,that needs this connection to the db, you simply put: ?php include(whatever.inc); ? Mirco Ellis I-Soft Solutions e-mail: [EMAIL PROTECTED] Tel: +27414847161

RE: [PHP] connecting to mysql db

2003-03-25 Thread Jon Haworth
Hi Iggy, I mean the difference between having that code on every page or calling it from an external page doesn't tell me if it is realy necessary to do it all the time. Yes, you do have to connect to the database in every script that needs to access it. Usually this is done at the start

RE: [PHP] connecting to mysql db

2003-03-25 Thread Mirco Ellis
This is the only way I know and probably the safest. This way you know there is connectivity because it is loaded rigth at the beginning. Mirco Ellis I-Soft Solutions e-mail: [EMAIL PROTECTED] Tel: +27414847161 -Original Message- From: Igor Frankovic [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] openssl php 4.3.1

2003-03-25 Thread The Doctor
On Mon, Mar 24, 2003 at 11:15:05PM -0500, Kalin Mintchev wrote: hi all, i have problems getting fopen() and fsockopen() to work over https.. here is the problem.. from the phpinfo: OpenSSL support enabled OpenSSL Version OpenSSL 0.9.6h 5 Dec 2002 OpenSSL 0.9.6h has a

Re: [PHP] connecting to mysql db

2003-03-25 Thread skate
leaving the connection open creates security questions, and also leaves resources open, what if a user closes his browser window, how do you know to close the connection? if you really want to make it simple, you can edit your php.ini to have the username and password as default in there, but

[PHP] session id

2003-03-25 Thread Iggy
can somebody tell me why I am getting this: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:\inetpub\wwwroot\search.php:8) in c:\inetpub\wwwroot\search.php on line 21 Warning: session_start() [function.session-start]:

Re: [PHP] connecting to mysql db

2003-03-25 Thread Chris Hayes
At 14:49 25-3-2003, you wrote: hi, I am trying to play and learn php along with mysql and I have a question about connecting to a db. Is the following code necessary on every php page where I am retrieving some data from a db or is there any way to connect once (something like index.php) and have

php-general Digest 25 Mar 2003 14:41:21 -0000 Issue 1959

2003-03-25 Thread php-general-digest-help
php-general Digest 25 Mar 2003 14:41:21 - Issue 1959 Topics (messages 140912 through 140962): Secure coockie is not available as variable 140912 by: Alexander Weber 140924 by: Ernest E Vogelsinger Charset problem with DBF database 140913 by: Alexander Weber ho to

Re: [PHP] session id

2003-03-25 Thread Ryan Gibson
On 25/3/03 2:37 pm, Iggy [EMAIL PROTECTED] wrote: can somebody tell me why I am getting this: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:\inetpub\wwwroot\search.php:8) in c:\inetpub\wwwroot\search.php on line 21

[PHP] Re: session id

2003-03-25 Thread Michael Heuser
The function session_start is sending a cookie. This means that you can't echo anything before. Its the same rules as with setcookie. Iggy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] can somebody tell me why I am getting this: Warning: session_start() [function.session-start]:

[PHP] Disabling output control when using ob_start

2003-03-25 Thread Michael Heuser
I posted this problem a week ago, but no one answered so I try again: Is there a way to disable the call back function set by ob_start? I tried: ob_end_flush(); ob_end_clean(); ob_implicit_flush(true); Nothing seams to work. I can't detect the call back function and I can't prevent it either.

Re: [PHP] session id

2003-03-25 Thread CPT John W. Holmes
can somebody tell me why I am getting this: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:\inetpub\wwwroot\search.php:8) in c:\inetpub\wwwroot\search.php on line 21 Warning: session_start()

Re: [PHP] Disabling output control when using ob_start

2003-03-25 Thread Chris Hayes
At 15:41 25-3-2003, you wrote: I posted this problem a week ago, but no one answered so I try again: Is there a way to disable the call back function set by ob_start? I tried: ob_end_flush(); ob_end_clean(); ob_implicit_flush(true); Nothing seams to work. I can't detect the call back function and

Re: [PHP] php regexp question

2003-03-25 Thread Marek Kilimajer
Just an idea: In $string replace any occurence of รง to c, search for offsets of francoise, and then add bold tags at the offsets (and end tags at offsets +strlen('francoise')) in the original string. cpaul wrote: hi i've made a small php site that is searching against french documents stored

[PHP] Changing variables in a text file

2003-03-25 Thread Luis Lebron
I have a text file with a series of project variables. For example $var1=; $var2=; $template=blue; $anothervar=foo; Let say I need to change $template=blue; to $template=red;. How can I do that keeping the rest of the file intact? thanks, Luis

Re: [PHP] Changing variables in a text file

2003-03-25 Thread Marek Kilimajer
If you know what is suposed to be in the file you can simply build up a new file. If you don't know what is in there but only that you need to change this to that, use file functions and regexes. You might also consider using an array instead of plain variables, so your file will become

Re: [PHP] PHP grep

2003-03-25 Thread David T-G
Chris, et al -- ...and then Chris Blake said... % % Greetings learned PHP(eople) Hiya! % % I`m using the following to strip values out of a file, however, the file % I`m accessing contains multiple instance of the search criteria, and I % only wanna return the first instance % I`m just

Re: [PHP] counting ..

2003-03-25 Thread Leif K-Brooks
Why do you think comment needs a number in the first place? Sebastian wrote: Hello all. rather dumb question. I have a pagination system, 25 results per page, which are user comments, I want to put a number on each comment so i am doing something like: $num=$num + 1; $number = $num; echo

[PHP] XSLT processing DocBook files - FO

2003-03-25 Thread Colin Viebrock
I'm trying to automatically convert DocBook XML files into PDFs using PHP and the XSLT extension. First step is to convert them into FO, but I'm running into trouble with this script: ?php $xslt = xslt_create(); $xml = 'my_docbook_file.xml'; $xsl =

Re: [PHP] counting ..

2003-03-25 Thread Jim Lucas
when it comes to the second page, you already know that page you are on 1,2,3,4... take that and multiply it by the defined number of results per-page, then start your counting. Jim - Original Message - From: Sebastian [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Monday, March

[PHP] Problem with file_exists()

2003-03-25 Thread maillist
Hi, I've been reported a weird problem with one of the scripts that we have, which uses the file_exists() function. It returned true once, and then the query ran again, and it reported false, on the same file. This was true for a lot of files in the same directory, but only over a cerain

[PHP] Please point me in the right direction

2003-03-25 Thread Jerry
Hi All, I have a CGI application written in Delphi web services and I want to port it to the Linux environment. I was going to use Kylix but I'm concerned that Borland isn't keeping up with the fast paced Linux development (ie they are still on Redhat 7.2 and Redhat is about to release version 9.0

[PHP] Persistent connections with mysql_pconnect()

2003-03-25 Thread John Hicks
On Tuesday 25 March 2003 09:02 am, skate [EMAIL PROTECTED] wrote: leaving the connection open creates security questions, and also leaves resources open, what if a user closes his browser window, how do you know to close the connection? So are you saying that persistent connections [ i.e.

Re: [PHP] Persistent connections with mysql_pconnect()

2003-03-25 Thread skate
no, not at all... but there is a time and a place, and i don't think you should use pconnect just because you don't want to an include at the top of every page. - Original Message - From: John Hicks [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 5:11 PM Subject:

Re: [PHP] Persistent connections with mysql_pconnect()

2003-03-25 Thread CPT John W. Holmes
no, not at all... but there is a time and a place, and i don't think you should use pconnect just because you don't want to an include at the top of every page. You still have to call pconnect() on every page if you use it. It doesn't leave it open for other requests, it leaves it open within

Re: [PHP] Please point me in the right direction

2003-03-25 Thread John Hicks
PHP is extremely easy for an experienced programmer to pick up quickly (assuming you know the basics of tcp/ip and web architecture). But experienced programmers also know the importance of the KISS principle. Why rewrite a system when you can port it? Kylix allows you to use Delphi on Linux.

RE: [PHP] problems with rename() - permission denied

2003-03-25 Thread Don Read
On 25-Mar-2003 Christian Rosentreter wrote: Hello, I've a small problem, which mades me crazy... :\ I'm trying to rename() a swapfile to real destination file (atomic update). It works on differnt environments very well. Sadly not on my ISP-server I've added an chmod($swapfile,0777),

RE: [PHP] substr() on part an ereg() capture

2003-03-25 Thread Boaz Yahav
Looks like this one : http://examples.weberdev.com/get_example.php3?count=1567 so if someone manages to get this done, i would appreciate it if he can add a comment. thanks berber -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 3:24 PM To:

[PHP] again: IIS vs Apache

2003-03-25 Thread matiasz
Hi, I'm new here. I imagine that this question was made a lot of times in this list, but reading the archive i couldnt find a recently answer to this question: I want to convince my new lab partners (and director) to migrate our PHP site (over 1000 hits a day) to Apache/Linux. Could you

[PHP] How to solve include_path / safe_mode / open_basedir /document_root ?

2003-03-25 Thread Robert Mena
Hi, I host some virtual servers in a Linux/apache/php 4 enviroment. I'd like to set up as secure as possible since the users have ftp access to upload files. So each virtual domain has a safe_mode/open_basedir settings in order to make it difficult to mess with each other's files.

[PHP] Array query

2003-03-25 Thread shaun
Hi, say I have two arrays: X and Y. How can i get the values I X that arent in Y and assign them to another array? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array query

2003-03-25 Thread Marek Kilimajer
www.php.net/array_diff shaun wrote: Hi, say I have two arrays: X and Y. How can i get the values I X that arent in Y and assign them to another array? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Checking for existence of file

2003-03-25 Thread Verdon Vaillancourt
HI :) I've got a function (crude but works) that checks for a value in the url and then I call an image based on that value. if (isset($_GET['menu'])) { $img_pick = substr($_GET['menu'],0,1); } else { $img_pick = 1; } echo img src=\/images/mast_$img_pick.jpg\; What I'd like to do is check

Re: [PHP] How to solve include_path / safe_mode / open_basedir /document_root?

2003-03-25 Thread Marek Kilimajer
/safe_mode_include_dir/ *string* cid:[EMAIL PROTECTED] UID/GID checks are bypassed when including files from this directory and its subdirectories (directory must also be in include_path cid:[EMAIL PROTECTED] or full path must including). As of PHP 4.2.0, this directive can take a

Re: [PHP] Checking for existence of file

2003-03-25 Thread Jason Wong
On Wednesday 26 March 2003 03:12, Verdon Vaillancourt wrote: I've got a function (crude but works) that checks for a value in the url and then I call an image based on that value. if (isset($_GET['menu'])) { $img_pick = substr($_GET['menu'],0,1); } else { $img_pick = 1; } echo img

Re: [PHP] Checking for existence of file

2003-03-25 Thread CPT John W. Holmes
What I'd like to do is check the directory 'images' first to see if 'mast_$img_pick.jpg' exists and if it doesn't, call a different image such as 'mast_default.jpg'. I'm sure this isn't hard, I'm just not sure how to start. Maybe you can start with file_exists() or is_file() and somehow work

Re: [PHP] openssl php 4.3.1

2003-03-25 Thread Kalin Mintchev
On Tue, 25 Mar 2003, The Doctor wrote: On Mon, Mar 24, 2003 at 11:15:05PM -0500, Kalin Mintchev wrote: hi all, i have problems getting fopen() and fsockopen() to work over https.. here is the problem.. from the phpinfo: OpenSSL support enabled OpenSSL Version

[PHP] warning when I compile PHP

2003-03-25 Thread Richard Kurth
What does this mean I get this when I compile PHP. It is all through the out put when make is run. What can I do to make it not be there cc1: warning: changing search order for system directory /usr/include cc1: warning: as it has already been specified as a non-system directory -- Best

Re: [PHP] counting ..

2003-03-25 Thread Sebastian
because my comment system is pretty much like forum style, sometimes a user referrers to another comment by it's number, etc... .. and because i want to ;) cheers, - Sebastian - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] | Why do you think comment needs a number in the

Re: [PHP] substr() on part an ereg() capture

2003-03-25 Thread Marek Kilimajer
$str = preg_replace('|(a[^]*[^]{55})[^]+(/a)|','$1...$2', $str); Justin French wrote: Hi, I have this ereg to turn URLs into links: eregi_replace(([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/=]), a href=\\\1://\\2\\3\ {$t}\\\1://\\2\\3/a, $str); ... found it in the manual i think, or maybe on

Re: [PHP] newbie:restricting users to change data in a textarea

2003-03-25 Thread Step Schwarz
Hi Mirco, Try adding either readonly or disabled to the textarea tag: print textarea name=variable readonly rows=1 cols=10.stripslashes($row['variable'])./textareabr; Hope this helps, -Step [...] There is one field that I whant to stop them from changing. This field I also use in my sql

RE: [PHP] Mac IE File download problem - any solutions?

2003-03-25 Thread Jennifer Goodie
This is not a MAC IE problem, it is the way browsers work. If the MIME type is mapped to an application, the browser will launch the application. IE does it inline, while Netscape tends to launch it separately. You can send false headers with a made up type and a missing file extension, but

Re: [PHP] warning when I compile PHP

2003-03-25 Thread Marek Kilimajer
As long as everything is working, ignore it. Richard Kurth wrote: What does this mean I get this when I compile PHP. It is all through the out put when make is run. What can I do to make it not be there cc1: warning: changing search order for system directory /usr/include cc1: warning: as it

[PHP] Grabbing image information from an html string

2003-03-25 Thread Luis Lebron
Let say I have an html string that looks like this: bTitleb img src=graphics/image1.jpgfoo bar bar fooimg src=graphics/image2.jpgSome more text. I would like to pull the image filenames from the html and end up with something like this $images=array(image1.jpg, image2.jpg) How can I do this?

Re: [PHP] Finding out which file is retrieved over HTTP

2003-03-25 Thread Ernest E Vogelsinger
At 20:48 25.03.2003, Jens Lehmann spoke out and said: [snip] To actually check on the HTTP status codes you need to run your own, either using cURL, or by doing your own stuff using fsockopen(). I tried using fsockopen(), but still experience a problem, I

[PHP] Re: Please point me in the right direction

2003-03-25 Thread rush
Jerry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] As I am very unfamiliar with the PHP environment, can someone point in the right direction? If I use PHP for the front-end, what is the best tool to create the CGI? I was considering using Python, but would Pearl be better? OO in

[PHP] variables??

2003-03-25 Thread Rick Gaine
I'm having a problem with form data being recognized by a php script. If I send information with a GET the variable data appears in $GET[var] but not $var. I just upgraded to php4.2.2 and then 4.3.1 and I've been having this problem. I didn't have the problem with older versions. I suspect it

RE: [PHP] Grabbing image information from an html string

2003-03-25 Thread Dan Rossi
if (preg_match('/(href|HREF)=?(\S+\.(jpg|png))?/',$line, $matches)){ $filename[] = $matches[2]; } -Original Message- From: Luis Lebron [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 7:07 AM To: Php-General (E-mail) Subject: [PHP] Grabbing image information from an html

Re: [PHP] Grabbing image information from an html string

2003-03-25 Thread Kevin Stone
You need to use preg_match_all() and a more greedy expression that is not case sensitive.. preg_match_all('/src=(\S*)/i', $html, $matches); $image_array = $matches[1]; HTH, Kevin - Original Message - From: Dan Rossi [EMAIL PROTECTED] To: Luis Lebron [EMAIL PROTECTED]; Php-General

[PHP] Default setting garbage

2003-03-25 Thread Liam Gibbs
Why is it that when I send call this function: function GetNextDate($whichfriday, $month = , $frequency = 1, $basedate = ) with this line: GetNextDate(4, 2003-03, 5); that $frequency ends up ? Whether I set it myself when I call the function, or I leave it blank and let the function set it

Re: [PHP] variables??

2003-03-25 Thread Kevin Stone
- Original Message - From: Rick Gaine [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 1:25 PM Subject: [PHP] variables?? I'm having a problem with form data being recognized by a php script. If I send information with a GET the variable data appears in $GET[var]

RE: [PHP] Using include() or require() with PDF module

2003-03-25 Thread Daevid Vincent
Two things come to mind... First, make sure the file is indeed being included/required and you don't have your paths messed up. Second, make sure you have the PDF stuff compiled into PHP. Make a page with ?php phpinfo(); ? as the only thing in it, then load it in your web browser and find the

Re: [PHP] Default setting garbage

2003-03-25 Thread Liam Gibbs
Good question. Are you certain your not misspelling frequency when you check it or try to look at it? Sorry if that sounds insulting.. just trying to search for the simplest explaination. : No, no. Not insulting at all. That's often my problem. But not in this case. I even went to the

Re: [PHP] Default setting garbage

2003-03-25 Thread Kevin Stone
- Original Message - From: Liam Gibbs [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 2:10 PM Subject: [PHP] Default setting garbage Why is it that when I send call this function: function GetNextDate($whichfriday, $month = , $frequency = 1, $basedate = )

Re: [PHP] variables??

2003-03-25 Thread Dave O'Meara
It is considered more secure to declare the variable explicitly. $var = $_GET[var]; I'm having a problem with form data being recognized by a php script. If I send information with a GET the variable data appears in $GET[var] but not $var. -- PHP General Mailing List

[PHP] forcing a reload from a redirect

2003-03-25 Thread Mike Scalora
I have two pages, foo.php and bar.php. bar.php redirects the user to foo.php with the following code: header(Location: http://.$_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . foo.php); Normally, I want the browser to cache foo.php, it's content is fairly static. But, bar.php makes

[PHP] Formatting code.

2003-03-25 Thread Philip J. Newman
Is there any documents on how code should be layed out? -- Philip J. Newman. Head Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Formatting code.

2003-03-25 Thread Philip Hallstrom
here's one. http://utvikler.start.no/code/php_coding_standard.html google will probably find a lot more... maybe not all PHP specific, but still relevant. On Wed, 26 Mar 2003, Philip J. Newman wrote: Is there any documents on how code should be layed out? -- Philip J. Newman. Head

Re: [PHP] Finding out which file is retrieved over HTTP

2003-03-25 Thread Jens Lehmann
Ernest E Vogelsinger wrote: At 20:48 25.03.2003, Jens Lehmann spoke out and said: [snip] To actually check on the HTTP status codes you need to run your own, either using cURL, or by doing your own stuff using fsockopen(). I tried using fsockopen(), but

[PHP] Backing Up Tables Using PHP

2003-03-25 Thread Guru Geek
Hello, Trying to author my own PHP database table back up utility. A very simple one at that... Here's my sql statement to select everything in the table: $sql_daily = SELECT * FROM dailytable; $run_sql_daily = mysql_query($sql_daily); $result_sql_daily = mysql_fetch_array($run_sql_daily);

RE: [PHP] flush not flushing?

2003-03-25 Thread daniel
hi , i have had similar issues its worked by doing a ob_flush before flush then u want a sleep statement so maybe try ob_flush(); flush(); sleep(2); ?? = Original Message From Bryan Koschmann - GKT [EMAIL PROTECTED] = Hello, I'm including a script I use to automatically e-mail overdue

[PHP] is this correct? regular expressions

2003-03-25 Thread Jay Paulson
just trying to say if $phone isn't all numbers set it to all zeros.. so is that right? cause i can't seem to get it to work. if (!ereg(^[0-9]$,$phone)) { $phone = 00; } thanks!

Re: [PHP] is this correct? regular expressions

2003-03-25 Thread Ernest E Vogelsinger
At 23:22 25.03.2003, Jay Paulson said: [snip] just trying to say if $phone isn't all numbers set it to all zeros.. so is that right? cause i can't seem to get it to work. if (!ereg(^[0-9]$,$phone)) { $phone = 00; } thanks!

[PHP] formatting textarea input on output

2003-03-25 Thread Charles Kline
hi all, i have a textarea in a form which gets inserted into a table in my database (mySQL). When displaying this text back to the screen, how do i retain the line breaks etc. that were in the original input? thanks charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Re: Formatting code.

2003-03-25 Thread daniel
this code doc is excellent thanks , although some of it i agree on but i do differently , naming conventions etc .. i usually follow the PEAR standard although i dont do any pear code , its been the best thing ever to happen for php , as for a newbie when pear first came around it helped alot ,

Re: [PHP] MySQL and phpMyAdmin Issues

2003-03-25 Thread Charles Kline
I am by no means an expert (even remotely) but I do recall instructions on exactly how to do this in the documentation for MySQL - I think under the how to upgrade section. - Charles On Monday, March 3, 2003, at 06:53 PM, Stephen Craton wrote: Hello, Yesturday I made a big mistake. I had to

RE: [PHP] Backing Up Tables Using PHP

2003-03-25 Thread Jennifer Goodie
Most RDB programs come with an integrated backup solution. You might want to look into those. As far as why your code is not working, you are not looping through the result set, you are only pulling one result. A database does not store data in order, it puts it where ever there's a hole, so

Re: [PHP] formatting textarea input on output

2003-03-25 Thread Ernest E Vogelsinger
At 23:30 25.03.2003, Charles Kline said: [snip] i have a textarea in a form which gets inserted into a table in my database (mySQL). When displaying this text back to the screen, how do i retain the line breaks etc. that were in the original input?

  1   2   >