Re: [PHP] exist?

2001-03-14 Thread Simon Garner
From: "Kenneth R Zink II" <[EMAIL PROTECTED]> > How would I go about checking to see if a file exist from php? > > I didn't find anything on php.net when I did a search for exist. > if (file_exists("/full/path/to/file.txt")) http://php.net/manual/en/function.file-exists.php -- PHP General

Re: [PHP] Good Free PHP Editor?

2001-03-12 Thread Simon Garner
of software that handled projects the way > we needed, we'd have thrown out this piece of garbage software a *long* > time ago. > > Chris > Running under Win2K I can have HomeSite 4.5.1 open for weeks, working on 10+ files, without any problems whatsoever. However, I use

Re: [PHP] ASP vs PHP

2001-03-12 Thread Simon Garner
From: "Chris Anderson" <[EMAIL PROTECTED]> > This is going to sound like heresy, but is there any way to > use ASP and PHP in the same fle/page? Seperated of course. What if you put: in your ASP page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

Re: [PHP] Good Free PHP Editor?

2001-03-12 Thread Simon Garner
ssion based search & replace across multiple files/directories - nice interface. Cheers Simon Garner -- 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] validating fields

2001-03-08 Thread Simon Garner
t. Try: if ( eregi("^[a-z0-9\._-]+@[a-z0-9\.-]+\.[a-z]{2,3}$", $Email) && eregi("^[a-z0-9]+$", $FirstName) && eregi("^[a-z0-9]+$", $LastName) ) Cheers Simon Garner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: IE 5.5,authentication,PHP sessions: IE never stops

2001-03-04 Thread Simon Garner
From: "Ken" <[EMAIL PROTECTED]> > > >What Windows version is this under? > > Windows 98 and Mac OS 8 or 9. > > - Ken > Is IE set to "Launch browser windows in a separate process" (if that option still exists in 5.5)? Have a look in Tools > Options > Advanced. Perhaps if that is not checked, cl

[PHP] Re: IE 5.5,authentication,PHP sessions: IE never stops

2001-03-04 Thread Simon Garner
From: "Ken" <[EMAIL PROTECTED]> > > Nope - with IE5.5, even with that box NOT checked, the user remains logged in until either a) the computer is restarted, or b) a new user-authentication header is sent, AND the user clears out the password field and hits OK. Otherwise the user stays logged in,

Re: [PHP] Re: IE 5.5,authentication,PHP sessions: IE never stops

2001-03-04 Thread Simon Garner
making your own login form and using cookies, instead of HTTP authentication. Then you can log users out just by unsetting the cookie(s). Cheers Simon Garner -- 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] date

2001-03-04 Thread Simon Garner
... ) To insert the current date, use NOW() as the date value: INSERT INTO mytable VALUES (..., NOW(), ...) To select the date formatted as "Saturday March 5th 2001 12:30 PM": SELECT col1, col2, DATE_FORMAT(mydate, '%W %M %D %Y %r') AS mydate, col4 FROM my

Re: [PHP] anchor "#" not working?

2001-03-04 Thread Simon Garner
link, the url string get's passed in, and looking at the > source of the news.php page shows: > > > > about half-way down.. but the page doesn't align with the anchor tag. Change this to: Cheers Simon Garner -- PHP General Mailing List (http://www.php.n

Re: [PHP] stumped on mailing a complete page

2001-03-03 Thread Simon Garner
ou can put both versions of the mail in the one message using MIME. Try changing the above code slightly, as follows: Have a flick through: http://www.php.net/manual/en/ref.outcontrol.php http://www.php.net/manual/en/function.mail.php Cheers Simon Garner -- PHP General Mailing List (http://

Re: [PHP] quote problem

2001-03-02 Thread Simon Garner
echo $title; ?> The syntax in your original e-mail was not quite right - heredocs should work fine with quotes. http://www.php.net/manual/language.types.string.php Cheers Simon Garner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: [PHP] quote problem

2001-03-02 Thread Simon Garner
= END << > BLAH BLAHC > BLHAC > END; > > but that doesnt seem to work with quotes > > Thanks > - Peter > You need to escape the quote characters by prefixing them with a backslash. blah \"blah\" blah"; ?> Cheers Simon Garner -- PHP General

Re: [PHP] Dumb newbie graphics question

2001-03-01 Thread Simon Garner
t; answer to absolute newbie questions like these? > Create a new file called test.php and in it put: FTP it to your web server and then look at it in your browser. It should tell you a whole lot of stuff about how PHP has been configured on your server. Regards Simon Garner --

Re: [PHP] Declaring SERVER-WIDE Variables

2001-03-01 Thread Simon Garner
array you would need to serialize() it first. Cheers Simon Garner From: "Michael David" <[EMAIL PROTECTED]> > Greetings, fellow PHP hackers! > > The current project I'm working on is porting software written in Tango to > PHP4. Because these programs heavily

Re: [PHP] Loss of connection handle object

2001-03-01 Thread Simon Garner
#x27;' > > Warning: Supplied argument is not a valid PostgreSQL link resource in > /var/wwwroot/php/PostgreSQLDataSource.php on line 67 > > > ----- > What happens if you do: open(); echo $db->connection; ?>

Re: [PHP] validating fields

2001-03-01 Thread Simon Garner
From: "W.D." <[EMAIL PROTECTED]> > I dont know how to do this, but Ive tried several things with no success. I > need to validate several form fields and here is the script I'm working > with... > > { > (eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email))? > header("Location: http://ww

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Simon Garner
is in the hidden field... So how do you verify that the logged in user is allowed to act on behalf of the other ID? You just have to keep reverifying that the client is allowed to do what they're doing. It's a chore I know - security usually is :( Cheers Simon Garner -- PHP Gener

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Simon Garner
d a > way to determine if something like that has happened. That's where my > description of what I was thinking of doing came from. > > Chris > Does the user have a password? You need to check if the password matches as well. Cheers Simon Garner -- PHP General Ma

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Simon Garner
lename of the script page into their form page. Bogus form data is a problem for everyone working with html forms. You're trying to find an esoteric solution to the problem, while overlooking the obvious: just check if the data is valid. Regards Simon Garner -- PHP General Mailing List (

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Simon Garner
g this anyway, since who knows what the user could type in your input box. Nevermind if somebody makes a copy of your form. Never never never trust the client. Cheers Simon Garner -- 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] regex frustration

2001-02-28 Thread Simon Garner
lson and Bob with > a comma so I can separate the first and last names in my DB > ^\D*\s will select the first name and the space, but I just > need the space. any ideas? > Or alternatively: Cheers Simon Garner -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] optimal way of counting votes in online poll

2001-02-28 Thread Simon Garner
e thing in your application. http://www.mysql.com/doc/F/u/Functions.html Cheers Simon Garner -- 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] multiple databases

2001-02-28 Thread Simon Garner
> Thanks > > Mick > Indeed you can: 7.19 SELECT Syntax "You can refer to a column as col_name, tbl_name.col_name, or db_name.tbl_name.col_name." http://www.mysql.com/doc/S/E/SELECT.html Cheers Simon Garner -- 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] multiple databases

2001-02-28 Thread Simon Garner
ables Persistent connections may or may not help. Using persistent connections could negate the connection time overhead, but you get a memory overhead instead - if you have 40 connections open, there's got to be 40 mysqld processes (threads?) running too. Cheers Simon Garner -- PHP General

Re: [PHP] Getting form name

2001-02-28 Thread Simon Garner
s intended for scripting purposes only. But you should be able to achieve the desired effect with a hidden INPUT element: Cheers Simon Garner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] what is wrong with this sniplet?

2001-02-28 Thread Simon Garner
ent, not HTML inside plain text). Try this: Dear sir, \n\n"; $mailBody .= "Below is the link you can click on, \n\n"; $mailBody .= "Please Click http://www.php.net\">Here to view the request details"; $mailHeaders = "From: mailto:[EMAIL P

Re: [PHP] Move a file from dir to another or delete file..?

2001-02-27 Thread Simon Garner
From: "Dhaval Desai" <[EMAIL PROTECTED]> > Hi! > > > Well I would like to move a file from one directoy to > another using php and a web browser. > I could just find a function to move an uploaded file > but not a normal file which is allready there in some > directory. > > > Is there an

Re: [PHP] Converting code to a function

2001-02-27 Thread Simon Garner
: But to do them as constants instead, do: Hope this helps. Cheers Simon Garner - Original Message - From: "Clayton Dukes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 28, 2001 3:51 PM Subject: [PHP] Converting code to a function Hi eve

Re: [PHP] How to PHP process a .phtml file, or capture the output from within PHP?

2001-02-27 Thread Simon Garner
fer to a file $fp = fopen("/usr/local/apache/htdocs/file.html", "w") or die("eek"); fwrite($fp, ob_get_contents()); fclose($fp); // and output the buffer to the browser ob_end_flush(); ?> And have a flick through: http://www.php.net/manual/

Re: [PHP] very off the topic questions here but hope someone can help out

2001-02-27 Thread Simon Garner
From: "Jacky@lilst" <[EMAIL PROTECTED]> > This is very off the topic question, people. But I just wanna see if > anyone has this experience and can tell me the procedure. I need > to change the registrant company of several domains we own to > the new company name. I only know that I need to do t

[PHP] Full mailbox

2001-02-27 Thread Simon Garner
ROTECTED]> Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 8648 invoked from network); 27 Feb 2001 23:25:20 - Message-ID: <004901c0a114$f09af980$[EMAIL PROTECTED]> From: "Simon Garner" <[EMAIL PROTECTED]> To: "Jaxon" <[EMAIL PROTECTED]>, <[

Re: [PHP] parse error on line after last one???

2001-02-27 Thread Simon Garner
4 ­ but functions.inc.php only > has 143 lines...! > > does this actually mean anything, or is it just poor error reporting?? I think this usually means you have opened a block (e.g. an if statement), and forgotten to close it. Cheers Simon Garner -- PHP General Mailing List (ht

Re: [PHP] JavaScript

2001-02-25 Thread Simon Garner
gt; > regards, > DT > > Yes, but it works differently. If the user typed in the URL of your page (instead of clicking a link) then you can't go back from PHP, so you need to be careful. Here's some sample code: Back Button"; ?> Cheers Simon Garner -- PHP

Re: [PHP] Simple String Replace Question

2001-02-25 Thread Simon Garner
ow the West was won. So the West is number one. Yay. (Just need to run it through stripslashes() to fix the don\'t.) Does this not work for you? Some troubleshooting ideas: Hope this helps Simon Garner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Regular expression problems

2001-02-25 Thread Simon Garner
ture :) (preg = PCRE = Perl Compatible Regular Expressions) Cheers Simon Garner -- 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] Regular expression problems

2001-02-25 Thread Simon Garner
preg instead of ereg, and then you need PCRE support in PHP. Or you could use ereg's character classes, I think the pattern would look like: "[^[:alphanum:]]". However you are probably better off using an explicit set of characters as I have shown, so that it is obvious what is and is

Re: [PHP] Script not updating

2001-02-25 Thread Simon Garner
ddress,suburb,state,post,areacode,phone,faxareacode,fax,email ,secret) VALUES ('$name','$company','$address','$suburb','$state','$post','$areacode','$phon e','$faxareacode','$fax','$email'

Re: [PHP] Simple String Replace Question

2001-02-25 Thread Simon Garner
n only guess you're getting confused because there's \r's as well as \n's in the string. Try this: Or alternatively: A CR is a carriage return, a LF is a line feed or newline. \r = CR, \n = LF. Unix files use only LF (\n) for new lines, whereas MS DOS/Windows uses CRLF (\r

Re: [PHP] Removing HTML codes using regexp

2001-02-25 Thread Simon Garner
7;<' ) ... > > Toke Herkild... > > Try striptags() http://php.net/striptags Cheers Simon Garner -- 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] Simple String Replace Question

2001-02-25 Thread Simon Garner
t; -bcdef-bcaadd > > Man, that went right over my head. Is there a description of > how this works anywhere? Thanks for help in any case. > Jeff Oien > Or you could just do this: That should give you: abc defg\n\nxyzpqr jklmno Works by replacing any \n with a space, as long a

Re: [PHP] checking $more still does not work !

2001-02-24 Thread Simon Garner
ot;Submit is pressed"; }; > ?> > > If you first load the php page, you don't see anything rather than a > submit button. If you press submit, you will see a message. > > Ahmad Anvari I think you need a value for the submit button: Cheers Simon Garner --

Re: [PHP] $result = $$function

2001-02-24 Thread Simon Garner
From: "Peter Van Dijck" <[EMAIL PROTECTED]> > Hi, > I'd like to do: > $function = "build_result()"; > $result = $$function; > but it doesn't seem to work. Try: Cheers Simon Garner -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Parsing a string

2001-02-23 Thread Simon Garner
t() accepts a regular expression for the separator, whereas explode() accepts just a normal string. The difference is, split() is slower. Cheers Simon Garner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

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

2001-02-23 Thread Simon Garner
aid I have no experience with PHP under Windows so I can't really help you there sorry. I'm not aware of any other way than environment variables to pass data to PHP scripts executed from the command line so you may be out of luck if they don't work under Windows. Perhaps someone e

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

2001-02-22 Thread Simon Garner
the -d option but it seems it doesn't work. > Is there any means of doing this ? > > > Leonard Schneider > Easiest way is using environment variables. file.html"); ?> Then in script.php you can do: Hope this helps, Simon Garner -- PHP General Mailing Li

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

Re: [PHP] mail prob

2001-02-22 Thread Simon Garner
$subject = $Email; > > $message = "Question from $FirstName $LastName:\n\n$Info"; > > > > mail("[EMAIL PROTECTED]", $subject, $message, "From: $from\nCc: > > [EMAIL PROTECTED]"); > > ?> > > > > I'm assuming you wanted to send a copy to [EMAIL PROTECTED] > > > > Please read the docs for mail(): http://php.net/mail > > > > > > Regards > > > > Simon Garner > > -- 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] mail prob

2001-02-22 Thread Simon Garner
D], [EMAIL PROTECTED], $subject, $message, $from); > ?> > See, your syntax is incorrect :P Try: I'm assuming you wanted to send a copy to [EMAIL PROTECTED] Please read the docs for mail(): http://php.net/mail Regards Simon Garner -- PHP General Mailing List (http://www.p

Re: [PHP] mail prob

2001-02-22 Thread Simon Garner
t; not > > > > > using appropriate variables in the function. > > > > > > > > > > > > > > > > > > > > > > You have to set the From header manually: > > > > > > > > > > > > &g

Re: [PHP] mail prob

2001-02-22 Thread Simon Garner
quot;[EMAIL PROTECTED]"; > > $from = "[EMAIL PROTECTED]"; > > $subject = "Blah"; > > $body = "Lorem ipsum dolor sit amet."; > > > > mail($to, $subject, $body, "From: $from"); > > ?> > > > >

Re: [PHP] mail prob

2001-02-22 Thread Simon Garner
#x27;m not > using appropriate variables in the function. > > You have to set the From header manually: http://www.php.net/manual/en/function.mail.php Regards Simon Garner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: [PHP]

2001-02-22 Thread Simon Garner
syntax features and language constructs which can significantly improve code performance and manageability -- use them! Now this code could easily be extended to give each state a descriptive name, and to create a generic listbox-drawing function which you can then re-use elsewhere in your program (o

Re: [PHP] Counter Help

2001-02-22 Thread Simon Garner
rror), because there is no index matching "donkey" (the value of the constant "foo"). But for some reason PHP looks for an array index matching the string "foo" as well, encouraging this kind of sloppy programming. Regards Simon Garner -- PHP General Mailing List

Re: [PHP] passing variables in javascript

2001-02-22 Thread Simon Garner
g it (\#antitrust), but the doesn't work. > > Any suggestions would be appreciated ... > > Nick > You have to encode each part of the query string on the URL correctly: http://www.domain.com/biz/pubs.html#antitrust"); ?>', 'email','width=410,heigh

Re: [PHP] String manipulation with ereg_replace

2001-02-22 Thread Simon Garner
ce which supports evaluating PHP code for the replacement. To use preg functions you need to have compiled PHP with PCRE (Perl Compatible Regular Expression) support. http://www.php.net/manual/function.preg-replace.php3 This should do the trick (untested!): "; $contents = preg_replace(&qu

Re: [PHP] Generating percentages of numbers

2001-02-22 Thread Simon Garner
in the group. But you can't group the data here (you want to select all page rows from the table) so these grouping functions are not usable. He will need to do two queries: I think... From: "Christian Reiniger" <[EMAIL PROTECTED]> > On Thursday 22 February 2001 00:0

Re: [PHP] Tough one?

2001-02-22 Thread Simon Garner
From: "Tim Ward" <[EMAIL PROTECTED]> > a quite neat (though maybe no more efficient) way would be ... > > $keys = array_keys($HTTP_POST_VARS); > $key_list = array(); > foreach($keys as $fred) > { $key_list() = $fred."='".$HTTP_POST_VARS[$fred]."'"; > } > $updateString=$updateString.implode(

Re: [PHP] getting what's between

2001-02-22 Thread Simon Garner
> $data = "Item3Item3 Has Changed"; > > eregi("([^>]+)([^>]+)", $data, $regs); > > echo $regs[1]; // "Item3" > echo $regs[2]; // "Item3 Has Changed" > ?> Oops sorry, that fourth line should sa

Re: [PHP] getting what's between

2001-02-22 Thread Simon Garner
$data, $regs); echo $regs[1]; // "Item3" echo $regs[2]; // "Item3 Has Changed" ?> A good guide to regular expressions (which are absolutely indispensible if you want to do much work with strings) is here: http://www.delorie.com/gnu/docs/rx/rx_toc.html Cheers Simon Garner -- 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] Generating percentages of numbers

2001-02-22 Thread Simon Garner
From: "Blake S." <[EMAIL PROTECTED]> > I have a database of numbers: > > TOTAL HITS: 1000 > PAGE 1: 500 > PAGE 2: 250 > PAGE 3: 250 > > How can I query these numbers and display back a percentage number? For > instance with the numbers above: > > PAGE 1: 50% > PAGE 2: 25% > PAGE 3: 25% > > Or is

Re: [PHP] pop textarea field w/ text incl. quotes

2001-02-21 Thread Simon Garner
. "" ?> > > > > I wanted a graphical representation of the present link displayed above the > > textarea and then attempted to use php's substitution to build the text area > > within the same string. I updated my code to be more like yours and arrived >

Re: [PHP] htaccess problems disabling phplib

2001-02-21 Thread Simon Garner
Override. I'm not actually sure what the override setting you need is, but you could try Options or just All. http://httpd.apache.org/docs/mod/core.html#allowoverride Example: AllowOverride All ... Of course, if you're able to edit httpd.conf then you could just put

Re: [PHP] pop textarea field w/ text incl. quotes

2001-02-21 Thread Simon Garner
</a> Which should render as a link, followed by a textarea with the HTML code for that link. If you want the first link to render as code as well then you need to run it through htmlspecialchars() too. Cheers > - Original Message - > From: "Simon Garner" <[EMAIL PROTEC

Re: [PHP] pop textarea field w/ text incl. quotes

2001-02-21 Thread Simon Garner
uotes - the problem is that you have HTML markup inside your . You just need to convert < and > to < and >, respectively, in your link text. The functions htmlspecialchars() or strip_tags() can do this for you. i.e.: " . htmlspecialchars($link) . ""; ?> When the fo

Re: [PHP] % Help

2001-02-20 Thread Simon Garner
find was at http://www.php.net/manual/en/ref.math.php, but it is far > from clear (to me at least). > Well, this is a mathematical concept rather than PHP language-specific. :) Cheers Simon Garner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] php and javascript

2001-02-20 Thread Simon Garner
From: "Carl Natale" <[EMAIL PROTECTED]> > I need some help passing a variable to a popup window. The following form > collects input from the user and stores it in the variable $summary. > > print ""; > $summary = "Hellow universe"; > print " "; > print " onClick=\"window.open('hint.php', 'remot

Re: [PHP] object/array with repeating values

2001-02-20 Thread Simon Garner
T this FROM that WHERE here and you won't get any duplicates. Great huh? :) Refer to the MySQL manual at http://www.mysql.com/docs/ for more details. Cheers Simon Garner -- 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] Function/method syntax limitations

2001-02-20 Thread Simon Garner
e, I tried that :) > > // Instead have to do: > > $temp = $test->childTest(); > > $foo = $temp->blah(); > > Might work.. never had need to test it and cant be bothered now but would be > intereted to hear if it works.. > > James > Cheers Simon Garner

Re: [PHP] Help me! What is wrong?

2001-02-20 Thread Simon Garner
ons, mod_imap, mod_asis, > > mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, > mod_negotiation, mod_mime, mod_log_config, mod_env, mod_vhost_alias, > > http_core > > Please I need some advise!!! > Thanks Ana Carolina Howcome you are installing

Re: [PHP] Does anyone have a link to ImageMagick's web site?

2001-02-20 Thread Simon Garner
From: "Brandon Orther" <[EMAIL PROTECTED]> > Hello, > > Does anyone have a link to ImageMagick's web site? > > Thank you, > > > Brandon Orther > WebIntellects Design/Development Manager > [EMAIL PROTECTED] > 800-994-6364 > www.webintellects.com > --

[PHP] Function/method syntax limitations

2001-02-20 Thread Simon Garner
->childTest()->blah(); // Instead have to do: $temp = $test->childTest(); $foo = $temp->blah(); :-( Regards Simon Garner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] PHP SSI

2001-02-20 Thread Simon Garner
mote server needs to run PHP and do something like this where the banner will appear: http://your-adserver.dom/banner.php?id=1234"); ?> Cheers Simon Garner -- 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 do I ....

2001-02-20 Thread Simon Garner
x27;m thinking of changing a few of the things > is giving me like: > > session.use_cookie and/or session.save_path or anything else they list there. > > My question.. how do you do it? > > Thanks > Mike > I think you'll find those settings in your php.ini file.

Re: [PHP] Newbie: [PHP] $HTTP_POST_VARS

2001-02-20 Thread Simon Garner
From: "Chris Lee" <[EMAIL PROTECTED]> > I dont think HTTP_POST_VARS is what your looking for I think its more > HTTP_SERVER_VARS > > echo $HTTP_SERVER_VARS['HTTP_HOST']; > ?> > > That should work but imho better practice is to use getenv(): This is especially useful inside a function, a

Re: [PHP] HTTP Content-length...

2001-02-20 Thread Simon Garner
echo $encodedstring; // Will output: foo%3Dbar%26food%3Dapple If "bar" and "apple" were variables, you would rather urlencode() them individually. Cheers Simon Garner -- 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] unlik by sending variabel?

2001-02-20 Thread Simon Garner
From: "Jan Grafström" <[EMAIL PROTECTED]> > Hi! > I am trying to get a file deleted when I send a variabel with the value > "delete". > I have this file: > > - > $message = ereg_replace("\r","", $message); > $message = "$message$name; > $fp = fopen (basename($PHP_SELF) . ".xml", "a"); > fwrit

Re: [PHP] Where do i look up return status codes?

2001-02-20 Thread Simon Garner
From: "George Herson" <[EMAIL PROTECTED]> > How do i find out what the return status of an exec() executed command > means? For example, i have the line > > $ciphertext = exec("perl /home/httpd/cgi-bin/passgen.pl > $plaintext",$arr,$retstat); > > which makes $retstat = 126. > > thanks, > geo >

Re: [PHP] Re: sending variables

2001-02-20 Thread Simon Garner
From: "Ifrim Sorin" <[EMAIL PROTECTED]> > In test1.php you shoul have > > $qry=getenv("QUERY_STRING"); > $rosen=substr($qry,6); > print("$rosen"); > ?> > > Sorin Ifrim wtf? Most certainly do NOT do it like that. That's a ridiculous kludge. Rosen, when you say "it doesn't work" w

Re: [PHP] Newbie passwordcheck-program problem

2001-02-20 Thread Simon Garner
x27;t get any output. $exec_pwd contains an object (an instance of your "password" class). If you want to output the return value from checkpwd(), do: $exec_pwd = new password; print $exec_pwd->checkpwd(); I think you may be a bit confused about how variables, classes and objects wo

Re: [PHP] mail() not working

2001-02-18 Thread Simon Garner
Hi Jacky, Check that the value of sendmail_path in your php.ini is correct (restart Apache after making any changes). You can confirm the value with phpinfo(). PHP will not show any error if it cannot find/use the mailer. Cheers From: "Jacky@lilst" <[EMAIL PROTECTED]> > I have syntax belo