php-windows Digest 31 Mar 2004 08:24:34 -0000 Issue 2188

Topics (messages 23310 through 23324):

Re: AdoDB error
        23310 by: John Lim

strange behavior with echo/print
        23311 by: Alain.Orset
        23312 by: Jason Barnett

file_exists issue
        23313 by: Xavier Serna

PHP Script to Windows Program
        23314 by: Dean Hayes
        23315 by: Jason Barnett
        23316 by: Dean Hayes
        23317 by: David Felton
        23318 by: Zac Barton
        23319 by: Jason Barnett

MySQLI on windows
        23320 by: Peter

Re: Virtual Hosts - How to Configure
        23321 by: Shrock, Court

ASP.NET web control in PHP?
        23322 by: Bill
        23323 by: Ignatius Reilly

Re: Extended Mail
        23324 by: chregu.phant.ch

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi

This is due to internal changes in spl extension from PHP5 b4 to PHP5 rc1.
This problem was fixed in adodb 4.21.

Download from http://php.weblogs.com/adodb

"Bruno Reato" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi!! i'm newbie in PHP's world and i trying execute a simple query with
php
> 5 and interbase 7, but, when i execute
> $db = ADONewConnection('ibase'), get the next error:
>
> PHP Fatal error: Class ADODB_Iterator contains 1 abstract methods and must
> therefore be declared abstract (Iterator::hasMore) in
> c:\PHP\adodb\adodb-iterator.inc.php on line 66
>
> what's wrong?
>
> Thanks.
> Bruno

--- End Message ---
--- Begin Message ---
I try to send a string back to the browser by simply doing something like

echo $reply.

On the browser, I received something like
nn
reply string value
0

nn is the length in hexadecimal of the string value!
I don't know where nn and 0 are coming from and therefore don't know how to
make them not appeared.
Can anybody help with either question?


*******************************************************************************************************************
Premium Credit Limited
Main Switchboard   :01372-748833
Fax                          :01372-748811
This E-mail message together with any attachments transmitted with it is intended only 
for use by its
addressee and may contain information which is privileged and confidential, disclosure 
of which may
be prohibited by law.  If you are not (or have not been authorised by) the addressee, 
you may not
copy, forward, disclose or use any part of this message or its attachments.  If you 
have received this
message in error, please notify the sender by return E-mail and delete it from your 
system.  Premium
Credit Limited and its associate group of companies do not endorse opinions and 
information in this
message and its attachments which do not relate to the official business of Premium 
Credit Limited
and do not accept liability for errors or omissions arising from the presence of 
computer viruses or
from interception/corruption in the course of transmission.
********************************************************************************************************************

--- End Message ---
--- Begin Message --- Alain.Orset wrote:
I try to send a string back to the browser by simply doing something like

echo $reply.

Are you sure that $reply is a string? You could use is_string() to check.



On the browser, I received something like nn reply string value 0

nn is the length in hexadecimal of the string value!
I don't know where nn and 0 are coming from and therefore don't know how to
make them not appeared.
Can anybody help with either question?


--- End Message ---
--- Begin Message ---
Hi all,

anyone has experimented a failure in the result of the file_exists()
function upgrading from 4.3.2 to 4.3.5? I don't know what's happening, but
after I've uptdated the PHP engine to 4.3.5 this function always return
false....

using php in fast-cgi mode under iis on w2k sp4

thanks
Xavier

--- End Message ---
--- Begin Message ---
Hey,


This may sound like a stupid question but i am currently working on a Advanced Calendar script and was wondering if there is anyway to use the same code an make it into a stand alone program. As the only programming i know is HTML and PHP i can not make it out of C++. Is there something i can use to make it a program that anyone can install and use with out the need for a webserver running php???


Dean "The Insane Guy" Hayes Mystical Web Designs http://www.mystical-sector.com

<-- I design and i redesign but still i never designed true beauty like you -->

_________________________________________________________________
Protect your inbox from harmful viruses with new ninemsn Premium. Go to http://ninemsn.com.au/premium/landing.asp?banner=emailtag&referrer=hotmail

--- End Message ---
--- Begin Message --- Dean Hayes wrote:


Hey,


This may sound like a stupid question but i am currently working on a

The only stupid question is the one not asked :)


Advanced Calendar script and was wondering if there is anyway to use the same code an make it into a stand alone program. As the only programming i know is HTML and PHP i can not make it out of C++. Is there something i can use to make it a program that anyone can install and use with out the need for a webserver running php???

No need for a webserver, but they will still need php. Your users can run the app with the CLI or CGI versions of PHP. Try googling for info on this if you need a tutorial.


If you built your calendar app with PHP4 code then you should also go check out PHP-GTK. It is a cross-platform GUI that uses php code, but you'd have to rebuild the front end with widgets (you DID separate the logic from presentation, right?).



Dean "The Insane Guy" Hayes
Mystical Web Designs
http://www.mystical-sector.com

<-- I design and i redesign but still i never designed true beauty like you -->

_________________________________________________________________
Protect your inbox from harmful viruses with new ninemsn Premium. Go to http://ninemsn.com.au/premium/landing.asp?banner=emailtag&referrer=hotmail

--- End Message ---
--- Begin Message --- I have heard pf php-gtk but don't u need to install that on the computer to use it or does it make it into a stand alone program that can be used on any computer without php-gtk installed



Dean "The Insane Guy" Hayes
Mystical Web Designs
http://www.mystical-sector.com

<-- I design and i redesign but still i never designed true beauty like you -->





From: Jason Barnett <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: PHP Script to Windows Program
Date: Tue, 30 Mar 2004 06:56:50 -0500

Dean Hayes wrote:


Hey,


This may sound like a stupid question but i am currently working on a

The only stupid question is the one not asked :)


Advanced Calendar script and was wondering if there is anyway to use the same code an make it into a stand alone program. As the only programming i know is HTML and PHP i can not make it out of C++. Is there something i can use to make it a program that anyone can install and use with out the need for a webserver running php???

No need for a webserver, but they will still need php. Your users can run the app with the CLI or CGI versions of PHP. Try googling for info on this if you need a tutorial.


If you built your calendar app with PHP4 code then you should also go check out PHP-GTK. It is a cross-platform GUI that uses php code, but you'd have to rebuild the front end with widgets (you DID separate the logic from presentation, right?).



Dean "The Insane Guy" Hayes
Mystical Web Designs
http://www.mystical-sector.com

<-- I design and i redesign but still i never designed true beauty like you -->

_________________________________________________________________
Protect your inbox from harmful viruses with new ninemsn Premium. Go to http://ninemsn.com.au/premium/landing.asp?banner=emailtag&referrer=hotmail

-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

_________________________________________________________________
You could be a genius! Find out by taking the IQ Test 2003. $5.50 (incl GST). Click here: http://sites.ninemsn.com.au/minisite/testaustralia/

--- End Message ---
--- Begin Message ---
no, the machine you are running it on must have php/gtk installed.

-----Original Message-----
From: Dean Hayes [mailto:[EMAIL PROTECTED]
Sent: 30 March 2004 1:01
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Re: PHP Script to Windows Program


I have heard pf php-gtk but don't u need to install that on the computer to 
use it or does it make it into a stand alone program that can be used on any

computer without php-gtk installed



Dean "The Insane Guy" Hayes
Mystical Web Designs
http://www.mystical-sector.com

<-- I design and i redesign but still i never designed true beauty like you 
-->





From: Jason Barnett <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: PHP Script to Windows Program
Date: Tue, 30 Mar 2004 06:56:50 -0500

Dean Hayes wrote:

>
>Hey,
>
>This may sound like a stupid question but i am currently working on a

The only stupid question is the one not asked :)

>Advanced Calendar script and was wondering if there is anyway to use the 
>same code an make it into a stand alone program. As the only programming i 
>know is HTML and PHP i can not make it out of C++. Is there something i can

>use to make it a program that anyone can install and use with out the need 
>for a webserver running php???

No need for a webserver, but they will still need php.  Your users can run 
the app with the CLI or CGI versions of PHP.  Try googling for info on this 
if you need a tutorial.

If you built your calendar app with PHP4 code then you should also go check 
out PHP-GTK.  It is a cross-platform GUI that uses php code, but you'd have 
to rebuild the front end with widgets (you DID separate the logic from 
presentation, right?).

>
>
>Dean "The Insane Guy" Hayes
>Mystical Web Designs
>http://www.mystical-sector.com
>
><-- I design and i redesign but still i never designed true beauty like you

>-->
>
>_________________________________________________________________
>Protect your inbox from harmful viruses with new ninemsn Premium. Go to   
>http://ninemsn.com.au/premium/landing.asp?banner=emailtag&referrer=hotmail

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

_________________________________________________________________
You could be a genius! Find out by taking the IQ Test 2003. $5.50 (incl 
GST).  Click here:  http://sites.ninemsn.com.au/minisite/testaustralia/

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************

--- End Message ---
--- Begin Message ---
you could try this?

http://www.roadsend.com/home/index.php?rID=root&pageID=compiler

zac

-----Original Message-----
From: Dean Hayes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 12:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP Script to Windows Program



Hey,

This may sound like a stupid question but i am currently working on a 
Advanced Calendar script and was wondering if there is anyway to use the 
same code an make it into a stand alone program. As the only programming i 
know is HTML and PHP i can not make it out of C++. Is there something i can 
use to make it a program that anyone can install and use with out the need 
for a webserver running php???


Dean "The Insane Guy" Hayes
Mystical Web Designs
http://www.mystical-sector.com

<-- I design and i redesign but still i never designed true beauty like you 
-->

_________________________________________________________________
Protect your inbox from harmful viruses with new ninemsn Premium. Go to   
http://ninemsn.com.au/premium/landing.asp?banner=emailtag&referrer=hotmail

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message --- Zac Barton wrote:

you could try this?

http://www.roadsend.com/home/index.php?rID=root&pageID=compiler

zac


This looks really cool... have you tried it with anything?

--- End Message ---
--- Begin Message --- Hi all,

Could someone please tell me how to make MySQLi available on Apache 1,3, PHP 4,0 and MySQL 4 (the installation from dev5beta3.exe).

Thank you in advance.

Kind regards
Peter

--- End Message ---
--- Begin Message ---
There might have been a little confusion as to what I proposed.  First,
assuming that php is installed in c:\php, create the directory
c:\php\includes -- this will be where we put all of our files so that they
can be accessed by php no matter where your web root (site files) are
located.  This directory can really be anywhere, the only requirement is
that you let php know where the directory is.  You do this by setting the
"include_path" variable in your php.ini, like shown below.  Now, you are
telling php where to look for files, php will first look in the current
directory, then in the c:\php\includes directory.  This is important later.

The next setting in your php.ini is the "auto_prepend_file".  By setting
this, you are saying that file specified will always be prepended to every
php page that PHP executes--it will execute before anything else does.
Because we also set the "include_path" directive, PHP will look for the
"setup_vhost.php" file in the c:\php\includes directory; therefore, place
the setup_vhost.php there.

The "setup_vhost.php" file also opens up files also located in
c:\php\includes.  So, create the directory c:\php\includes\vhosts.  Then
create the "www.host1.com.php" and "www.host2.com.php" files inside this
newly created directory.  The contents of these files are really segments
from your php.ini that are specific to a particular domain.  PHP allows us
to dynamically set configuration values, so all we must do is read the
settings from the correct file, and then tell PHP what they are; this is
exactly what "setup_vhost.php" does.

Hope this helps.
Court

> The most straight forward that I can see would be to always 
> prepend a php file that does the appropriate ini_set's based 
> on $_SERVER['HTTP_HOST'] or $_SERVER['SERVER_NAME'].  For example:
> 
> 
> ::::: your php.ini :::::
> include_path = ".;c:\php\includes"
> auto_prepend_file = setup_vhost.php
> 
> 
> ::::: c:\php\includes\setup_vhost.php :::::
> $settingFile = 'vhosts/'.$_SERVER['HTTP_HOST'].'php';
> if (file_exists($settingFile)) {
>   $settings = parse_ini_file('vhosts/'.$_SERVER['HTTP_HOST']);
>   foreach($settings as $setting=>$value) {
>     ini_set($setting, $value);
>   }// foreach
> }// if
> 
> 
> ::::: vhosts/www.host1.com.php :::::
> ; <?php exit; ?>  # this line is here to make sure nothing 
> happens if executed smtp = host1domain.com sendmail_from = 
> [EMAIL PROTECTED]
> 
> 
> ::::: vhosts/www.host2.com.php :::::
> ; <?php exit; ?>  # this line is here to make sure nothing 
> happens if executed smtp = host2domain.com sendmail_from = 
> [EMAIL PROTECTED]
> 
> 
> 
> of course, you could pull the data from a db and make the 
> logic in setup_vhost more complex; but you should get the 
> point from this simplified example.

--- End Message ---
--- Begin Message --- Dear All,

I've a few months of experience in PHP programming.

I'd like to know whether PHP has anything similar to the web control in ASP.NET?

I found that ASP.NET is really handy when creating GUI for web applications. The web controls are quite easy to use and I like the DataGrid in ASP.NET a lot.

I wonder whether there's any opensource project using PHP to build reusable GUI widgets for HTML pages?

Thank you very much for your help.

Yours,
Bill

--- End Message ---
--- Begin Message ---
Check the PEAR library, especially:
- Quickform
- Quickform Controller
- Datagrid
and many other nice things
_________________________
----- Original Message ----- 
From: "Bill" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, March 30, 2004 7:04 PM
Subject: [PHP-WIN] ASP.NET web control in PHP?


> Dear All,
> 
> I've a few months of experience in PHP programming.
> 
> I'd like to know whether PHP has anything similar to the web control in 
> ASP.NET?
> 
> I found that ASP.NET is really handy when creating GUI for web 
> applications.  The web controls are quite easy to use and I like the 
> DataGrid in ASP.NET a lot.
> 
> I wonder whether there's any opensource project using PHP to build 
> reusable GUI widgets for HTML pages?
> 
> Thank you very much for your help.
> 
> Yours,
> Bill
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
For further details see the attachment.


+++ Attachment: No Virus found
+++ Panda AntiVirus - www.pandasoftware.com


--- End Message ---

Reply via email to