RE: [PHP] Receive Header.

2001-09-26 Thread Maxim Maletsky \(PHPBeginner.com\)
Have you looked into GetImageSize()? php.net/getimagesize Though, I don't know if it works with remote files. Try it. Maxim Maletsky PHPBeginner.com -Original Message- From: Marian Vasile [mailto:[EMAIL PROTECTED]] Sent: mercoledì 26 settembre 2001 8.48 To: [EMAIL PROTECTED] Subject

[PHP] Re: one pattern, one string, multiple results

2001-09-26 Thread _lallous
try this! I don't know how effective is preg_replace w/ huge memory contentsbut this should work fine! $mem = "an arc is an archer, arc but what about marc and darcy?"; $match = "arc"; $count = 0; preg_replace("/\b$match\b/ie", "\$count++;", $mem); echo $count; "Richard Baskett" <[

Re: [PHP] one pattern, one string, multiple results

2001-09-26 Thread
From: Richard Baskett <[EMAIL PROTECTED]> Date: Wed, Sep 26, 2001 at 12:01:11AM -0700 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] one pattern, one string, multiple results > I just can not seem to figure this out. > > If i have a pattern 'arc' and I want to search the string: > "an arc is an

RE: [PHP] one pattern, one string, multiple results

2001-09-26 Thread Maxim Maletsky \(PHPBeginner.com\)
Hi Richard. Subsrt_count() is what you are looking for: int substr_count (string haystrack, string needle) php.net/substr_count P.S: Helen Fielding's Bridget Jones Diary is a nice novel, hun? Maxim Maletsky PHPBeginner.com -Original Message- From: Richard Baskett [mailto:[EMAIL PRO

Re: [PHP] Getting my head around nulls

2001-09-26 Thread Ben . Edwards
Steve Cayford <[EMAIL PROTECTED]> on 25/09/2001 17:28:57 To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Getting my head around nulls On Tuesday, September 25, 2001, at 10:30 AM, [EMAIL PROTECTED] wrote: >> >> Just had a look at manual, ifnull()

[PHP] Receive Header.

2001-09-26 Thread Marian Vasile
I have a dir, full with bounch of pictures. I need to find out the size of pictures, from another server. I can't ftp or anything like this, so I need to open those pics, and find out the size. The problem is that is too slow for a lot of pics but I woder... I can't find out the size without dow

Re: [PHP] one pattern, one string, multiple results

2001-09-26 Thread Richard Baskett
Thank you much! I was going to use preg_grep, preg_replace, preg_match, preg_match_all something like that, but this subsrt_count() will do the trick nicely! Thank you very much! Rick > Hi Richard. > > Subsrt_count() is what you are looking for: > int substr_count (string haystrack, string ne

Re: [PHP] Receive Header.

2001-09-26 Thread Marian Vasile
If I use GetImageSize I get Warning: Unable to open http://www.php.net/gifs/logo.gif in /home/irisi/public_html/bonic/webgal/test.php on line 2 Any idea why ? "Maxim Maletsky )" <[EMAIL PROTECTED]> wrote in message 006801c1465d$458a5100$c029abd4@tatiana">news:006801c1465d$458a5100$c029abd4@tati

[PHP] Re: Running Programs.....

2001-09-26 Thread Lukas
Anthony, "Anthony" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Im trying to use PHP to execute a program, called J-Express, and its run > through the command shell through ./J-Express. > What do I use in PHP so that this program will be automatically

[PHP] Re: one pattern, one string, multiple results

2001-09-26 Thread _lallous
use this modifier /ies instead of /ie "_lallous" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > try this! > I don't know how effective is preg_replace w/ huge memory contentsbut > this should work fine! > > $mem = "an arc is an archer, arc but what about

[PHP] How can I fetch a table from html file using php?

2001-09-26 Thread Sami Kyösti
I have a sample file in http://demo.ina-finland.fi/sample.html and there's a table which is named "ruudukko". How can a just get that table in to my other html file using php? ThAnKs! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: [PHP] speechmarks

2001-09-26 Thread Christian Reiniger
On Wednesday 26 September 2001 01:07, Andrew Austin wrote: > What is the method for mySQL to surround single speechmarks as in > (don't) so it will be accepted in an SQL statement. http://php.net/addslashes -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Error 032: Recursion er

[PHP] PHP -> Novell?

2001-09-26 Thread CB
Hi! Is it possible to use PHP (or maybe Perl) for communication with a Novell-network/a Novell-server from a webserver? /Örjan -- Mail: [EMAIL PROTECTED] URL: http://www.tag.nu/orjan/ --

[PHP] Free hosts, or Temp account...some thing

2001-09-26 Thread ReDucTor
Hey, I just made a kewl little script, that i want to test out it requires GD, it doesn't appear to work on my Windows machine, but i think it might work better on a Unix/Linux machine, so does anyone know of a free web host, that supports php, gd, or someone that can open an account for about h

[PHP] array_multisort

2001-09-26 Thread Richard Baskett
Ok i've gone through the archives.. and you know.. I don't think anybody really understands this function. I hope I am wrong, but here goes. I have an array called let's say.. $results first dimension are just numbers and the second has associative names [name],[title],[descript],[keycount] so b

[PHP] showing wrong php version after install

2001-09-26 Thread Caleb Carvalho
hi all, just finished installing php-4.0.6, now when writing the test.php page with the i am still getting the PHP Version 4.0.4pl1 that was installed with my linux 7.1 distro !!! any help? Caleb Carvalho Application Engineer LoadRunner/APM -

Re: [PHP] connect to sybase

2001-09-26 Thread Krzysztof Kocjan
Can You describe more detail ??? What kind, version of Sybase server do You use, what version of PHP, what Linux distribution etc... In other case I can't help You. Krzysztof Kocjan Edney Marcel Imm wrote: > Hi > > How I can connect to syBase? > > Tks -

[PHP] where can i get a sample php scripts to get data from pubs2 in sybase?

2001-09-26 Thread Caleb Carvalho
hi all, i've managed to setup php-4.0.6 sucessfully with sybase, apache :) does any1 know where to get a sample script that will initially get the pubs2 data from sybase? Caleb Carvalho LoadRunner/APM - E

Re: [PHP] Feature?

2001-09-26 Thread php
On Tue, 25 Sep 2001 09:36:57 -0500, you wrote: >>> >> function foo($p) { echo $p['fred'] . $p['banana']; } >>> foo(array('fred' => 'hello', 'banana' => 'world')); >>> ?> >> Yeap, I know that. I thought about this bit of hack but this breaks the >> conception on giving parameters.

Fw: [PHP] Feature?

2001-09-26 Thread Andrey Hristov
Let this be last message in the thread. Thanks for the examples! I'll wait for PHP5. There is a possibility that this feature will be in. Have fun Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS > - Original Message - > From: <[EMAIL PROTECTED]> > To: <

Re: [PHP] Feature?

2001-09-26 Thread Alister
Follow up to my own message: If you want to also skip even needing the empty 'array()' (new fianl example) - check if it is an array, and only do the first extract of the parameters if there's something there. 'default fred', 'foo_banana' => 'default bananananana', );

Re: [PHP] Re: Socket help

2001-09-26 Thread Stefano Baronio
Chris Lee wrote: > your server has to open a connection to a remote > host to see if there are > messages ? like email ? yes. It is a sort of ftp-like protocol. > if this is so then use > cron once every so often to > check if there are new messages. I'll receive/send a lot of messages and thi

[PHP] header() confusion

2001-09-26 Thread pierre-yves
Hello, several months ago I discovered that under some IE 4.0 and upgrades of 4.0 the header() function would simply not redirect if you don't put exit() right after the header() call. Now I'm discovering that header() does not work under netscape 6 if you put exit() right after! How come th

Re: [PHP] header() confusion

2001-09-26 Thread
From: pierre-yves <[EMAIL PROTECTED]> Date: Wed, Sep 26, 2001 at 08:41:24AM -0400 Message-ID: <007301c14688$8d9b0d10$0100a8c0@py> Subject: [PHP] header() confusion > Hello, > several months ago I discovered that under some IE 4.0 and upgrades of 4.0 the >header() function would simply not redir

[PHP] sending multiple variables to external PERL script for results

2001-09-26 Thread Dave VanAuken
Problem; call external perl script with variables as arguments when variables may have spaces or other restricted characters. Details; script needs to process $name $phone $creditcard (as examples) normally this would easily be solved passing the command as $command="myscript.pl $name

Re: [PHP] display query results at random

2001-09-26 Thread Steve Werby
"Matthew Delmarter" <[EMAIL PROTECTED]> wrote: > How do I return a specific record from a db outside of the query? > > Let's say I "select * from table" (using mysql_fetch_object) and get 5 > results. I want to display the 5 results in different / random places > on the page. > > Place 1 - show de

[PHP] ftp_get giving problem

2001-09-26 Thread root
Hi, In my php program I am trying to download a file from server. My web server and file downloading server is diffrent. When use ftp_get command it is giving the result true. But the file is not there in client system. Please help me. anil [EMAIL PROTECTED] -- PHP General Mailing List (h

[PHP]session and frames: please HELP!!!!!

2001-09-26 Thread Michael . Thanry
Hello everyone! I've a quick question I've been working on for a few days, look into the archive of the mailing-list but found nothing relevant: How to forward a session variable such as a password to a page containing frames? I tried something like frame src=menu.php? but it didn't seem to wor

[PHP] Re: problem with arrays. Please Help!!

2001-09-26 Thread ewunia
Hello, But can you be more specific what I need to do with this function? How to use it in the context? Thanks Pedja <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > function array_search ($needle, $haystack, $strict = FALSE) > > > foreach (array_keys($haystack)

[PHP] Building Dynamic Value list using ohp

2001-09-26 Thread George Pitcher
Hi all, I'm having a problem with dynamically building a value list. My code: $row[0]"); } } ?> But this generates: "Parse error: parse error in c:\program files\apache group\apache\htdocs\bizflyers\login.php on line 22" Any suggestions? Regards George _

Re: [PHP] select based on time/date

2001-09-26 Thread Sheridan Saint-Michel
The reason my query didn't work is you have time_in as a varchar. Change it to a datetime field or timestamp field and it should work. I would suggest making it a timestamp field. That way whenever you update the row (probably update the session field with a new session) MySQL will automatically

Re: [PHP] select based on time/date

2001-09-26 Thread Sheridan Saint-Michel
date_add(time_in,interval 1 hour) is the same as time_in + interval 1 hour as of MySQL 3.23 so unless you are using 3.22 you should get the same result (anything prior to 3.22 won't support date_add) Neither query is going to work, however, because time_in is a varchar rather than one of the date

Re: [PHP] header() confusion

2001-09-26 Thread pierre-yves
> So... when redirecting the user to a different page, you should > always put exit after the header() call. Yes that's what I do but it freeze on netscape 6 ? Does anyone has experience this or am I the only one ? py -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread George Pitcher
Thanks Gottfried, but that doesn't change the response I get. Any more suggestions. George P in Edinburgh PS I am hoping to come over to Frankfurt for the conference in November (boss might pay) - Original Message - From: <[EMAIL PROTECTED]> To: "George Pitcher" <[EMAIL PROTECTED]> Sen

Re: [PHP] header() confusion

2001-09-26 Thread
> Yes that's what I do but it freeze on netscape 6 ? FAFAIK the client's browser can't influence the header() call in your script. Are you sure there aren't any errors somewhere else. Eg before the header() call or at the start of the page where you redirect the user to? -- * R&zE: -- »»

RE: [PHP] header() confusion

2001-09-26 Thread Boget, Chris
> > Yes that's what I do but it freeze on netscape 6 ? > FAFAIK the client's browser can't influence the header() call in > your script. Are you sure there aren't any errors somewhere else. Eg > before the header() call or at the start of the page where you > redirect the user to? Indeed. A good

Re: [PHP] header() confusion

2001-09-26 Thread
> > > Yes that's what I do but it freeze on netscape 6 ? > > FAFAIK the client's browser can't influence the header() call in > > your script. Are you sure there aren't any errors somewhere else. Eg > > before the header() call or at the start of the page where you > > redirect the user to? > > I

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Derek Mailer
A couple of things about the code... 1) - mysql_connect ('localhost', 'root', 'monty'); should be $mysql_link = mysql_connect ('localhost', 'root', 'monty'); 2) - You only pass you can read more about it all and copy and adapt the code snippter from http://www.php.net/manual/en/ref.mysql.

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Derek Mailer
oops...I was going to add... 2) - $result = mysql_query($query, $mysql_link); doesn't require the $mysql_link argument, try $result = mysql_query($query); Another general comment is that you have copied a bit of your code that seems to include the root password to mysql. Not a good idea - yo

[PHP] fopen // eregi question

2001-09-26 Thread Brian V Bonini
>From the PHP manual: http://www.php.net/manual/en/features.remote-files.php Example 20-1. Getting the title of a remote page http://www.php.net/";, "r"); if (!$file) { echo "Unable to open remote file.\n"; exit; } while (!feof ($file)) { $line = fgets ($file, 1024); /* This onl

RE: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Maxim Maletsky \(PHPBeginner.com\)
1. this: print("$row[0]"); should be this: print("{$row[0]}"); or like this: echo ''.$row[0].''); The reason for it is that within double quote you can parse for 'simple' variables only (es: $var, not $var[]). Otherwise it gives you a parse error. 2. this: mys

Re: [PHP] How can I fetch a table from html file using php?

2001-09-26 Thread Sheridan Saint-Michel
You just need a simple Regex. This should do it http://demo.ina-finland.fi/sample.html","r";); $buffer = fread ($fp, 100); preg_match("|]*ruudukko[^>]*>.+|is", $buffer, $regs ); $table = $regs[0]; echo $table; ?> Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.fo

[PHP] Getting the file size, wtihout download... is this possible ?

2001-09-26 Thread Marian Vasile
It is possible to get the filesize for couple files on other server, without downloading ? Probably this will be not fully resolved, but is there any way ? Thanx, M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

RE: [PHP] Globals and HTTP_SESSION_VARS variables.

2001-09-26 Thread Johnson, Kirk
> Is here anyway to make a variable like $var not the same than > $HTTP_SESSION_VARS[var], when register_globals=1?. (where > $var is in the > script scope). > > I read in a changelog that this is relatively recent (make > $var the same > than $HTTP_SESSION_VARS[var]). I'm not sure what was ch

Re: [PHP] Site Hosting

2001-09-26 Thread Darren Henderson
On Fri, 21 Sep 2001, vishal khialani wrote: > Hi, > I am searching companies who will host my site. Presently I am looking out > for php, mysql and ssl support. So does anyone know a good company ? > Vishal Something to consider... perhaps supporting those companies that support PHP might be

Re: [PHP] search engine submission

2001-09-26 Thread Marian Vasile
All you need to learn, about submission is just forms (post get) and some javascript, to simulate perfectly like user is typing the info. Youca use two frames for that and it's really easy... :) Yours Marian "Krushna Kumar R" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PR

Re: [PHP] Getting my head around nulls

2001-09-26 Thread Steve Cayford
On Wednesday, September 26, 2001, at 02:48 AM, [EMAIL PROTECTED] wrote: > > > > > > > Steve Cayford <[EMAIL PROTECTED]> on 25/09/2001 17:28:57 > > > > To: [EMAIL PROTECTED] > cc: [EMAIL PROTECTED], [EMAIL PROTECTED] > Subject: Re: [PHP] Getting my head around nulls > > > On Tuesday, Septe

[PHP] Re: sending multiple variables to external PERL script for results

2001-09-26 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Dave Vanauken) wrote: > normally this would easily be solved passing the command as > $command="myscript.pl $name $phone $ccnum"; > $results=passthru($command); > and parsing out the argv's in the perl script > > however, this break

RE: [PHP] Getting the file size, wtihout download... is this possible ?

2001-09-26 Thread Maxim Maletsky \(PHPBeginner.com\)
AFAIAC, The only function that gets you image size is GetImageSize() which you claimed cannot do remote check. Therefore, I do not think you can manage this without downloading/copying the file to your server. Maxim Maletsky www.PHPBeginner.com -Original Message- From: Marian Vasile [

Re: [PHP]session and frames: please HELP!!!!!

2001-09-26 Thread Marian Vasile
You can't send from outside, something that is INSIDE... I mean a session variable. If that could be done than probably I will seriously have security problems. Now what you've written it's correct in my opinion and it should work. What are you trying to do exactly? to save a session variable, o

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread George Pitcher
Thanks for everyone's help but this is still failing to work. Revised code is: {$row[0]}"); } } mysql_close($link); ?> Any more suggestions (please)? George - Original Message - From: "Maxim Maletsky (PHPBeginner.com)" <[EMAIL PROTECTED]> To: "'George Pitcher'" <[EMAIL PROT

Re: [PHP] fopen // eregi question

2001-09-26 Thread Sheridan Saint-Michel
If you use preg_match (PERL style Regex) instead of ereg you can use the s match modifier which tells it to treat the entire file as a single line... so your Regex would be if (preg_match("|(.*)|is", $line, $out)) { (The i is case insensitive... since you were using eregi) Hope that helps Sher

[PHP] Extract. Was Re: Feature?

2001-09-26 Thread Steve Cayford
Just looking up that extract function, the manual says it extracts into the current symbol table. I assume that means that within foo() the array would be extracted into local variables. Is that right? -Steve On Wednesday, September 26, 2001, at 06:50 AM, Alister wrote: > Follow up to my own

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Steve Cayford
Also look for missing semicolons and unclosed braces in the lines above 22. -Steve On Wednesday, September 26, 2001, at 09:19 AM, Derek Mailer wrote: > oops...I was going to add... > > 2) - > > $result = mysql_query($query, $mysql_link); > > doesn't require the $mysql_link argument, try > > $

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Sheridan Saint-Michel
- Original Message - From: "George Pitcher" <[EMAIL PROTECTED]> To: "Maxim Maletsky (PHPBeginner.com)" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 26, 2001 9:42 AM Subject: Re: [PHP] Building Dynamic Value list using ohp > Thanks for everyone's help but this is st

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Derek Mailer
what's the error you're getting now? if you aren't getting any error, but it just isn't working try something like...(note that I haven't tested this code). $drop_down_list = ""; $link = mysql_connect ('localhost', '', '') or die ("Could not select db"); mysql_select_db ('Heronsql') or

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread George Pitcher
Sheridan, I added the error stuff (adding an else bit) but when I went to my browser, I got the same resulting error I've always had. I have tried pasting the select statement striaght into MySQL_Front and I get my nice neat list. So it doen't look like a SQL problem. Head banging off wall righ

Re: [PHP] Getting the file size, wtihout download... is this possible ?

2001-09-26 Thread Tamas Arpad
Hi, HTTP has a method called HEAD, that is for example can be used for exmample to get the requested files' size if the other web server/php script supplies it. So all you have to do is to make a connection to the other web server, give a HEAD request (it is almost the same as GET), and parse the

RE: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Maxim Maletsky \(PHPBeginner.com\)
What error do you see, George? Maxim Maletsky www.PHPBeginner.com -Original Message- From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]] Sent: mercoledì 26 settembre 2001 17.01 To: George Pitcher; [EMAIL PROTECTED] Subject: Re: [PHP] Building Dynamic Value list using ohp -

[PHP] PHP Chat recommendations

2001-09-26 Thread Tom Beidler
Does anyone have a recommendation on a PHP based Chat system. I'm looking for an easy to install and reliable system. Thanks, Tom -- 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 a

RE: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Maxim Maletsky \(PHPBeginner.com\)
If you see no errors this might mean you have no records :-) Maxim Maletsky www.PHPBeginner.com -Original Message- From: Derek Mailer [mailto:[EMAIL PROTECTED]] Sent: mercoledì 26 settembre 2001 17.14 To: George Pitcher Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Building Dynamic Value l

Re: [PHP] Extract. Was Re: Feature?

2001-09-26 Thread Alister
On Wed, 26 Sep 2001 09:47:57 -0500, you wrote: >Just looking up that extract function, the manual says it extracts into >the current symbol table. I assume that means that within foo() the >array would be extracted into local variables. Is that right? As http://www.php.net/manual/en/function.e

RE: [PHP] PHP Chat recommendations

2001-09-26 Thread Maxim Maletsky \(PHPBeginner.com\)
Try to browse hotscripts.com, it has a plenty of them for you to choose. Maxim Maletsky www.PHPBeginner.com -Original Message- From: Tom Beidler [mailto:[EMAIL PROTECTED]] Sent: mercoledi 26 settembre 2001 17.06 To: php list Subject: [PHP] PHP Chat recommendations Does anyone have a

Re: [PHP] Building Dynamic Value list using php [SOLVED]

2001-09-26 Thread George Pitcher
Derek, That worked a treat - not to try and get the flatness out of my head - that wall was hard! What still has me stumped is that as far as the query-building goes, both methods are pretty much the same yet yours doesn't generate the error yet mine does Prepare yourselves as this is the l

RE: [PHP] Site Hosting

2001-09-26 Thread Jeff Pearson
My friend owns a hosting company that supports php and MySQL along with a ton of other things.and they are VERY inexpensive. You can check them out at http://www.eaccounts.net/ref/jp52950052/?referer=emaillink Jeff Pearson Disclaimer: Yes the link tracks the referrals.No. I don't make any mo

Re: [PHP] PHP Chat recommendations

2001-09-26 Thread Tom Beidler
I did, that's why I'm asking for a recommendation. There are quite a few. > From: "Maxim Maletsky \(PHPBeginner.com\)" <[EMAIL PROTECTED]> > Organization: PHPBeginner.com > Date: Wed, 26 Sep 2001 17:18:15 +0200 > To: "'Tom Beidler'" <[EMAIL PROTECTED]>, "'php list'" > <[EMAIL PROTECTED]> > Subjec

[PHP] quick question.

2001-09-26 Thread Jay Paulson
I was just wondering if I could call some functions out side of the class I'm making? The reason why I want to do this is so that I don't have to rewrite the functions as methods in the class and I don't want to get too far into what I'm doing before I find out it doesn't work. Thanks, Jay --

[PHP] OOP Yea you know me... OOP yea you know me...

2001-09-26 Thread Joel Ricker
Hey all, I've been working on my first OPP driven PHP code and wanted to see what everyone thought and any ideas anybody can add to the code that I'm working on. I've had to make some concessions due to the limitations of PHP's OOP model and the fact that I'm using PHP3 which doesn't functions l

[PHP] Help - error loading PHP into Apache

2001-09-26 Thread Michael Champagne
Help! I'm trying to install a development Apache + PHP environment on the same machine as our test environment (Apache + mod_SSL + PHP). I followed the same procedure that I used to set up our test system (which works fine) and everything compiles and builds fine. However when I try to start up

Re: [PHP] quick question.

2001-09-26 Thread Joel Ricker
: I was just wondering if I could call some functions out side of the class : I'm making? The reason why I want to do this is so that I don't have to : rewrite the functions as methods in the class and I don't want to get too : far into what I'm doing before I find out it doesn't work. Sure you

[PHP] handling errors

2001-09-26 Thread Joseph Bannon
How do I turn off the error messages that appear at the top of the page? I have this function below that if an image is not there for $url, it give a "warning". $size = GetImageSize("$url"); Example error message below... Warning: getimagesize: Unable to open 'http://www.yahoo.com' for readi

RE: [PHP] handling errors

2001-09-26 Thread Boget, Chris
> How do I turn off the error messages that appear at the top > of the page? I have this function below that if an image is > not there for $url, it give a "warning". > $size = GetImageSize("$url"); > Example error message below... > Warning: getimagesize: Unable to open 'http://www.yahoo.com'

RE: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Philip Olson
> The reason for it is that within double quote you can parse for 'simple' > variables only (es: $var, not $var[]). Otherwise it gives you a parse > error. Just a quick note, this is partially true. The following works : error_reporting(E_ALL); $arr = array ('a' => 'apple','b' => 'banana

RE: [PHP] display query results at random

2001-09-26 Thread Jerry Lake
I'm not positive on this, but I think I catch your drift. when you get the results of your query... place 1 = $results[2] place 2 = $results[0] place 5 = $results[4] Later, Jerry Lake Interface Engineering Technician -Original Message- From: Matthew Delmarter [mailto:[EMAIL PROTECTED

Re: [PHP]session and frames: please HELP!!!!!

2001-09-26 Thread Michael . Thanry
Ok, I now feel stupid because it still don't work or I still don't get it. Here are the filez please feel free to comment and advise. (See attached file: index.php)(See attached file: TESTAD~1.PHP)(See attached file: index2.php)(See attached file: menu.php) Regards, Michael

[PHP] Variable declaration

2001-09-26 Thread Alberto
I want PHP parser to warn/fail when I try to use a variable not declared before. Like "Option Explicit" on ASP/VBA. Thnx in advance :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP]session and frames: please HELP!!!!!

2001-09-26 Thread Michael . Thanry
Ok, I now feel stupid because it still don't work or I still don't get it. Here are the filez please feel free to comment and advise. (See attached file: testadmin.php)(See attached file: index2.php)(See attached file: menu.php)(See attached file: index.php)

RE: [PHP] Variable declaration

2001-09-26 Thread Boget, Chris
> I want PHP parser to warn/fail when I try to use a variable > not declared before. Like "Option Explicit" on ASP/VBA. Look here: http://www.php.net/manual/en/function.error-reporting.php Chris

[PHP] 2D array from file

2001-09-26 Thread John Frenzel
I have created a 2D array, then written it into a tet file. The file is written such that all the secondary array elements (the rows) are seperate lines, with the "columns" tab-delimited. Now I'd like to read this file back into a 2D array. I thought this should work: $array_file = file ("array.

RE: [PHP] select based on time/date

2001-09-26 Thread Jason Dulberg
You were right! I changed it to a timestamp (14) and the selection is working great now. Only problem is that when I logout which UPDATE's the table to clear the $session field, the $time_in timestamp gets updated because of the NOW() function. I need that date to stay the same when someone logs

Re: [PHP] select based on time/date

2001-09-26 Thread Sheridan Saint-Michel
Timestamp only sets itself to Now() if it isn't explicitly set (or set to NULL). So try this: $out = "UPDATE logged_in SET session='',time_in=time_in WHERE (logged_in.userid='$aid') AND (logged_in.session='$sessid')"; Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet

RE: [PHP] select based on time/date

2001-09-26 Thread Jason Dulberg
Awesome... Its all working perfectly now! Makes perfect sense why the update is like that. thanks again! __ Jason Dulberg Extreme MTB http://extreme.nas.net > -Original Message- > From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]] > Sent: September 26, 2001 1:59 PM

[PHP] PEAR DB Questions

2001-09-26 Thread Matthew Walker
I've got the docs you all mentioned in response to my earlier questions. Thanks a ton! They were almost exactly what I needed. There's only one thing that I can't figure out how to do with the module. In PHP, there's a function 'mysql_insert_id()'. It returns the Autoincriment ID of the last ins

[PHP] Problem recursively building array

2001-09-26 Thread Chris Hobbs
I'm attempting to build an array of filenames in a sub-directory with sub-directories. I'm using a modified version of code found on php.net - the function I wrote is here: function getDirList ($dirName) { $dirList=array(); $d = dir($dirName); while ($entry = $d->read()) {

Re: [PHP] Problem recursively building array

2001-09-26 Thread Chris Hobbs
Chris Hobbs wrote: > $dirList = $dirList + getDirList($dirName."/".$entry); OK, on a lark I changed the above to use array_merge, and the problem went away - that'll teach me to use a shortcut :) -- ___ ____ _ Chris Hobbs / \ \

[PHP] Reading STDIN from within the program

2001-09-26 Thread ashish.natani
Hi, I wish to read the message string posted by my form into a php program. I tried to use the environment variable $HTTP_RAW_POST_DATA but this did not contain any value. Can someone help me with reading the STDIN input from within the php program ? Thanks and Regards, Ashish Natani Get Your

[PHP] Nueva direccion

2001-09-26 Thread Gonzalo Casas
Hola todos..!! Mi nueva direccion a partir de ahora es [EMAIL PROTECTED] Bye! Gonzalo

RE: [PHP] PEAR DB Questions

2001-09-26 Thread Jack Dempsey
don't know about pear, but in case you can't do it, there's a mysql version- LAST_INSERT_ID() like this: mysql> select last_insert_id(); +--+ | last_insert_id() | +--+ | 262 | +--+ 1 row in set (0.04 sec) -jack -Original Message--

php-general@lists.php.net

2001-09-26 Thread Ming-Chieh Lee
does anyone know what does &$this mean? I saw this on the php.net > tuturial > > for references inside a constructor. > > I thought that $this is already a reference? > > The way it was used : > > class Foo > > { > > function Foo($name) > > { > > // create a reference inside the g

php-general@lists.php.net

2001-09-26 Thread Ming-Chieh Lee
just for clarity, why do we need to reference a variable when the variable already contain a reference? Thanks "Ming-Chieh Lee" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > does anyone know what does &$this mean? I saw this on the php.net > > tuturial > >

RE: [PHP] PEAR DB Questions

2001-09-26 Thread Matthew Walker
Thanks. That will work quite nicely. -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 1:20 PM To: Matthew Walker; [EMAIL PROTECTED] Subject: RE: [PHP] PEAR DB Questions don't know about pear, but in case you can't do it, there's a mysq

[PHP] updating a database (mysql)

2001-09-26 Thread Joseph Bannon
When I update my mysql database, is there a way with PHP to know what or if any records where updated? Joseph -- 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-ma

[PHP] Re: showing wrong php version after install

2001-09-26 Thread Geir Eivind Mork
Caleb Carvalho wrote: > just finished installing php-4.0.6, now when writing the test.php page with > the Try again after you restarted apache ;) -- PHP Developer, home: http://www.moijk.net | work: http://www.coretrek.com tan: Tangent | http://www.php.net/manual/en/function.tan.php -- PHP

[PHP] Re: handling errors

2001-09-26 Thread Geir Eivind Mork
Joseph Bannon wrote: > have this function below that if an image is not there for $url, it give a > "warning". > $size = GetImageSize("$url"); Just use > $size = @GetImageSize("$url"); but to stop display of error for all functions: error_reporting (0); the opposite, reports EVERYTHING, ev

[PHP] Variable variables

2001-09-26 Thread Richard Baskett
I can not figure out why this is not working! for ($j=0; $j<$resultNum; $j++) { $newvar = "finalresult".$a; $$newvar[$a][name] = $resultRow[name]; $$newvar[$a][title]= $resultRow[title]; $$newvar[$a][descript] = $resultRow[descript]; $$newvar[$a][countkey] = substr_count("$resul

Re: [PHP] updating a database (mysql)

2001-09-26 Thread Sheridan Saint-Michel
I think this is what you are looking for http://www.php.net/manual/en/function.mysql-affected-rows.php Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Joseph Bannon" <[EMAIL PROTECTED]> To: "PHP (E-mail)" <[EMAIL PROTECTED]>

[PHP] Re: 2D array from file

2001-09-26 Thread Chris Lee
have you thought of just using http://www.php.net/manual/en/function.serialize.php http://www.php.net/manual/en/function.unserialize.php its alot easier. -- Chris Lee [EMAIL PROTECTED] "John Frenzel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I ha

[PHP] How would you code: $r = func() or return 0?

2001-09-26 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I thought i'd ask for your comments on how you'd code this common perl code with PHP: $value = some_function() or return 0; i usually code my functions to return 0 or "" on error, but have to use the following code to handle it... neither seem lik

Re: [PHP] How would you code: $r = func() or return 0?

2001-09-26 Thread Sterling Hughes
On Wed, 26 Sep 2001, scott [gts] wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I thought i'd ask for your comments on how you'd code this > common perl code with PHP: > > $value = some_function() or return 0; > > i usually code my functions to return 0 or "" on error, but > have

Re: [PHP] Variable variables

2001-09-26 Thread Philip Olson
If I'm reading your snippet correctly, then : $foo = 'bar'; $bar = array('apple','banana'); print ${$foo}[0]; // apple Note the use of {braces}. The last paragraph in the manual describes this a bit : http://www.php.net/manual/en/language.variables.variable.php Although I don't see

  1   2   >