Re[2]: [PHP] str_replace to ignore commas

2004-01-06 Thread Richard Davey
ove all comma's and carriage returns, the following: New York, was here will become exploded as: New Yorkwas here Perhaps you don't want to actually remove carriage returns at all, but rather substitute them with spaces - like I said though, it depends on your original data. -- Bes

Re[2]: [PHP] [Fwd: failure notice] Why??

2004-01-06 Thread Richard Davey
it's obviously not. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can a module find a resource in its environment.

2004-01-06 Thread Richard Davey
? :) Because they're not really modules in the C sense, you're just including a file - the fact it's a PHP one isn't determined by PHP itself, nor by the file extension. You could be "requiring" an HTML document for all PHP cares :) -- Best regards, Richard

Re: [PHP] counting charactors

2004-01-06 Thread Richard Davey
Hello Philip, Tuesday, January 6, 2004, 6:25:34 PM, you wrote: PJN> can someone point me to the right place for a thing that PJN> would count charactors in a string? count_chars() and strlen() -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP G

Re: [PHP] if("NANC" < 0) - always evaluates TRUE...

2004-01-06 Thread Richard Davey
Hello Ivo, Tuesday, January 6, 2004, 6:57:52 PM, you wrote: IP> ...no matter what follows the NANC...seems like a bug. IP> // output IP> err 3 IP> err 4 Not for me it doesn't. It outputs nothing (as it should). -- Best regards, Richardmailto

Re[2]: [PHP] session issues for unauthorized access?

2004-01-06 Thread Richard Davey
same. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Syntax Highlighting

2004-01-06 Thread Richard Davey
class/function that does it? -- Best regards, Richard mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Bizzare form problem - Please Help!

2004-01-06 Thread Richard Davey
contents for however long you want the session to exist and when they go back to that page (either by typing the URL in directly or using the Back button in their browser) the data will be ready for you to populate the form with. If you want some example code just shout. -- Best regards, Ric

Re: [PHP] supressing include warnings....

2004-01-06 Thread Richard Davey
ed via HTTP it includes the output of it anyway (as opposed to the actual source code), so it's the same end result as fopen(). -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Verifying a url

2004-01-06 Thread Richard Davey
r if you can check if SSL is being used? I'm pretty sure the following would work: if ($_SERVER['SERVER_PROTOCOL'] == "HTTP/1.1") { echo "Normal site"; } -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing L

Re[2]: [PHP] supressing include warnings....

2004-01-06 Thread Richard Davey
If that doesn't work for you perhaps a different method of opening the file is required? (Socket access maybe) -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with Picture Name

2004-01-06 Thread Richard Davey
traphe ie ( DM> ' ) or ( " )? I know this isn't a usual format, and I tried htmlsecialchars DM> ENT_QUOTES but it still saves the picture name onto the server like such: DM> photo\'.jpg. Strip them out (use the stripslashes() function) before savi

Re: [PHP] i need help help with include

2004-01-07 Thread Richard Davey
ant to do the same thing, but unsetting the variable at the start protects it from over-writing via passthru data. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] localhost mail

2004-01-07 Thread Richard Davey
rent SMTP server for this purpose? -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Richard Davey
ticed one Only if you use the GET method. This won't happen if you use POST. You still need to validate the data at the "other end", but it would stop casual URL hacking. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] Timezone and time() and date()

2004-01-07 Thread Richard Davey
his will be whatever the operating system is configured to be. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] upload picture

2004-01-07 Thread Richard Davey
P Manual for source code examples, details and pretty much all you need to know. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Magazine Download version

2004-01-07 Thread Richard Davey
s the generation of the PDF file, then it tries to save it and I always end up with a file of 0 bytes in size. Maybe it's just too busy/overloaded? -- Best regards, Richard mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Problem with while loop

2004-01-07 Thread Richard Kurth
I can't seam to get this while loop to work properly. It should create a message that has the first two lines and then it will list all the domain that meat the criteria. $lines = "The following are web sites that are at 95% usage or more of there web space\n"; $lines = "Site Name Used(MB

Re: [PHP] PHP code documentation tool

2004-01-08 Thread Richard Davey
Hello Karam, Thursday, January 8, 2004, 3:41:36 PM, you wrote: KC> Is there any tool like doc-o-matic for PHP or anybody KC> developing something like that? http://www.phpdoc.de/ -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] Buffalo'ed, stumped, confused...

2004-01-08 Thread Richard Davey
(hence the whole point of them) and you can access it with: $_POST['miles'][0] Checkboxes are different and will require [] added to the form field name. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Please check this program (its working)

2004-01-09 Thread Richard Davey
nning until it completes with no "Execution time" error. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rand() problem

2004-01-10 Thread Richard Davey
) function first, or it will return the same numbers each time. Use srand() to do this. Also, are you passing in values to the rand() function? (your min and max values) - on Windows there is a limit on the max value of 32,768. -- Best regards, Richardmailto:[EM

Re: [PHP] Exception number: c0000005 (access violation

2004-01-11 Thread Richard Davey
ut to be something like a combination of htmlspecialchars() and urldecode() on a string. Removing the command, which was absolutely correct from a syntax point of view, stopped the problem happening. On my live FreeBSD server it never happened, only on the test box. -

Re: [PHP] Caps or No caps

2004-01-11 Thread Richard Davey
ase = strtoupper() First letters capped = ucfirst() and ucwords() Download the PHP manual and keep a local copy of it, then search it for "uppercase" and you'll find what you need. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] How do I write to an XML file

2004-01-12 Thread Richard Davey
the xml file, then have a support person TB> add an answer to the xml file. XML files are just plain text files. If you can write to text files already then you can write to/create an XML file too. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mai

Re: [PHP] Did I choose the correct download?

2004-01-12 Thread Richard Davey
Hello, Monday, January 12, 2004, 10:58:56 AM, you wrote: F> Why doesn't it mention Windows XP? Do I need to download another program? The readme hasn't been updated. XP is a modified 2K/NT core anyway. It'll work just fine. -- Best regards, Richard

Re: [PHP] file upload - But outside of web directory...?

2004-01-12 Thread Richard Davey
ithin your web root) and use a CRON job to move them where you really want them at set intervals, again if executed with the right permissions this would also work. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to open a webpage

2004-01-12 Thread Richard Davey
ver the client like that. What it can do however is echo out the HTML required to make it happen. Either some JavaScript, or a link with the TARGET attribute set to be $launch. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http

Re[2]: [PHP] how to open a webpage

2004-01-12 Thread Richard Davey
ed. CS> You can open Web pages just like local files: CS> $handle = fopen('http://www.example.com/', 'r'); Depends on your meaning of the word "open" though doesn't it? :) I think the original post meant it in the context of &

Re[2]: [PHP] view outputed headers?

2004-01-12 Thread Richard Davey
Hello Ivo, Monday, January 12, 2004, 6:41:49 PM, you wrote: IP> I've been using mozilla firebird as a test browser with the 'Live HTTP IP> Headers' extension. I've found it most useful. It's not free, but I use "HTTP Interceptor" for Windows which is ex

Re: [PHP] MySQL query

2004-01-12 Thread Richard Davey
AMK> query, or do I have to do some PHP processing of the datetime field to AMK> get what I need? SELECT whatever FROM table WHERE date_column_name BETWEEN '2004-01-09 00:00:00' AND '2004-01-04 23:59:59' -- Best regards, Richardmailto:[EMAIL

Re[2]: [PHP] MySQL query

2004-01-12 Thread Richard Davey
n include the seconds, try it and see what happens. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] MySQL query

2004-01-12 Thread Richard Davey
what important factors like that should be stated in the original post. John has graciously given you the solution already I see. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Upload Name Mangling Question

2004-01-12 Thread Richard Davey
your web host (and it probably is) use this function: getimagesize() Specifically, look at the 2nd index in the returned array (the image type). You could also try: exif_imagetype() But it depends how PHP has been compiled (it'll need exif support enabled). -- Best regards, Richard

Re: [PHP] iteration of $GLOBAL

2004-01-12 Thread Richard Davey
ion I don't believe there is any one command to do it, you can access the globals through the $GLOBALS array and use any of the many array functions to walk through it, modify them, echo them, etc. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General M

Re: [PHP] class functions where the function name == class name

2004-01-13 Thread Richard Davey
ne GY> simple database class but it failed horribly, and I'm curious to if the GY> initiated functions have anything to do with them. It's called the constructor and no, you don't always have to have one. -- Best regards, Richardmailto:[EMAIL PRO

Re: [PHP] Sending session ID without cookie

2004-01-13 Thread Richard Davey
ointer into the CGI version which read them out and reconstructed the session and then did the same when I left the CGI version. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Richard Davey
p://www.yourcgiscript.com?a=1&b=2&c=3/";, "r"); -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Accessing a website from within a php script

2004-01-13 Thread Richard Davey
print $contents; print '' . "\n"; ?> -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Accessing a website from within a php script

2004-01-13 Thread Richard Davey
eb site failed. Does the way fopen() accesses the web BS> different from how Internet Explorer does it? It passes a different header to Internet Explorer, but technically is doing the same thing (i.e. requesting the page via HTTP). -- Best regards, Richardmailto:[EM

Re: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Richard Davey
Hello Dave, Tuesday, January 13, 2004, 12:34:33 PM, you wrote: DC> sql = mysql_query("select *, count(id) as cnt from table where DC> somefield=\"somevar\""){ It's nothing to do with your function, simply that your SQL is invalid. -- Best regards, Richard

Re[2]: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Richard Davey
fine and works as expected. Is this MySQL? If so you can't have a COUNT + SUM without a GROUP BY. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Re: jpeg Uploader issue

2004-01-13 Thread Richard Davey
t it to the browser prior to the image data itself. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Empty Reference to an Object

2004-01-13 Thread Richard Davey
er you wanted), if not passed in it'll be null. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie question

2004-01-13 Thread Richard Davey
ook I'm guessing it isn't very long), will be able to pinpoint cause of the error then. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Destroy all session data...

2004-01-13 Thread Richard Davey
the session tmp files from the session_tmp directory. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] Re: jpeg Uploader issue

2004-01-13 Thread Richard Davey
t-Ranges: bytes Content-Length: 6324 Content-Type: image/gif The image in question was actually: http://tucows.easynet.net/images/logo.gif Just happened to be on that page at the time :) -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] how to display a font with two words???

2004-01-13 Thread Richard Davey
o? I guess you're echo'ing it out? The following would work: echo "blah"; echo 'blah'; The second option will work if you've not variables that need displaying on that line. -- Best regards, Richardmailto:[EMAIL PROTECTED] --

[PHP] Can php select which ini file to use?

2004-01-13 Thread Richard Davey
first because of all the Zend extensions it's trying (but failing) to load. -- Best regards, Richard mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Can php select which ini file to use?

2004-01-13 Thread Richard Davey
t confirmed that for sure :) -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Can php select which ini file to use?

2004-01-13 Thread Richard Davey
ment, which is what I need. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] Can php select which ini file to use?

2004-01-13 Thread Richard Davey
See the reply to my original thread from Greg Beaver, I never wanted to run them simultaneously. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP,MySQL problem

2004-01-14 Thread Richard Davey
you want to use that comes in via the form. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] nested tags

2004-01-14 Thread Richard Davey
e again? Might be helpful to give an example of what you want to turn a nested table tag into. I mean, it's perfectly valid being nested the way it is. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New List Memegber Question

2004-01-15 Thread Richard Davey
t instead, otherwise... welcome :) -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Junk Mail from this List?

2004-01-15 Thread Richard Davey
ing "Please verify you wish to send this person an email" mails, along with mailloop errors, out of office replies, etc etc etc. Just the price to pay for posting I'm afraid (he says as he hits send and gets another load back). -- Best regards, Richard

Re: [PHP] best paractice example page creation php / mysql

2004-01-15 Thread Richard Davey
If this isn't possible, post a few more details about what you want to achieve and perhaps your table schema. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables

2004-01-15 Thread Richard Davey
Hello Alex, Thursday, January 15, 2004, 9:47:27 PM, you wrote: AH> How do you insert a php variable into a javascript function? AH> function redirect() { location = ; } function redirect () { location = ; } -- Best regards, Richardmailto:[EMAIL PROTECTED] -

Re: [PHP] Forms, ListBoxes, Validating Errors.

2004-01-16 Thread Richard Davey
selected was?) -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] random html +(hi)

2004-01-16 Thread Richard Davey
our original script, but this way is a lot less maintenance - you can just upload a whole bunch of new images into the folder and the script will see them automatically without needing to mess with a $total variable. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please help me with these questions..

2004-01-16 Thread Richard Davey
sername = $_GET['username']; ***Strongly*** suggest you download yourself a copy of the PHP manual, I am on a Windows PC so personally I use the CHM version for speed and built-in searching. You can find example code for ALL of the questions you asked in there. -- Best regards, Ri

Re: [PHP] PHP or Apache Problem?

2004-01-16 Thread Richard Davey
Hello Nick, Friday, January 16, 2004, 12:39:16 PM, you wrote: NW> Line 19 is a simple include() but uses 'http://' rather than a local NW> path (i cannot change this)... allow_url_fopen is almost certainly disabled in your php.ini file. -- Best r

Re[2]: [PHP] PHP or Apache Problem?

2004-01-16 Thread Richard Davey
can that be? - is this another setting I'm missing? Why do you have code comments OUTSIDE of the php tags? I can't say for sure, but it wouldn't surprise me if it caused it. Does this make any difference? :- -- Best regards, Richardmailto:[EMAIL PR

Re: [PHP] Syntax Error -> This is WEIRD!

2004-01-16 Thread Richard Davey
de function for some reason). 2) b.php has an error in it which is being echo'd out by a.php Remember, a.php will not actually "include" the b.php code and then run it, it will just request and display the output from b.php - so if that script causes an error,

Re[2]: [PHP] PHP or Apache Problem?

2004-01-16 Thread Richard Davey
Hello Nick, Friday, January 16, 2004, 2:31:46 PM, you wrote: NW> I dont. That's just in my email to tell where the code begins ;-) NW> line 1 is just NW> mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Schedule an Event with PHP

2004-01-16 Thread Richard Davey
ways, but none as reliable. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dynamic array creation from form elements

2004-01-16 Thread Richard Davey
to. Also you don't need to array_push it, you could just do: $aListItems[] = $tempItem; -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please reply as fast as possible..

2004-01-17 Thread Richard Davey
have no wish to teach yourself, so why should any of us? RTFM. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POST method for hyperlink

2004-01-17 Thread Richard Davey
POST method using forms Not really, no. One solution might be to use mod_rewrite on Apache so at least it could look like: http://localhost/Calendar/active_layout/d/2.1.2004 (or something like that). -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General

Re: [PHP] compare lists

2004-01-18 Thread Richard Davey
t found } else { // do stuff } -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Richard Davey
TML/Java Applet Parameters/PDF files and all kinds. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Im having Trouble with File uploading,

2001-01-10 Thread Richard Lynch
> "C:\nusphere\apache\htdocs\morgan\php\database\CMS\pdf"); This string contains a newline... You need \\ on each of those, or just use / and I think it will make everybody happy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP] Session cookie expiration

2001-01-10 Thread Richard Lynch
There are settings in php.ini for that, I think... - Original Message - From: Michal Thomka <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Wednesday, January 10, 2001 4:24 AM Subject: [PHP] Session cookie expiration > > > I am working on an aplication which uses sessions, and I w

Re: [PHP] strip_tags ?

2001-01-10 Thread Richard Lynch
I don't think it looks for specific HTML tags to strip. Anything that looks like or is going to get yanked. In other words, it strips *EVERY* HTML tag, no matter how obscure. - Original Message - From: "Jon Rosenberg" <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Wednesday, Janua

Re: [PHP] Cannot send session cache limiter - headers already sent Cannot send session cookie - headers already sent by

2001-01-10 Thread Richard Lynch
I think you want to do more like this: session_start(); if (!session_is_registered('cart')){ session_register('cart'); $cart = array(); } - Original Message - From: "JB" <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Wednesday, January 10, 2001 3:43 PM Subject: [PHP] Cannot se

Re: [PHP] Each site with its php.ini?

2001-01-10 Thread Richard Lynch
> Hi. Does anybody knows how to have different configuration options, that is, > different php.ini files, for several different sites that reside on the same > server? > I have IIS and the CGI version of PHP 4.04. H... I dunno how IIS does Virtual Hosting, but maybe you could have a differen

Re: [PHP] ibase (firebird) localhost login ?

2001-01-10 Thread Richard Lynch
Most dbs use "localhost" for that, and the database username/password that is configured into the database software/tables... I know nothing of Interbase, but that's how all the others work... If "localhost" doesn't work for the host, try "127.0.0.1" - Original Message - From: "Chris Ha

Re: [PHP] Websites warned over first hypertext virus, is it true?

2001-01-10 Thread Richard Lynch
Either it's not the first, or it's pretty old news... And if it's the same old virus from before, the referenced article didn't even bother to describe the virus and how to detect remove it, which other articles have done -- They just hawk their wares. Search the archives for "PHP Virus" and you

Re: [PHP] Accessing Common Log Format (CLF) info.

2001-01-10 Thread Richard Lynch
I doubt it... On busy servers, those files must get so huge, there's no way Apache can be trying to keep it all in RAM. So, pretty much, Apache logs it and forgets it. The only place that data exists is in the log file... Unless you hack the Apache logging routine to send it to your database o

Re: [PHP] Sessions / Var Tracking

2001-01-10 Thread Richard Lynch
> I am interested in logging people in against a MySQL database, and then > storing temporary session data about them that would include anonymity > stats, permissions, and variable tracking from page to page in a MySQL > Database. (As opposed to insecure POST/GET/Cookie methods). I'm a trifl

Re: [PHP] behaviour of system()

2001-01-10 Thread Richard Lynch
> I'm running Suse 7.0 as root, apache runs as wwwrun, so i guess the php > calls also run as wwwrun. Not only does php run as wwwrun, it also runs with a different shell, environment, and most notably path than you do when you log in. You should probably just get in the habit of providing full

Re: [PHP] Running an .exe on localhost

2001-01-10 Thread Richard Lynch
> Can somebody please give me a starter in trying to run a local application > (.exe) from a html button eg. Does it involve exec() or system() ? And if > so, could somebody give me an example. I'm too dim to learn any other way ;) exec("C:/program files/whatever/full/path/something.exe", $output

Re: [PHP] How to develope and add a new user function or lib or extention to php

2001-01-10 Thread Richard Lynch
> How to develpe and add a lib or extension or user function to php. I want to > make things easy. The idea case is, I don't need to change my current php, > just add the new module to the current php. You want to read about "PEAR". How the functins you describe will be any more secure than usin

Re: [PHP] unique id

2001-01-10 Thread Richard Lynch
*WHY* not use auto_increment? Would the builtin http://php.net/uniqid function not work better? *NEVER* seed the random number generator more than once per script. Call srand() once, and only once. The return() statement will return the MySQL resource ID, which is probably not useful, but all

Re: [PHP] Serving files form DB

2001-01-10 Thread Richard Lynch
You could save yourself a whole lot of headaches by putting the files in the file-system, and storing only the path in the database... Also, IE and Netscape use different things to populate the filename box on the download dialog... One uses Content-disposition header(), and one uses whatever ha

Re: [PHP] FATAL: emalloc() error

2001-01-10 Thread Richard Lynch
What arguments are you passing to odbc_exec()? - Original Message - From: Justin Smith <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Tuesday, January 09, 2001 1:07 PM Subject: [PHP] FATAL: emalloc() error > I'm trying to query an MS Access database via ODBC, but the odbc_exec > com

Re: [PHP] Discussion board recommendation

2001-01-10 Thread Richard Lynch
Phorum? - Original Message - From: "H. Wade Minter" <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Tuesday, January 09, 2001 2:36 PM Subject: [PHP] Discussion board recommendation > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I'm looking for a PHP/MySQL-or-Postgres based di

Re: [PHP] Change Array Data

2001-01-11 Thread Richard Lynch
$cart['product17'] = 42; #order lots of these. unset($cart['product4']; # Don't need any of those. You probably should re-read the first section of the PHP Manual at http://php.net/manual A lot of the basics like this are in there to get you going strong. - Original Message - From: Kers

Re: [PHP] Cookies

2001-01-11 Thread Richard Lynch
http://php.net/setcookie Not sure why you want to put them in a cookie, though. The browser is going to keep representing the $HTTP_AUTH_USER and password variables as long as they don't quit their browser... - Original Message - From: "David Smith" <[EMAIL PROTECTED]> Newsgroups: php.g

Re: [PHP] image through php

2001-01-11 Thread Richard Lynch
Search the Code Archives linked from http://php.net/links.php Basically, it's just this: There are different twists and turns depending on how you want the image cached, and whether you want the images inside your web-tree or not, and if you want just GIF or a more general-purpose solution or.

Re: [PHP] Iterating Multidimensional Arrays

2001-01-11 Thread Richard Lynch
What output did you get? What did you expect? - Original Message - From: "Cybercandy Ltd" <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Thursday, January 11, 2001 6:54 AM Subject: [PHP] Iterating Multidimensional Arrays > I'm a bit stuck on this issue > > The following script prod

Re: [PHP] Help---using pdfs with PHP

2001-01-11 Thread Richard Lynch
What's URL?... Is that the actual code you have? If so, the browser is going to try to do a *RELATIVE* path to that, I think... - Original Message - From: Sam <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Thursday, January 11, 2001 7:25 AM Subject: [PHP] Help---using pdfs with PHP

Re: [PHP] Post automaticly

2001-01-11 Thread Richard Lynch
Yes. Search for "PostToHost" and "Rasmus Lerdorf" in google, dogpile, or whatever. Or, dig through Manuel Lemos' class libraries for a OO version. - Original Message - From: Knut Sætre <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Thursday, January 11, 2001 10:00 AM Subject: [PHP] P

Re: [PHP] Redhat 7 problem and fix

2001-01-11 Thread Richard Lynch
{} inside of "" now does order-of-operations, I think... Something like that. It's in the docs somewhere. I thought this was a PHP3 -> PHP4 change, not related to RedHat nor ereg in particular... - Original Message - From: Michael Kimsal <[EMAIL PROTECTED]> Newsgroups: php.general Sen

Re: [PHP] Lost connection to MySQL server during query

2001-01-11 Thread Richard Lynch
>[MySQL broken on Solaris?] > Any help appreciated - otherwise I have to go look at postgresql :( Hey, watch it! PostgreSQL rocks! I personally always find myself ham-strung by MySQL's lack of sub-selects and aggragates not allowed in the where clause... You can work around it, but it's a PITA

Re: [PHP] JavaScript/PHP documentation

2001-01-11 Thread Richard Lynch
I *think* the JavaScript (and DHTML and whatnot) utilize server-side code to detect your browser and come up with different code. The alternative is to crash some browsers, which is not so nice. :-^ I think some complaints were even received at php.net from other webmasters who stole the site wh

Re: [PHP]

2001-01-11 Thread Richard Lynch
> when was 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] killing the session

2001-01-11 Thread Richard Lynch
Force that page not to be cached. You're probably building a new session with all the date from the cart... See the Code Archives linked from http://php.net/links.php Search for "cache" and use all the related headers you can find. - Original Message - From: "Angel Behar" <[EMAIL PROTE

Re: [PHP] ik

2001-01-11 Thread Richard Lynch
k - Original Message - From: <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Thursday, January 11, 2001 5:01 PM Subject: [PHP] ik j -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

<    6   7   8   9   10   11   12   13   14   15   >