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
Lo folks,
Maybe I've just never seen it, but is there an official php-win faq
circulating? I'm sure regular readers like me will have noticed the assault
of questions that keep occurring time and time again? If there isn't a faq,
what does everyone think about starting one?
Questions I can thi
No you don't want to become an ISP. You should have one. Who PROVIDES you
with your "cheap fast ADSL line"? That is your ISP. Contact them and ask
them for their SMTP servers.
As for Anders' solution of the open relay, this may be hard to find. I
previously used an open relay one, however, g
Why MUST you have one?? To my knowledge, Hotmail isn't a pop/smtp server.
It's web based mail. An SMTP server receives copies of email from you, and
forwards them on to the correct server. That's all. You could certainly
try turning your own machine into an SMTP server, but I would doubt that
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]
So far as I know, Linux etc does not have any problem with a statement such
as include("http://www.yahoo.com";);
However it is fairly simple to work around in Windows, I do it all the time.
The following code will produce the same output:
http://www.yahoo.com","r";);
while(!feof($fp) && $fp) {
fopen on system.dat and user.dat? For win9x at least, I've no idea where xp
and such store the registry. In fact, not having a 9x machine to hand, I
couldn't tell you how easy it is to interpret the two registry files. I
would imagine it's bloody dangerous and difficult though.
What are you tr
You are indeed correct in your assumption as to the line which causes the
problems.
Replace the line $myarray[$i]= $myvar.$i; with
$myarray[$i] = ${"myvar".$i};
It should solve your problems. You might want to do an isset(${"myvar".$i})
and an !empty(${"myvar".$i}) check before assigning them
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]
> Subject: [PHP-WIN]
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
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:[EMAIL PR
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?
oss
> -Original Message-
> From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]]
> Sent: 21 August 2002 17:45
> To: Ross Fleming; Php Win32 list
> Subject: RE: [PHP-WIN] php.net down?
>
>
> Logic does not dictate anything here, since a natural language
> can'
n, or try again later.
>
>
> ------
> --
> --
>
> XML document must have a top level element. Error processing resource
> 'http://localhost/php%20test/info.php'.
>
>
>
>
>
>
>
>
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
> Subject: [PHP-WIN]
There must be a problem in your xml code that you are generating then.
header("Content-type: text/xml"); is indeed how you set the content type to
an xml page, as your test shows. The problem being is that phpinfo()
generates an html document, not an xml one. The error you got was explorer
tel
You sound a little confused as to how php works... Specifically the line
onclick=""
This is ALWAYS going to be executed, and before the user even clicks this
button. When the user visits the page, php will set this session variable
to "true" (incidently as a rule of thumb, use =1 instead of ="t
It's remarkably easy to get the hang of. I recently built a php app to do
just this, and after some great pointers from this list found:
http://www.devshed.com/Server_Side/PHP/PHPMail/PHPMail1/page1.html which
pretty much teaches you all you need to know. The industrial strength stuff
is really
Ross
> -Original Message-
> From: Corn Vollney-R7019C [mailto:[EMAIL PROTECTED]]
> Sent: 20 August 2002 18:42
> To: 'Afan Pasalic'; Ross Fleming; Svensson, B.A.T. \(HKG\)
> Subject: RE: [PHP-WIN] resolution?
>
>
> Correction...you could use php to build a simple app. to
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?
>
>
> Yeah,that's true! That point I fo
You don't. I'd be more than annoyed if a web site could find out details
that specific to me. The resolution of the screen is inconsequential
anyway, there's no guarantee that they've got their browser window
maximised. Web page design shouldn't really be concerned with this type of
information
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: [EMAIL PROTECTED]
> Subject: [PHP
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
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: Marlene Burckhalter [mailto:[EMAIL PRO
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-
> From: Sandeep
You searched online for these answers??
http://www.php.net/manual/en/install.iis.php to install IIS
Where did you install mysql to? If you went with the default installation,
it will be in c:\mysql right? Run the program mysql.exe in the /lib folder
and learn how to do the commands that create
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:
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
Hi folks,
Just mulling over the prospect of future projects, and I fancy writing a php
script that can check the details of my unread email in a pop3 mailbox (ie
sender, date and subject). Does anyone have (or know where I can get)
functions that have been written to do this task? From my knowl
Eh?? Well first off I wouldn't be using php to do it... I'd use a language
such as C++ or VB to do it, given you're probably wanting to communicate
with a serial/parallel/usb port to drive the reader and extract the
(probably) binary data from a card swipe, I don't know how well (if at all)
PHP w
> -Original Message-
> From: Mentor Mala [mailto:[EMAIL PROTECTED]]
> Sent: 25 July 2002 08:33
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] reading input from a magnetic stripe and then
> parsing it to a MySQL database for querry?
> -- NOT AT ALL.. Thanks.. what I am trying to do actua
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]
> Subject: [PHP-WIN] P
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
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 Message-
> From: Chris Hewitt [mailto:[EMAIL PROTECTED
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,
Hi folks, I'm looking for a quick & easy way to strip out all characters
except alphanumerics and spaces. Is there a function specifically for this?
I know the answer probably lies with an ereg but unfortunately don't know
enough about these RE's, would appreciate any Perl geniuses out there
hel
If I understand it, you COULD simply have a page with a form that points to
the CGI script, but you want to simulate this instead, correct?
If this is the case, you need to send that data as part of the HTTP headers
when requesting the page (instead of simply fputs-ing the GET / HTTP/1.1 or
whate
he COM implementation and the
Excel instance would never terminate so after a few
minutes, there'd be so many open Excel instances that
the computer would really slow down.
I'd imagine that on a server, the problem would be
magnified.
--
Scott Hurring
Systems Programmer
EAC Corporatio
Hi again
I'm trying a bit of COM programming in PHP but can't for the life of me
figure out what's wrong. I've tried both Winamp (have winampCOM installed)
and MS Word and it just seems to stall the server whenever I view a page
with it. Can anyone explain why or is there a setting in php.ini I
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
Hi all
Short request: I'm looking for a php script that will test for a listening
port, (specifically port 8000 on the same server, say localhost). Basically
if port 8000 is active, I want to redirect to that, otherwise display a page
that says "service offline" or something.
Any ideas?
Cheers
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] Using Bzip2 to
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:
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
One additional point to clarify: the @ sign in front of the mysql_query
_suppresses any error/warning that may be generated by PHP. It can be
useful on many occasions in PHP (the example that usually springs to my mind
it opening files, to ensure that a warning is not displayed if the file
couldn
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 installation problem: php
Further to Scott's answer, he's right in the fact that Apache is beta for
windows, but stable, however the apache group have ALWAYS said that apache2
would be more secure/stable for windows, as it is an entirely new codebase,
as opposed to the direct port from *nix to win32. However I'd be dubiou
Anders, what's wrong with SSL? It uses both the cipher suites you mention
(DES is no longer deemed "secure" by the way, 3DES is the way to go, and you
can't use DES on its own, since you need to exchange your private keys
somehow, hence they must encrypted with a public key). 3DES is faster than
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 feeds and WRAP="soft" TEXTAREA e
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.Svensson wrote (poss
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
Toby is right, XML is very very strict, unlike HTML browsers, which have
come to accept sloppy code. However...
W3C's Tidy program. It can clean up HTML and I believe XML. It's a command
line prog so should be fairly easy to run from PHP and simply return the
output of that program. It's wort
Theories then (completely untested but in my mind should do with a but of
work)...
Keep the downloadable in a folder not accessable to the webserver. Give php
permission to read them.
Now at this point, I don't know enough about sessions to tell you the
syntax, but set a flag saying "downloadin
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 - LoadModule php4_mo
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
It means that the ?>'\n' is actually taken by the PHP parser. I think the
best way to explain it is with the following demo:
random text
more random text
will produce:
random text
helloworldmore random text
instead of the (commonly) expected:
random text
hello
world
more random text
Howev
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 2002 1
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 help.
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, bu
Try sticking an argument at the end of the file to force iexplore to refresh
ie if the the request is http://server/file.phtml
make the request http://server/file.phtml?anything=nothing
Otherwise, add the cache headers to your file during development:
header ("Expires: Mon, 26 Jul 1997 05:00:00 G
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
Since giving Ranier advice on external programs, I've knocked up a simple
web-based interface for winamp that can be controlled over the internet
(useful in a networked flat where one PC is simply a music box, I can leave
apache running and remove the monitor/keyboard etc just to leave the box and
OK, I've just found a way to do it (in the comments for exec() on the php
webpage), however I DON'T know if it will work on Win2000, I'll let you try,
it works on win98 anyway:
NUL");
?>
This opens winword and keeps it running and completes the web page too.
If this doesn't work in win2K, maybe
Yes that will indeed run winword on the client machine. Using exec()
will run winword on the host machine, which is what I believe Rainer wishes
to do.
However, it's documented somewhere that the exec() family of functions can't
work very well with programs with a GUI, only command line prog
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: [PHP-WIN] install
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 submitting a page to i
You can't. There isn't a compiled dll (the one you're looking for is
php_pspell.dll) but it doesn't exist. Search google for the full
explanation but the underlying idea that I got when looking for someone a
couple of months ago is that it is "thread unsafe" and so is not suitable
for running un
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: [PHP-WIN]
Sorry, but neither of these suggestions work on my server, and it would
probably run into problems if one of the "Mot"s had a _ at the beginning or
end. Nicola's first offering gives:
Mot1_;Mot2_;_;_;_;_;_;_;_Mot3_;_;_;Mot4_;_;_;_;_Mot5_;_;Mot6
The second one gives:
Mot1;Mot2;;;_Mot3;;;Mot4;
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
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'
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
-Original Message-
Shall we settle this argument once and for all?...
The answer is
$value = round($value, 2);
Which I found after a quick look in the manual. Silly me expected the
original poster to have actually searched this far and found there WASN'T a
pre-written function.
Really irritates me that, and I'm
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
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
Further to my answer, I did a few tests, without the php_gd.dll module, I
got:
"call to undefined function"
with the php_gd.dll included, I got:
"No GIF support in this PHP build"
Don't know where you'd get an older version of php_gd.dll, maybe an older
version of PHP would have it? Either that
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 [mailto:[E
Should do, make sure that u have
allow_url_fopen=On
in your php.ini
however, I don't know if it does server redirects. Oh also make sure you're
using v4.0.5 (i think) or later?
Throwing myself wide open to shouts of "you're wrong!!" people firebombing
my house and laughing at me in the street a
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
No offence, but chances are that no-one is answering because it's not a PHP
related question. My advice to you is to read the faq's at apache.org (the
correct address you need is http://httpd.apache.org/docs/misc/FAQ.html
specifically section E) and set up apache securely first (which is not too
So far as I'm aware, you're correct, secure IIS and php is secure as well.
I once saw a report in a security website or magazine (i think the latter)
complaining that PHP was insecure in so much that variables were posted with
the header details and could therefore be intercepted. This in itself
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
No probs.
explode is a way of splitting up a string using any character you want as
the divider. For example...
Say you wanted to split a string into individual words. $string_var = "The
cat sat on the mat";
$words_var = explode(" ", $string_var);
Explode splits $string_var by the space chara
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
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 2002 20:30
To: [EMA
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
php-windows. Doesn't concern us. Lap in it while we have it! It's not
often windows users escape server bugs.
Besides, php.net have been showing this for a while now, they've released a
new version to tackle it:
from php.net's main page:
Due to a security issue found in all versions of PHP (in
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
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
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:[EMAIL PROTECTED
Behalf Of Ross Fleming
Sent: 26 February 2002 17:22
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] pathinfo();
Hello folks
I've got a problem that really requires me to use the pathinfo()
function. Unfortunately it is only available with PHP 4.0.3 (from
memory) and the servers I'm working o
Hello folks
I've got a problem that really requires me to use the pathinfo()
function. Unfortunately it is only available with PHP 4.0.3 (from
memory) and the servers I'm working on are only version 3. Before I go
and write my own version of pathinfo, does anyone have a solution for
it?
Cheers
Actually, scrap my first answer, I think it's to do with the size of the
script. It grows with the size of the file I believe. Instead of using
fpassthru(), use a buffer instead:
while(!feof($fd)) {
$buffer = fread($fd, 4096);
print $buffer;
}
fclose($fp);
That may work better, in fa
Hmmm... to me it sounds like it times-out. I know you've got
set_time_limit(0), but have you removed max_execution_time from the php.ini
file? I think that if it's there then it still gets used. Otherwise I'd
look into IIS's timeout settings (don't know about them) which might very
well overrid
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 HTTP A
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;
}
?>
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
>From php.net -> headers manual;
header("Expires: Mon, 26 Jul 1997 05: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-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: p
f January 1998 for Joseph McPherson .htm"
(I've seen this kind of thing many times).
Sorry if this sounds like a rant, it's Monday and I'd rather be coding, but
I'm stuck with IT. However, I don't make any apologies if I've offended
anyone
-Original Message---
o PHP scripts?! Please
help.
The space is an underscore.
- Original Message -
From: "Ross Fleming" <[EMAIL PROTECTED]>
To: "Travis Wyatt" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 1:01 AM
Subject: RE: [PHP-WIN] Can
1 - 100 of 188 matches
Mail list logo