[PHP-WIN] Unable to load dynamic library 'C:\PHP\php_mssql.dll'

2005-04-13 Thread Ross
I get the follwing message whrn trying to install tyhe mysql modules PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP\php_mssql.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: The path is correct. What could be wrong? -- PHP Windows Mailing Li

[PHP-WIN] Unable to load dynamic library 'C:\PHP\php_mssql.dll'

2005-04-13 Thread Ross
I get the follwing message whrn trying to install tyhe mysql modules PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP\php_mssql.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: The path is correct. What could be wrong? -- PHP Windows Mailing List

[PHP-WIN] For all the people who were asking about words format

2002-02-18 Thread Ross Fleming
Right, for those that were looking to search through word documents, then may i suggest they look at the source for wvWare found http://www.wvware.com/ ? Basically it's an OSS project that turns word docs to HTML files, so I'm sure anyone that was inclined could figure out how they're doing it an

RE: [PHP-WIN] Re: WinXP Error Passing Variables (and creating)

2002-02-19 Thread Ross Fleming
Try this instead. I couldn't get Devon's to work on my system either, but this one does. Note the use of the empty() function which tests a string for emptiness. Let me know if it works? Test Form No data yet, or username is empty."; } else { echo "Username: " . $username; } ?>

RE: [PHP-WIN] PHP Authentication

2002-02-22 Thread Ross Fleming
You could always just do the authentication simply from IIS Ross -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: 22 February 2002 07:55 To: Christoph Grottolo Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] PHP Authentication Well, then you simply can't use

RE: [PHP-WIN] "The connection with the server was reset"

2002-02-22 Thread Ross Fleming
em) which might very well override PHP's timeouts. These are only hypotheses, but can you humour me and look into them? I'm a bit confused as to why you're passing the file through twice though? Also, are these files definately not binary? In which case the fopen attribute is wrong. Ross

RE: [PHP-WIN] "The connection with the server was reset"

2002-02-22 Thread Ross Fleming
r, in fact I've personally used something like that for something similar (writing a remote file to the server) Let me know? Ross -Original Message- From: Ronny Salomonsen [mailto:[EMAIL PROTECTED]] Sent: 20 January 2002 09:13 To: [EMAIL PROTECTED] Subject: [PHP-WIN] "The conn

[PHP-WIN] pathinfo();

2002-02-26 Thread Ross Fleming
ion for it? Cheers Ross and PS, It's not an option to upgrade the servers, they're not mine and the syssies don't even support version 3, they just make it available. :( -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] pathinfo();

2002-02-26 Thread Ross Fleming
Given there wasn't any feedback, I just wrote my own function that works under PHP3 and does exactly what pathinfo() does. If anyone wants a copy, email me and I'll send it back. (thought I expect demand to be low!) Cheers Ross -Original Message- From: rxf [mailto:rxf]On

RE: [PHP-WIN] mail() function EXTREMELY slow

2002-02-26 Thread Ross Fleming
I hope you're not spamming... ;) In php.ini: max_execution_time=30 ; Maximum execution time of each script, in seconds Change it to what you need. The speed is pretty much dependent on your SMTP server though. Ross -Original Message- From: Matt Hillebrand [mailto:[

RE: [PHP-WIN] mail() function EXTREMELY slow

2002-02-26 Thread Ross Fleming
te or two to send a handful of emails! I read an article that said you could use your ISP's SMTP server for the mail() function, but that didn't seem to work. Matt Hillebrand Web Developer [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -Original Message- From: Ross F

RE: [PHP-WIN] mail() function EXTREMELY slow

2002-02-27 Thread Ross Fleming
Every heard of anything transferring smoothly in the world of IT?... ;) It should do though, but I guarantee you'll find something though! R >Everything should transfer smoothly since I'm using >Apache/MySQL/PHP, using >$DOCUMENT_ROOT and forward slashes everywhere, right? -- PHP Windows M

RE: [PHP-WIN] any comment?

2002-03-01 Thread Ross Fleming
all versions of PHP (including 3.x and 4.x), a new version of PHP has been released. Details about the security issue are available here. All users of PHP are strongly encouraged to either upgrade to PHP 4.1.2, or install the patch (available for PHP 3.0.18, 4.0.6 and 4.1.0/4.1.1). Ross -Origin

Re: [PHP-WIN] sendmail for windows

2002-03-08 Thread Ross Fleming
The 192.168.0.xxx range are used in Microsofts Internet Connection Sharing I believe. The host PC (the one with the actual internet connection, modem whatever) is 192.168.0.1, the rest of the computers on the network are assigned up from one, so 192.168.0.2 will be the second pc attached to the n

RE: [PHP-WIN] Re: create an AUTOLINK?

2002-03-21 Thread Ross Fleming
I think that it may not work if you're using the php module in the CGI mode. I don't think web servers accept header information in this case?... My suggestion is to use the refresh tag? Ross -Original Message- From: Ljungan [mailto:[EMAIL PROTECTED]] Sent: 21 March 200

[PHP-WIN] Any credability lost...

2002-03-23 Thread Ross Fleming
It is after 6am, I am just going to bed after several friends have left my flat after copious amounts of vodka consumed. Just thought people might be interested to hear and share any similar stories! :) OK, bed now, up-time and hang-over in 4½ hours now. Yha R -- PHP Win

RE: [PHP-WIN] explode

2002-03-24 Thread Ross Fleming
ing_var by the space character and returns an array of all the words that are in $string_var. $words_var is now an array of strings with a word in each element. Ross -Original Message- From: KONUS [mailto:[EMAIL PROTECTED]] Sent: 15 March 2002 19:20 To: [EMAIL PROTECTED] Subject: [PHP-WI

RE: [PHP-WIN] Parse error when using Javascript & php?

2002-03-29 Thread Ross Fleming
while ($row = mysql_fetch_array($result)) { $id = $row['id']; $news = $row['news']; echo "$news"; ?> Spot the missing closing brace } -Original Message- From: Todd WIlliamsen [mailto:[EMAIL PROTECTED]] Sent: 29 March 2002 18:31 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Parse error when u

RE: [PHP-WIN] Configuring securely in IIS5 under Windows 2000 Server

2002-04-02 Thread Ross Fleming
net where a security loophole was found, but it didn't concern windows users I believe. Because the PHP development is a very much open-source project, any holes are spotted and repaired much faster than, say, a hole was discovered in IIS. Can anyone else confirm this with me? Ross -Origina

RE: [PHP-WIN] Re: Security using Apache & Windows

2002-04-02 Thread Ross Fleming
ing for apache: http://p.webring.com/navcgi?ring=apachesupport;list Have fun! :) Ross -Original Message- From: Tim Mackenzie [mailto:[EMAIL PROTECTED]] Sent: 02 April 2002 16:47 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: Security using Apache & Windows No one can help?! Please,

RE: [PHP-WIN] Configuring securely in IIS5 under Windows 2000 Server

2002-04-02 Thread Ross Fleming
files on windows. ->http://www.php.net/release_4_1_2_win32.php ->[ this was not a problem for IIS you will be running ] ~ b r y a n -Original Message- From: Ross Fleming [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 10:51 AM To: Eric Gentry; [EMAIL PROTECTED] Subject: RE: [P

RE: [PHP-WIN] Failed opening for inclusion

2002-04-04 Thread Ross Fleming
ghing at me in the street and sigh yes I'm drunk again Ross -Original Message- From: LaserJetter [mailto:[EMAIL PROTECTED]] Sent: 04 April 2002 21:01 To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Failed opening for inclusion I didnt think you can do that. It might work i

RE: [PHP-WIN] imagecreatefrom functions

2002-04-06 Thread Ross Fleming
RTM, according to the manual, you need the GD extention installed to create and write to gif's, but you can get info for images without the extention. also, it says that the gd extention needs to be v1.6 or below to support the gif functions. Ross -Original Message- From: bene [m

RE: [PHP-WIN] imagecreatefrom functions

2002-04-06 Thread Ross Fleming
ould be so kind to forward a working link? Ross -Original Message- From: bene [mailto:[EMAIL PROTECTED]] Sent: 06 April 2002 15:54 To: [EMAIL PROTECTED] Subject: [PHP-WIN] imagecreatefrom functions Fatal error: Call to undefined function: imagecreatefromgif() this is the error which a

RE: [PHP-WIN] Rounding

2002-04-08 Thread Ross Fleming
Multiply by 100, take the absolute value and divide by 100 again -Original Message- From: Wayne Hinch [mailto:[EMAIL PROTECTED]] Sent: 08 April 2002 20:36 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Rounding Hi all, Is it possible to round to 2 decimal places in PHP without having to pus

RE: [PHP-WIN] Rounding

2002-04-09 Thread Ross Fleming
Absolute, round, same thing.. ;) Cheers mate Ross -Original Message- From: Mike Flynn [mailto:[EMAIL PROTECTED]] Sent: 09 April 2002 00:30 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Rounding At 09:43 PM 4/8/02 +0100, Ross Fleming wrote

RE: [PHP-WIN] Rounding

2002-04-09 Thread Ross Fleming
d I'm sure we'll all agree on that! ;D Ross -Original Message- From: Mike Flynn [mailto:[EMAIL PROTECTED]] Sent: 09 April 2002 18:23 To: Svensson, B.A.T. (HKG) Cc: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Rounding At 05:49 PM 4/9/02 +0200, Svensson, B.A.T. (HKG) wrote: >Th

RE: [PHP-WIN] checking for characters

2002-04-09 Thread Ross Fleming
This was posted to the same group ages ago: if(ereg( "^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|net|com|gov|mil|org|edu|int)$" ,$email)) { //email address is valid } else { // it ain't } Or something like that. I'd personally use a couple of explodes though Ross -

RE: [PHP-WIN] checking for characters

2002-04-09 Thread Ross Fleming
For completeness, I thought I'd give the original poster the credit (just found it): Marko Mihalec <[EMAIL PROTECTED]> -Original Message- From: Ross Fleming [mailto:[EMAIL PROTECTED]] Sent: 10 April 2002 01:33 To: Matt Hillebrand; 'Egil Helland'; 'brother'

RE: [PHP-WIN] checking for characters

2002-04-10 Thread Ross Fleming
characters Don't forget about the new .name, and I thought I might mention that preg()/PCREs would be the way to go if you're trying to make your code readable. Matt -----Original Message- From: Ross Fleming [mailto:[EMAIL PROTECTED]] For completeness, I thought I'd give th

RE: [PHP-WIN] String reduce

2002-04-12 Thread Ross Fleming
;;;_Mot3;;;Mot4_Mot5;;Mot6 My solution? Recursively replace ";;" with ";" until the string doesn't get any shorter. This one works and is pretty neat: Returns: Mot1;Mot2;Mot3;Mot4;Mot5;Mot6 as required Regards Ross -Original Message- From: Nicola Del

RE: [PHP-WIN] PHP and ZIP

2002-04-12 Thread Ross Fleming
Easiest solution I can think of would be to find a copy of the dos executable, pkzip and use the exec(); command to run that. Otherwise I'm stumped Ross -Original Message- From: Nicole Amashta [mailto:[EMAIL PROTECTED]] Sent: 12 April 2002 17:33 To: [EMAIL PROTECTED] Subject: [PH

RE: [PHP-WIN] pspell activation

2002-04-18 Thread Ross Fleming
so is not suitable for running under the windows operating system. Your options are (in order of feasability and ease): a) install linux b) decide what functions you need and write them yourself using the standard PHP libraries c) install a program called cygwin (linux emulator) Ross -Origi

Re: [PHP-WIN] re: $POST vars

2002-04-23 Thread Ross Fleming
If by "safe" you mean physically safe, then yes, I can confirm that you will be in no physical danger if you make this assumption, neither the web server nor the browser will explode if you try this, thereby leaving you rather safe... ;-) Ross Matt Babineau wrote: > When submitt

RE: [PHP-WIN] installing on a remote web host

2002-04-24 Thread Ross Fleming
It's already installed and enabled, they've told you that. Simply call your pages .php or .phtml (whatever they tell you to call them) instead of .html Ross -Original Message- From: rob [mailto:[EMAIL PROTECTED]] Sent: 25 April 2002 02:58 To: [EMAIL PROTECTED] Subject

RE: [PHP-WIN] Re: executing an external program

2002-04-28 Thread Ross Fleming
n a happier note, what you are probably trying to achieve may be possible. If you only want to extract data from a winword file, then take a look at COM which I believe should do that. Ross -Original Message- From: Webmaster [mailto:[EMAIL PROTECTED]] Sent: 27 April 2002 22:18 To: [EMAI

RE: [PHP-WIN] Re: executing an external program

2002-04-28 Thread Ross Fleming
s doesn't work in win2K, maybe someone on this list may know an alternative?.. Ross -Original Message- From: Rainer Bruch [mailto:[EMAIL PROTECTED]] Sent: 28 April 2002 23:30 To: [EMAIL PROTECTED] Subject: AW: [PHP-WIN] Re: executing an external program hey ross, thanks for your help b

[PHP-WIN] Running winamp thru php (was "executing an external program")

2002-04-28 Thread Ross Fleming
andle); sort ($filelist); // alphabetize the files for ($i=0; $i<$count; $i++) { $link = urlencode($filelist[$i]); echo "$filelist[$i]"; } ?> Ross -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Running winamp thru php (was "executing an external program")

2002-04-28 Thread Ross Fleming
Apparently this doesn't work on win2k though, and replacing the line with exec("CMD /C START c:\progra~1\winamp\winamp.exe \"$link\" >NUL"); I'm told doesn't seem to work. If anyone has suggestions, I'm open R -Original Message- From: Ross

RE: [PHP-WIN] Re: i'm stuck guys

2002-04-29 Thread Ross Fleming
00:00 GMT");// Date in the past header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header (

RE: [PHP-WIN] Cant get PHP to run on Win 98

2002-04-30 Thread Ross Fleming
Make sure register_globals=On is set in your php.ini Ross -Original Message- From: Jeff Britts [mailto:[EMAIL PROTECTED]] Sent: 30 April 2002 21:13 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Cant get PHP to run on Win 98 I just started learning PHP and have looked to solve this issue

RE: [PHP-WIN] Simple string function help needed

2002-05-02 Thread Ross Fleming
Here you go: $string = substr($string, 0, -4); Ross -Original Message- From: RS Herhuth [mailto:[EMAIL PROTECTED]] Sent: 04 May 2001 02:06 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Simple string function help needed List, This is an easy one but I'm under the gun and need some

RE: [PHP-WIN] win 2000 smtp server

2002-05-04 Thread Ross Fleming
No not really, given that a lot of mail servers won't trust a private smtp server (in case of spamming), I went down that path myself once, and several institutes will just reject the mail outright. Ross -Original Message- From: Paul Roberts [mailto:[EMAIL PROTECTED]] Sent: 04 May

RE: [PHP-WIN] Small Doubt in PHP Manual...pls help

2002-05-05 Thread Ross Fleming
e random text However, since newline characters are of little or not significance in the land of HTML, I can't see this affecting you, however if they don't mention these things, people will submit it as a bug. Hope that helped Ross -Original Message- From: theN [mailto:[EMAIL P

RE: [PHP-WIN] How do i get SSI (Server Side Include) to work

2002-05-05 Thread Ross Fleming
We'll charitably assume your frustration accounts for your rudeness shall we? To paraphrase "I have a problem that is not related to PHP, yet I will ask it here anyway, and please, don't waste my time with suggestions, just give me the damn answer". Try RTFM or asking politely on an apache forum

RE: [PHP-WIN] Apache 2.0.35 w/ PHP 4.12 -HELP

2002-05-05 Thread Ross Fleming
Someone answered didn't they? Put quotes round the c:\programer.dll and all should be well. Ross -Original Message- From: Alex [mailto:[EMAIL PROTECTED]] Sent: 04 May 2002 22:51 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Apache 2.0.35 w/ PHP 4.12 -HELP I used - LoadM

RE: [PHP-WIN] Download monitor

2002-05-06 Thread Ross Fleming
s method) and you'd need a time-out on the session vars (like a timestamp on it) in case the script terminates prematurely and the flag is never reset. Have fun, and feel free to ask me to explain anything, it works in my mind at least! Ross -Original Message- From: Olivier Hubert

RE: [PHP-WIN] XML parsing

2002-05-10 Thread Ross Fleming
ram. It's worth a go. http://www.w3.org/People/Raggett/tidy/ Ross -Original Message- From: Carl Lerche [mailto:[EMAIL PROTECTED]] Sent: 10 May 2002 05:23 To: [EMAIL PROTECTED] Subject: [PHP-WIN] XML parsing Hello, I have a question regarding XML parsing. Ok, I have an XML file th

Re: [PHP-WIN] Newline in file using fputs

2002-05-16 Thread Ross Fleming
Congratulations on discovering the difference between windows and linux carriage returns. :) There are 2 types of new-line character, \r (carriage return, ie move the cursor back the the left hand side of the screen) and \n (new line, strictly interpreted as "move cursor down one line, but not a

Re: [PHP-WIN] Newline in file using fputs

2002-05-16 Thread Ross Fleming
Just to clarify, is the problem getting explorer to save the name properly?... or is it still the carriage returns? Isn't it amazing how typewriters are cause problems in todays programming exercises?... :) and yes, u can call me Ross :) R Henry Grech-Cini wrote: > B.A.T.Svenss

RE: [PHP-WIN] Line feeds and WRAP="soft" TEXTAREA element

2002-05-30 Thread Ross Fleming
Thanks for that, if only because I didn't know PHP included the "foreach" function, useful to know. :) Ross >-Original Message- >From: Michael Reynolds [mailto:[EMAIL PROTECTED]] >Sent: 31 May 2002 04:36 >To: [EMAIL PROTECTED] >Subject: Re: [PHP-WIN] Line

RE: [PHP-WIN] How to pass passwd Server <-> Client in a "secure" way

2002-06-10 Thread Ross Fleming
he fact that it is calculated client-side, since a good crypto suite should not be compromised simply by having the algorithm available. In fact, for a secure connection, at least some of the work must be done at the client end. Hope that helps! :) Cheers Ross > -Original Message---

RE: [PHP-WIN] Re: Apache 2.0.36 + PHP + Win2000 Server

2002-06-10 Thread Ross Fleming
ver I'd be dubious as to how stable apache2 would be just now, and would personally stick with 1.3 My 2cents Ross > -Original Message- > From: Scott Hurring [mailto:[EMAIL PROTECTED]] > Sent: 10 June 2002 20:25 > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] Re: Apache

RE: [PHP-WIN] PHP installation problem: php4ts.dll

2002-06-15 Thread Ross Fleming
Copy of php4ts.dll in c:\windows\system? You don't mention it in your double triple check. Ross > -Original Message- > From: Jacques Steyn [mailto:[EMAIL PROTECTED]] > Sent: 15 June 2002 17:30 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP-WIN] PHP

RE: [PHP-WIN] How to Show my Own Error Message Instead of Mysql Error?

2002-06-20 Thread Ross Fleming
couldn't be opened). Ross > -Original Message- > From: Christian Leberfinger [mailto:[EMAIL PROTECTED]] > Sent: 21 June 2002 06:58 > To: Jack; [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] How to Show my Own Error Message Instead of Mysql > Error? > > > H

RE: [PHP-WIN] what's the MIME type of ".zip" in PHP?I only know "image/jpeg" and "text/html".THANKS

2002-06-21 Thread Ross Fleming
All of them AFAIK: http://www.isi.edu/in-notes/iana/assignments/media-types/media-types > -Original Message- > From: Îâ±ó [mailto:[EMAIL PROTECTED]] > Sent: 21 June 2002 12:58 > To: php > Subject: [PHP-WIN] what's the MIME type of ".zip" in PHP?I only > know "image/jpeg" and "text/html".T

RE: [PHP-WIN] Newbye question

2002-06-23 Thread Ross Fleming
Check out the new global_register that phpv4.2 employs, variables cannot be set in the http request anymore, in order to access texto, you need to access $_GET[texto] > -Original Message- > From: Saci [mailto:[EMAIL PROTECTED]] > Sent: 23 June 2002 05:56 > To: [EMAIL PROTECTED] > Subject:

RE: [PHP-WIN] Using Bzip2 to create an archive...

2002-06-24 Thread Ross Fleming
Yes, this guy is the biggest pain in the ass known to man IMO. Anyone know how to get him unsubscribed to stop it happening?... Ross > -Original Message- > From: Mikey [mailto:[EMAIL PROTECTED]] > Sent: 24 June 2002 18:43 > To: [EMAIL PROTECTED] > Subject: FW: [PHP-WIN]

[PHP-WIN] Check for a listening port...

2002-07-07 Thread Ross Fleming
ing. Any ideas? Cheers Ross -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Check for a listening port...

2002-07-07 Thread Ross Fleming
Never mind, after an hour of scouring the manual I found out about sockets and knocked this up: http://localhost:8000/listen.pls";); } else { echo "Server is down"; } socket_close ($socket); ?> -Original Message- From: Ross Fleming [mailto:[EMAIL PROTECTED]] Sent: 07

[PHP-WIN] COM stalls the server..

2002-07-07 Thread Ross Fleming
a setting in php.ini I have to play with? (I've looked but can't find anything) It seems to work from the command line, but not through a browser. Config: Win XP Pro (administator) Apache 1.3.26 PHP 4.2.1 Ross -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Re: COM stalls the server..

2002-07-09 Thread Ross Fleming
being able to use COM, for the benefits of testing, I was logged in as administrator which makes me doubtful that the cause lies there?... Would appreciate any other advice you might have. Cheers Ross -Original Message- From: Scott Hurring [mailto:[EMAIL PROTECTED]] Sent: 08 July 2002 22:33

RE: [PHP-WIN] Formless post question

2002-07-11 Thread Ross Fleming
y best reading it line at a time ($reading=fread($socket_name, 4096); followed by an echo $reading; until the end of the file). Hope that helps! Ross -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED]] Sent: 11 July 2002 14:04 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Formless

[PHP-WIN] Quick request (ereg?)

2002-07-14 Thread Ross Fleming
geniuses out there helping me :) Cheers Ross -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Quick request (ereg?)

2002-07-14 Thread Ross Fleming
Oops! Obviously, I mean strip alphanumerics and spaces from a string. :D > -Original Message- > From: Ross Fleming [mailto:[EMAIL PROTECTED]] > Sent: 15 July 2002 02:08 > To: PHP Windows mailing list > Subject: [PHP-WIN] Quick request (ereg?) > > > Hi folks,

[PHP-WIN] Re: [PHP] Problem on file_exists()

2002-07-16 Thread Ross Fleming
You shouldn't need to escape the space (I don't in XP). Examples of how I use it... $file_path = "C:\\documents\\ross\\file.mp3"; if (file_exists($file_path)) { echo "exists"; } else { echo "doesn't exist"; } Ross > -Original

RE: [PHP-WIN] Problem on file_exists() function

2002-07-17 Thread Ross Fleming
It's likely a permissions problem under NT. > -Original Message- > From: Jack [mailto:[EMAIL PROTECTED]] > Sent: 17 July 2002 08:55 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP-WIN] Problem on file_exists() function > > > Dear all > I had made a test.txt file which stored

RE: [PHP-WIN] Problem in passing parameters

2002-07-17 Thread Ross Fleming
Which variables? I hope you mean $_POST[username] and $_POST[password] ? If not, read the manual about accessing variables. Otherwise, let us know Ross > -Original Message- > From: Lung [mailto:[EMAIL PROTECTED]] > Sent: 12 July 2002 16:26 > To: [EMAIL PROTECTED] > Su

RE: [PHP-WIN] reading input from a magnetic stripe and then parsing it to a MySQL database for querry?

2002-07-25 Thread Ross Fleming
hat I am trying to do actually is maintain > bank accounts through a secure server. What needs to happen is to allow > users to access their bank accounts over the Internet, but through a > card swiping system. Yeah.. NOT SO FUN TO ACCOMPLISH it.. but Thanks > anyways for your response R

RE: [PHP-WIN] reading input from a magnetic stripe and then parsing it to a MySQL database for querry?

2002-07-30 Thread Ross Fleming
. Are you trying to secure a website with a card swipe or something?... That would likely involve the PHP script running at the same time as the card swipe happening. And having the card swipe attached to the web-server. More details are really needed. Ross > -Original Message- >

[PHP-WIN] pop3 communication

2002-08-08 Thread Ross Fleming
knowledge of the php functions, there isn't one that can do this automatically for me, which leaves me (I'd imagine) with using sockets and actually negotiating with the server directly. So, anyone done this already? Feasible? Anyone see any problems? Appreciate the input Ross -- P

RE: [PHP-WIN] pop3 communication

2002-08-08 Thread Ross Fleming
Thanks a lot, didn't occur to me that the IMAP functions would work with POP servers. Appreciate the rapid response :) Ross > -Original Message- > From: Vail, Warren [mailto:[EMAIL PROTECTED]] > Sent: 08 August 2002 23:33 > To: 'Ross Fleming'; PHP Windows

RE: [PHP-WIN] pop3 communication

2002-08-08 Thread Ross Fleming
Note to anyone else who wants to use the imap functions, you need to enable the relevant extension in php.ini Damn these sneaky attempts to hinder my progress! ;) Ross > -Original Message- > From: Ross Fleming [mailto:[EMAIL PROTECTED]] > Sent: 08 August 2002 23:38 > To:

RE: [PHP-WIN] Newbie needs help.

2002-08-11 Thread Ross Fleming
ly you just get php to execute these same queries, meaning there is no new learning to be done) Good luck :) Ross > -Original Message- > From: Steve Jackson [mailto:[EMAIL PROTECTED]] > Sent: 11 August 2002 22:35 > To: Php-Windows > Subject: [PHP-WIN] Newbie needs help. >

RE: [PHP-WIN] date and time

2002-08-13 Thread Ross Fleming
See http://www.php.net/manual/en/function.mktime.php to make unix time stamps from the date/times. It's an integer denoting the number of seconds that have passed since the Unix Epoch (1/1/1970 0:00). The greatest integer is the later date/time Ross > -Original Message- > Fr

RE: [PHP-WIN] mail() function

2002-08-13 Thread Ross Fleming
Yes you can. Check you're getting a valid email address in the variable $retrieveuseremail, try echoing it before the mail() function: echo $retrieveuseremail; mail($retrieveuseremail, "Subject", "Body of email"); Ross > -Original Message- > From: Mar

RE: [PHP-WIN] Redirect

2002-08-20 Thread Ross Fleming
It may sound rather obvious, but don't send any header information :) The error you are getting means that you have echoed or printed something to the output, and have already started generating the HTML page. Don't do this. Jump into the php code straight away (no introductory HTML code) and te

RE: [PHP-WIN] Query within Mail Function

2002-08-20 Thread Ross Fleming
Ross PS Just as an added bonus tip: Don't store an age in a database. I'm 21 now, but won't be in a month. Store a dob and calculate it from that > -Original Message- > From: James Meers [mailto:[EMAIL PROTECTED]] > Sent: 20 August 2002 13:32 > To:

RE: [PHP-WIN] resolution?

2002-08-20 Thread Ross Fleming
e of the window using javascript or whatever. Ross > -Original Message- > From: Afan Pasalic [mailto:[EMAIL PROTECTED]] > Sent: 20 August 2002 18:00 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] resolution? > > > Hi, > how an I find resolution on visitors monitor

RE: [PHP-WIN] resolution?

2002-08-20 Thread Ross Fleming
The definitive point is... you can't do it in php. exit(1); Ross > -Original Message- > From: Afan Pasalic [mailto:[EMAIL PROTECTED]] > Sent: 20 August 2002 18:36 > To: Svensson, B.A.T. (HKG); Php Win32 list > Subject: Re: [PHP-WIN] resolution? > > > Y

RE: [PHP-WIN] resolution?

2002-08-20 Thread Ross Fleming
That's not the question that was asked however. He asked whether you could show an image dependant on what the resolution was, ie without user intervention (removing the need for the user to scroll through the various images or make a selection at all) I stand by my answer.

RE: [PHP-WIN] Any good tutorials on working with IMAP/POP3 and php

2002-08-20 Thread Ross Fleming
eally going to come from you however. That's more a case of programming defensively (which imo should be done as a matter of course these days) Have fun Ross > -Original Message- > From: R.S. Herhuth [mailto:[EMAIL PROTECTED]] > Sent: 20 August 2002 20:57 > To: [EMAI

RE: [PHP-WIN] Checkbox problem

2002-08-21 Thread Ross Fleming
able $_POST['delete'] will now contain "Delete Selected", but it is only necessary to test that this variable is set and not empty. ie Ross > -Original Message- > From: Kit Kerbel [mailto:[EMAIL PROTECTED]] > Sent: 21 August 2002 15:41 > To: [EMAIL PROTECTE

RE: [PHP-WIN] Newbie: Setting content type

2002-08-21 Thread Ross Fleming
s explorer telling you that it expected an xml doc but didn't receive one Ross > -Original Message- > From: Baz Langton [mailto:[EMAIL PROTECTED]] > Sent: 21 August 2002 16:13 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Newbie: Setting content type > > > How do

RE: [PHP-WIN] php.net down?

2002-08-21 Thread Ross Fleming
Logic dictates that the entire network isn't down, since this mail is getting through ;) however the website does appear to be down. Ross > -Original Message- > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]] > Sent: 21 August 2002 17:37 > To: Php Win32 list &g

RE: [PHP-WIN] Newbie: Setting content type

2002-08-21 Thread Ross Fleming
Because that's not an xml document. By defining content-type: text/xml, you are telling any webbrowser to expect an xml document, and then not delivering one. The sample code you've sent doesn't generate any output whatsoever, try it from the command line and see. Ross > ---

RE: [PHP-WIN] php.net down?

2002-08-21 Thread Ross Fleming
subset of php.net. Since we know that lists.php.net works, we can say that php.net is not broken. However we can say that www.php.net IS broken. :D However, it is never safe to assume, since when we do so, we make an "ass" out of "u" and "me" ;) Cheers R

RE: [PHP-WIN] php.net down?

2002-08-21 Thread Ross Fleming
Cheeky gits. Especially the cowardly person who had to be censored... ;) Ross > -Original Message- > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]] > Sent: 21 August 2002 18:08 > To: Php Win32 list > Cc: Ross Fleming > Subject: RE: [PHP-WIN] php.net down?

RE: [PHP-WIN] finding out if a key exists in an associative array

2002-08-22 Thread Ross Fleming
http://www.php.net/manual/en/function.array-key-exists.php The manual is a wonderous thing... ;) Ross PS It may interest you to know, placing an @ sign at the start of functions or declarations ignores any errors you might get > -Original Message- > From: R.S. Herhuth [mailto:

RE: [PHP-WIN] finding out if a key exists in an associative array

2002-08-22 Thread Ross Fleming
isset won't work if the array value is set to NULL... > -Original Message- > From: Steel [mailto:[EMAIL PROTECTED]] > Sent: 22 August 2002 13:58 > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] finding out if a key exists in an associative > array > > > Hi R.S., > > Thursday, August 22

RE: [PHP-WIN] browser bug?

2002-08-25 Thread Ross Fleming
You haven't really told us the bug... Tell us the output and it would also be handy if you could provide an example of code which causes the error. Ross > -Original Message- > From: arch [mailto:[EMAIL PROTECTED]] > Sent: 25 August 2002 13:34 > To: [EMAIL PROTECTED] &g

RE: [PHP-WIN] array way....

2002-08-25 Thread Ross Fleming
}) check before assigning them however, in case you only get $myvar1, $myvar3, $myvar4 etc. Always program defensively, it saves hassle in the long run. Hope that helps Ross > -Original Message- > From: crizz [mailto:[EMAIL PROTECTED]] > Sent: 25 August 2002 17:21 > To: [E

RE: [PHP-WIN] accessing the regisry with php

2002-08-25 Thread Ross Fleming
. What are you trying to achieve? There may be another option if u tell us what you're accessing it for :) Ross > -Original Message- > From: Kevin Fonner [mailto:[EMAIL PROTECTED]] > Sent: 25 August 2002 19:34 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] accessing the

RE: [PHP-WIN] include() and file() on remote files

2002-08-27 Thread Ross Fleming
while(!feof($fp) && $fp) { echo fread($fp, 4096); } @fclose($fp); ?> HTH Ross > -Original Message- > From: Rudolf Staribacher [mailto:[EMAIL PROTECTED]] > Sent: 26 August 2002 22:16 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] include() and file() on remote file

RE: [PHP-WIN] skipping quotes...

2002-08-27 Thread Ross Fleming
url encode it? At a guess that is, I haven't tried it. the funtion is either urlencode($myrow[copy]) or url_encode($myrow[copy]) not sure which. > -Original Message- > From: Afan Pasalic [mailto:[EMAIL PROTECTED]] > Sent: 27 August 2002 22:20 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN]

RE: [PHP-WIN] mail() I get crazy from this...

2002-08-28 Thread Ross Fleming
e you're up the proverbial creek Ross > -Original Message- > From: Peter [mailto:[EMAIL PROTECTED]] > Sent: 28 August 2002 12:57 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] mail() I get crazy from this... > > > Hello, > I repeat: my PHP mail() function does not

RE: [PHP-WIN] mail() I get crazy from this...

2002-08-28 Thread Ross Fleming
n relay one, however, good mail servers have black-lists of smtp servers that are "open" and so refuse connections from them. It's a fight against spam really Ross > -Original Message- > From: Peter [mailto:[EMAIL PROTECTED]] > Sent: 28 August 2002 13:51 > To:

[PHP-WIN] Is there a PHP-WIN FAQ?

2002-08-28 Thread Ross Fleming
Questions I can think of are: (.) How do I get mail() to work? (.) I have a script that doesn't print out the variables I POST to it... (.) I have an error saying "Headers already sent", what does that mean? What does everyone think? Cheers Ross -- PHP Windows Mailing List (http:

RE: [PHP-WIN] how to do an html include on Windows?

2002-08-28 Thread Ross Fleming
I posted this not 24 hours ago that does this -Original Message- From: Ross Fleming [mailto:[EMAIL PROTECTED]] Sent: 27 August 2002 11:19 To: Rudolf Staribacher; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] include() and file() on remote files So far as I know, Linux etc does not have any

[PHP-WIN] getallheaders() help!

2001-09-10 Thread Ross Fleming
Hello, I've used php before, but have only just installed it on my win98 machine at home with apache for the first time. Does anyone have ANY idea why I get "Call to undefined function: getallheaders()" ? Is there a certain extension I should be loading? Appreciate any hel

  1   2   3   >