php-windows Digest 13 Dec 2003 06:38:04 -0000 Issue 2039

Topics (messages 22371 through 22379):

embedded PHP in HTML
        22371 by: Ahmad Khashan
        22372 by: Piotr Pluciennik
        22375 by: Justin Patrin

querying more than one db from a php page?
        22373 by: George Pitcher
        22374 by: Justin Patrin
        22379 by: toby z

Not returning all text
        22376 by: Herhuth, Ron
        22377 by: Zac Barton
        22378 by: Frank M. Kromann

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 ---
I am trying to get this code to work: 
<html>
<head>
</head>
<body>
<p>trying to call PHP.</p>
<script language="php">
<?php 
    echo ("hello there");
?>
</script>
</body>
</html>

 

The PHP code is not executed. Any way to get this to work?. BTW, I can execute PHP 
files if i use the form....action...submit route.

Many thanks....


---------------------------------
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

--- End Message ---
--- Begin Message ---
Try this way... remove <script language="php"> and
</script>

<html>
<head>
</head>
<body>
<p>trying to call PHP.</p>

<?php 
  echo "hello there";
?>

</body>
</html>

HTH
Piotr


--- Ahmad Khashan <[EMAIL PROTECTED]> wrote:
> I am trying to get this code to work: 
> <html>
> <head>
> </head>
> <body>
> <p>trying to call PHP.</p>
> <script language="php">
> <?php 
>     echo ("hello there");
> ?>
> </script>
> </body>
> </html>
> 
>  
> 
> The PHP code is not executed. Any way to get this to
> work?. BTW, I can execute PHP files if i use the
> form....action...submit route.
> 
> Many thanks....
> 
> 
> ---------------------------------
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

--- End Message ---
--- Begin Message --- Piotr Pluciennik wrote:

Try this way... remove <script language="php"> and
</script>

<html>
<head>
</head>
<body>
<p>trying to call PHP.</p>

<?php echo "hello there";
?>


</body>
</html>

HTH
Piotr


--- Ahmad Khashan <[EMAIL PROTECTED]> wrote:


I am trying to get this code to work: <html>
<head>
</head>
<body>
<p>trying to call PHP.</p>
<script language="php">
<?php echo ("hello there");
?>
</script>
</body>
</html>




The PHP code is not executed. Any way to get this to
work?. BTW, I can execute PHP files if i use the
form....action...submit route.

Many thanks....


--------------------------------- Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing



__________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/

Yes, PHP is not a client-side scripting language, it is server side. (<script> is used for client-side scripting.)


Is this in a file with a .html or a .php extension? Were the ones that worked .php? I would suggest, 1) using a .php extension for all PHP scripts. This won't change how they're displayed in the browser. If you don't want that, change your webserver's configuration to parse .html files as PHP scripts.

--
paperCrane <Justin Patrin>

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

I am developing my main site to run on php/mysql (currently
lasso/filemaker).

I am also developing some individual sites to be hosted on the same server
as my main one and I'd like to be able to update those smaller site
databases when activity happens on the main site.

I'm still a couple of months away from tackling that part but can anyone
predict trouble ahead, and if so, any remedies?

MTIA

George in Oxford/Edinburgh

--- End Message ---
--- Begin Message --- George Pitcher wrote:

Hi,

I am developing my main site to run on php/mysql (currently
lasso/filemaker).

I am also developing some individual sites to be hosted on the same server
as my main one and I'd like to be able to update those smaller site
databases when activity happens on the main site.

I'm still a couple of months away from tackling that part but can anyone
predict trouble ahead, and if so, any remedies?

MTIA

George in Oxford/Edinburgh

Well, if you use the DB functions directly, you:
1) limit yourself to the use of a single database system.
2) will have to manually select your db every time you change databases within one script.


I would highly suggest using a DB abstraction class, such as PEAR::DB. http://pear.php.net/package/DB

--
paperCrane <Justin Patrin>

--- End Message ---
--- Begin Message ---
hay george

it can be done .....

i dunno what u ment by "manually" justin, 

as i wlasys have to connect to a databse -> writin a small piece of
code (i include a connect file) in every page i need to run about ma
database.....

so if thats what manuall access means ..... i guess thats what you
have to do .....

n george ..... i connect to db1 on a page then to db2 n then again to
db1 on the same page .....

so far .... its workin fine .... has been for the last i dont know 6
months i guess .....

u just need to be carefull about connecting to the right database n
checkin updates on ur local machine before u start off at server :)

could end up in a mess :)

good luck .....

toby

--- Justin Patrin <[EMAIL PROTECTED]> wrote: > George
Pitcher wrote:
> 
> > Hi,
> > 
> > I am developing my main site to run on php/mysql (currently
> > lasso/filemaker).
> > 
> > I am also developing some individual sites to be hosted on the
> same server
> > as my main one and I'd like to be able to update those smaller
> site
> > databases when activity happens on the main site.
> > 
> > I'm still a couple of months away from tackling that part but can
> anyone
> > predict trouble ahead, and if so, any remedies?
> > 
> > MTIA
> > 
> > George in Oxford/Edinburgh
> 
> Well, if you use the DB functions directly, you:
> 1) limit yourself to the use of a single database system.
> 2) will have to manually select your db every time you change
> databases 
> within one script.
> 
> I would highly suggest using a DB abstraction class, such as
> PEAR::DB. 
> http://pear.php.net/package/DB
> 
> -- 
> paperCrane <Justin Patrin>
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>  

________________________________________________________________________
BT Yahoo! Broadband - Save £80 when you order online today. Hurry! Offer ends 21st 
December 2003. The way the internet was meant to be. 
http://uk.rd.yahoo.com/evt=21064/*http://btyahoo.yahoo.co.uk

--- End Message ---
--- Begin Message ---
Quick question,

I have a field in MS SQL that is returning a very lengthy string of text.
When the string is input it is all making it into the database, but when I
return it and display the data on screen it is truncating well
prematurely.  Is there a setting in the ini that limits this?  and if so
can I change the valu inline (like set_time_limit(120000)).

Thanks,
Ron

--- End Message ---
--- Begin Message ---
Hey Ron

try having a look at the odbc.defaultlrl setting in the ini file

i have also found that putting the text column last in the select statment
helps


best

zac

-----Original Message-----
From: Herhuth, Ron [mailto:[EMAIL PROTECTED]
Sent: Friday, December 12, 2003 5:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Not returning all text


Quick question,

I have a field in MS SQL that is returning a very lengthy string of text.
When the string is input it is all making it into the database, but when I
return it and display the data on screen it is truncating well
prematurely.  Is there a setting in the ini that limits this?  and if so
can I change the valu inline (like set_time_limit(120000)).

Thanks,
Ron

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

--- End Message ---
--- Begin Message ---
Hi Ron,

If your field is of type char or varchar the limit is 255 (limited by the
db library from Microsoft). If you are using the text type you can use
these settings in php.ini

; Valid range 0 - 2147483647.  Default = 4096.
mssql.textlimit = 128000

; Valid range 0 - 2147483647.  Default = 4096.
mssql.textsize = 128000

You can set both of these from the script with the ini_set() function
(http://us4.php.net/ini-set).

- Frank

> Quick question,
> 
> I have a field in MS SQL that is returning a very lengthy string of
text.
> When the string is input it is all making it into the database, but when
I
> return it and display the data on screen it is truncating well
> prematurely.  Is there a setting in the ini that limits this?  and if
so
> can I change the valu inline (like set_time_limit(120000)).
> 
> Thanks,
> Ron
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---

Reply via email to