[PHP] How to include in PHP?

2001-03-14 Thread Costas
Im new to PHP and want to know if it is possible to reference PHP scripts from a html page, the equivalent to an <% include%> tag in asp. If so what is the syntax? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

[PHP] ODBC to mysql?

2001-03-16 Thread Costas
Is it possible to use odbc to connect to a mysql database. If not which database functions should i use -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [E

[PHP] MS SQL databse connecting

2001-03-19 Thread Costas
What PHP funstions should i use to connect to a MS SQL database. can i use the mysql or the odbc commands ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail

[PHP] use strict alternative

2001-03-19 Thread Costas
Is there a PHP alternative to Perls use strict command. For anyone who doesnt know Perl, use strict forces local declaration of variables thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

[PHP] Hash syntaxes? simple but helpful

2001-03-20 Thread Costas
I am used to perl syntax of: $var->{'abc'} for a hash (associative array) Can this syntax be done for PHP. What other syntax is there for PHP hashes? Any that look like this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

[PHP] Environment extract

2001-03-27 Thread Costas
In perl the code to extract browser info is: $length = $ENV{'HTTP_USER_AGENT'}; What is the equivalent code in PHP. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list admi

Re: [PHP] Environment extract

2001-03-27 Thread Costas
g. You can include phpinfo() anywhere to see the output values of > your script. > > Matt Friedman > > > > - Original Message - > From: "Costas" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, March 27, 2001 8:01 AM > Subj

[PHP] php or phtml???

2001-03-28 Thread Costas
when should i use .php and when should i use .phtml. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] pattern match help

2001-03-28 Thread Costas
$str = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"; I need to fetch the 5th charcter after ".compatible; M" in $str (ie '5'). - The following gets me the fifth character along (ie 'l') $variable = substr ($str, 5, 1); How do i tell the substr to start counting from ".compatibl

[PHP] alternate pattern match

2001-03-28 Thread Costas
How do i extract the position (integer counting from the left) of the letter M (beginning 'MSIE'. $str = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"; NOTE, i only want a single integer (it is 28, i counted manuallt!!) Thanks -- PHP General Mailing List (http://www.php.net/) To un

[PHP] equivalent of asp's <%= strTest %>

2001-04-04 Thread Costas
Is there an equivalent in PHP of the following code: equivalent of asp's <%= strTest %> But not echo "" Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators