[PHP-WIN] cUrl version

2005-07-01 Thread Mark Rees
Hello Win2k, Apache 2.0, PHP5 I need to make an http request from behind an ISA proxy server. I am trying to use cURL for this, as it seems to offer the most configurable options with relation to a proxy server. This is the code I am using: $ch=curl_init(); curl_setopt ($ch, CURLOPT_URL, 'http

[PHP-WIN] Re: Perplexed - wont parse tags in html

2005-07-01 Thread Mark Rees
Lots of possible solutions on this: http://www.webmasterworld.com/forum88/4806.htm And another is... change the extensions on your html files ""Fred"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > PHP5 - Apache2 - XPSP2 > New to PHP. > I have done everything I think I need to do

[PHP-WIN] Re: fgets on COM1

2005-07-13 Thread Mark Rees
Hello This won't solve your problem entirely, but you could alter the max_execution_time (in php.ini) to a lower value so that it times out quickly when your device is disconnected. Mark "(Gemma Montero)" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm trying to do a scri

[PHP-WIN] Re: PHP 5.0.4 - Can anyone help me get it to work?

2005-07-14 Thread Mark Rees
""Georgio"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anyone who has successfully got PHP5.0.4 working on a system with Windows > 98SE / PWS 4.0 / Internet Explorer 6 should please assist me. > > I just upgraded from PHP4.3.2 to PHP5.0.4 and for the past three days, I > have not

[PHP-WIN] Re: Strange mysql/pear db self join help needed.

2005-07-25 Thread Mark Rees
> Can someone answer a MySQL question for me? I'm trying to do a self join on > my category table and I'm only coming up with 2 fields in my recordset when > I know I should have 5 fields. Here is the code I'm using. > > >SELECT Cats3.CatId, Cats.Cat, Cats1.Cat, Cats2.Cat, Cats3.Cat > >FROM (((Cat

[PHP-WIN] Re: Has anybody used amfphp? (open flash remoting + php)

2005-07-28 Thread Mark Rees
"Taksam" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Anybody used OpenAMF+PHP? ( http://www.amfphp.org/ ) > > It is an open-source Flash Remoting gateway. I already used it with Java and works OK. Just wanted to know if somebody here used it with PHP and would like to know if th

[PHP-WIN] Re: PHP, MySQL and Active Directory

2005-08-25 Thread Mark Rees
> I've got PHP 4 set up on Server 2003. My LAN is running active directory. > > Whenever I try to a mysql_connect, something (PHP I assume) tacks on a > hostname of the local computer. > > $link = mysql_connect('myserver', 'user', 'password'); > > Besides the old password authentication password pr

[PHP-WIN] Re: ASP to PHP

2005-09-09 Thread Mark Rees
So I have I this problem. I have asp page that has a link to a PHP page, when I click on the link I get the PHP with no problems but if I click back to the asp page and click on the PHP page I get a HTTP 500 Internal server error. If I hit the refresh button I get the php page again. The PHP page i

Re: [PHP-WIN] Re: ASP to PHP

2005-09-09 Thread Mark Rees
the asp page to the php page this value is reset in php so when I go back to the asp page and back to the php page I get an internal error because the _VIEWSTATE var is not the same in php as it is in asp. So how can I go from asp page to the php page and maintain the same variable's value

Re: [PHP-WIN] Re: ASP to PHP

2005-09-12 Thread Mark Rees
Hello This doesn't make much sense, no. One minute it's a hidden form input on a page which isn't a form, then it's a session variable, then it's a cookie! Your problem is that you have a variable which you need to pass from the ASP to PHP page, isn't it? Ignoring what you are doing at the momen

[PHP-WIN] Re: Not getting correct results from $_POST

2005-09-12 Thread Mark Rees
> Please suggest what I have done wrong with the following lines of php:- > > $MachineNum = $_POST['led']; // led is the variable in the html that calls this php > > $SQL = sprintf("select a_date, a_time, amnt from register where mac_name > = %s and message_id = 34 or message_id = 35 order by a_d

Re: [PHP-WIN] Re: Not getting correct results from $_POST

2005-09-12 Thread Mark Rees
Please use reply-all to make sure that your message goes to the list - Original Message - From: "Luis Moreira" <[EMAIL PROTECTED]> To: "'Mark Rees'" <[EMAIL PROTECTED]> Sent: Monday, September 12, 2005 3:15 PM Subject: RE: [PHP-WIN] Re: Not ge

[PHP-WIN] Re: mssql equivalents to mysql_errno & mysql_error

2005-09-13 Thread Mark Rees
I have looked in the online manual but am not able to find the > equivalent functions in mssql of mysql_errno() & mysql_error(). > I am in the unfortunate position of having to develop using an existing > MSSQL database. There aren't any as far as I know. I think the best you can do is test for t

Re: [PHP-WIN] Re: mssql equivalents to mysql_errno & mysql_error

2005-09-13 Thread Mark Rees
Thanks for your advice. ADODB link http://adodb.sourceforge.net/ Please use reply all to send your message to the list - in my experience is better to use an abstraction layer library like adodb this will allow you to switch database in the future, beside

Re: [PHP-WIN] I Can't connect to MySql using ADODB

2005-09-15 Thread Mark Rees
> Tony Aldemir wrote: > > >Hi There, > > > >I am trying to connect to MySQL using ADODB library for PHP using the > >following code with no success. What am I doing wrong? > > > > >include('/php/adodb.inc.php'); > > > >$db = &ADONewConnection('mysql'); # eg. 'mysql' or 'oci8' > >$db->debug = true;

[PHP-WIN] Re: Calling MSSQL Stored Procedure

2005-09-16 Thread Mark Rees
> I have to access a MsSQL stored procedure coded as follows :- > > CREATE PROCEDURE spGetActivePromotions >@Today datetime > AS > SELECT PromotionID, PromotionName, StartDate, EndDate, LastDrawDate, >MaxDraws, NumRegTickets, VouchersPermitted, NumTicketsPerVoucher, > ManualTicketIssue

Re: [PHP-WIN] Re: Calling MSSQL Stored Procedure

2005-09-16 Thread Mark Rees
> > >>I have to access a MsSQL stored procedure coded as follows :- > >> > >>CREATE PROCEDURE spGetActivePromotions > >> @Today datetime > >>AS > >>SELECT PromotionID, PromotionName, StartDate, EndDate, LastDrawDate, > >> MaxDraws, NumRegTickets, VouchersPermitted, NumTicketsPerVoucher, > >

Re: [PHP-WIN] Re: Calling MSSQL Stored Procedure

2005-09-16 Thread Mark Rees
> >>I get > Please suggest what data type you would use. In the database the > requisit field is a datetime but I cannot find in either adodb or php > document a datetime type. I suggest you augment your research with google: http://www.google.co.uk/search?hs=tAt&hl=en&client=firefox-a&rls=org.

Re: [PHP-WIN] Re: Calling MSSQL Stored Procedure

2005-09-16 Thread Mark Rees
> > Mark Rees wrote: > > > >>> > >>> I get 2005/09/16 10:09:22 AM which is exactly the same format as it > >>> appears in the database table when viewed via Enterprise Manager. > >>> > >> > >> > >> I woul

Re: [PHP-WIN] Re: Calling MSSQL Stored Procedure

2005-09-16 Thread Mark Rees
> > > >The type problem in not in PHP but in SQL Server. The sp expects an input > >parameter of type datetime, and it isn't getting one. > > > >http://www.php.net/function.mssql-query has the answer to this question, > >which is to supply the parameter as varchar and use CONVERT in the sp to > >ch

[PHP-WIN] Re: php_zip PHP 5.05 extension issue

2005-10-03 Thread Mark Rees
> I installed php in c:\inetpub\php folder and gave access to IIS user. > My web server is IIS5. > I added HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath = ini path directory > > I uncommented extension=php_zip.dll in the php ini file and put php_zip.dll > in php folder. > I added extension_dir = "c:\

Re: [PHP-WIN] Problem with script execution time

2005-11-01 Thread Mark Rees
You may have already done this, but make sure that you have made any necessary changes to your PHP.ini settings with relation to maximum file upload size and so on. More information here: http://de.php.net/features.file-upload Cheers Mark ""Paul J. Smith"" <[EMAIL PROTECTED]> wrote in message n