[PHP-WIN] Re: Single website Unix + Windows servers

2002-07-11 Thread Matt Parlane
stions to keeping the site 'seamless' or > ideas that will help > > Thank you, > olinux > > > --- Matt Parlane <[EMAIL PROTECTED]> wrote: > > Hi Brian... > > > > I have it set up just like Robert, and I really > > think it's the way

[PHP-WIN] Re: Trapping PHP errors

2002-07-09 Thread Matt Parlane
Have a look at this dinky little function... http://php.weblogs.com/php_error_handler_mail Matt "Matt Babineau" <[EMAIL PROTECTED]> wrote in message 003301c227b2$fb09ca60$0100a8c0@developerx">news:003301c227b2$fb09ca60$0100a8c0@developerx... > Does anyone know of a way to trap PHP errors and ha

[PHP-WIN] Re: [PHP] Dual Server...

2002-07-09 Thread Matt Parlane
/htdocs/newworkstudio.com" DirectoryIndex index.html So, for each ASP site (or for each site served by IIS), just add a VirtualHost entry using the ProxyPass directive to send it to the IIS server. The IIS server doesn't have to be on the same computer by the way - or even the same network...

[PHP-WIN] Re: Request for ideas...

2002-07-09 Thread Matt Parlane
Hi Mikey... I'm not quite sure what you mean by doing it within one page... do you mean apart from using http://www.something.com/something.zip";> ? You could probably try a header('Location: http://www.something.com/something.zip); Or, if you want to appear as though the file is coming from y

[PHP-WIN] Re: filemtime()

2002-06-30 Thread Matt Parlane
Hi James... Yep - filemtime() works fine on Windows. And to answer Peter - it's not safe to assume that if something works on *nix PHP, it will work on Windows PHP - have a look a usleep(), or perhaps the entire PCNTL function family. Thanks, Matt "James McLean" <[EMAIL PROTECTED]> wrote in m

[PHP-WIN] Re: Implement Javascript into vB code

2002-06-24 Thread Matt Parlane
hmmm... that's slightly better - in that you used more than one line to explain your problem. I'm still having trouble figuring out what you want to do though - try explaining problems a bit clearer next time. If you want to be able to use

[PHP-WIN] Re: Implement Javascript into vB code

2002-06-24 Thread Matt Parlane
errm... this really isn't the right place to be asking this question - this is a PHP list. but - if you're talking about using JScript and VBScript in the same ASP page, you can do it by using this: <% ' VBScript code goes here Response.Write DoSomething("To Me") %> function DoSomething(str){

[PHP-WIN] Re: Color parser? what?

2002-06-24 Thread Matt Parlane
I'm not sure if this is what you're talking about, but have a look http://www.php.net/manual/en/function.show-source.php The colour settings are taken from php.ini Matt "Alberto. Sartori" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED] ... Hi guys, I got a funny

[PHP-WIN] Re: This crazy code works, but is this the correct and elegant way on 4.21 ?

2002-06-24 Thread Matt Parlane
Hiya... This probably isn't really the right place to discuss this kind of thing, but to be pedantic, you probably shouldn't have content (like the form tag) after your tag - it's just not well-formed HTML. You could of course argue that you probably shouldn't have the "Select one site to go "

[PHP-WIN] Re: PHP version 4.2 and above

2002-05-22 Thread Matt Parlane
Hi James... As from PHP 4.1.0, a versioning system was introduced (why?) which means that you can't use old extension modules with versions >= 4.1.0. You'll need to get the php_gd.dll or php_gd2.dll which came with the binary you have and use that instead of the one you already have. Or did I m

[PHP-WIN] Re: windows 2000 server --- crashing

2002-05-21 Thread Matt Parlane
Hi Kevin... I had the same problem a while back, and I came to the conclusion that PHP on windows with IIS is just plain dodgy. This may or may not help, but I managed to get around the problem by installing Apache, then setting up all the sites which needed ASP on IIS on a different port. Set

[PHP-WIN] Re: PHP Sessions

2002-05-19 Thread Matt Parlane
Hi Ben... Do you have a tmp directory in your root directory? if not, PHP won't be able to write the session files there. You need to either change the session.save_path directive in php.ini, or create the /tmp directory, or I think you can store session info in memory - not sure how tho. Matt

[PHP-WIN] Re: Is there a timeout or similar en MySql?

2002-05-16 Thread Matt Parlane
http://www.php.net/manual/en/function.mysql-ping.php and don't double post. Matt "Hugo Gb" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I'm developing a web site with PHP and I want to show some information > only > if I'm able to connect to a mys

[PHP-WIN] Re: results over multiple pages

2002-05-06 Thread Matt Parlane
I don't think SQL Server supports the LIMIT statement (this isn't MySQL remember...) >From memory SQL Server uses the TOP statement - something like "SELECT TOP 5 " although I'm probably wildly off as far as syntax goes. You can also use a percentage for the number of rows you want. Hope that he

[PHP-WIN] Re: Why Global Variables turned off??

2002-05-03 Thread Matt Parlane
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > > At the cost of sounding dense...wouldn't POSTing the variables solve the > problem. Then the user would not see them in the URL. > > > [EMAIL PROTECTED] (Matt Parlane) wrote in > [EMAIL PROTECTED]:">news:

[PHP-WIN] Re: Why Global Variables turned off??

2002-05-02 Thread Matt Parlane
Hi... The problem comes when you are mixing variables recieved from the HTTP request, and your own user variables. Consider the following code: function authenticate_user(){ if($password == 'secret'){ $authenticated = 'yes'; } return $authenticated; } If someone passes the variable a

[PHP-WIN] Re: php won't "process" forms anymore

2002-05-01 Thread Matt Parlane
http://www.php.net/release_4_2_0.php Is this the problem you're experiencing? "Erik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi, > > when i have a page tht handles forms with php it doesn't work i don't get > any error message it just shows me the sam

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

2002-04-30 Thread Matt Parlane
Hi Jeff... Have a look at http://www.php.net/release_4_2_0.php . >From version 4.2.0 onwards, request variables are no longer registered in the global scope. You'd probably find that if you used echo $_GET['C'] instead of just echo $C, it would work. Matt "Jeff Britts" <[EMAIL PROTECTED]> wrot

[PHP-WIN] Re: Problem using ImageTTFText

2002-04-22 Thread Matt Parlane
Hiya... http://bugs.php.net/bug.php?id=15568 This problem has been fixed in the latest version of PHP - try downloading v4.2 (released today) Matt "Alberto. Sartori" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED] ... Hi guys, since I've installed php 4.1.2 I cann

[PHP-WIN] Re: Creating a "nice" link

2002-04-18 Thread Matt Parlane
Hiya... In case you can't get sessions working, you could use javascript to post a form to the next page... (messy I know...) Next page I'm not too sure about cross browser compatibility though, you might want to try in on Netscape and IE just in case. Hope that helps... Matt "R.S. Herhu