Re: [PHP] ftp_connect returns false

2004-08-19 Thread Jason Wong
On Thursday 19 August 2004 13:43, DBW wrote: Just to clarify a point, does it matter where you are coming from and executing the php script? i.e. I am using a browser that is behind a firewall blocks ftp (hence why I am trying to set up this ftp stuff through php). I am pretty sure that it

[PHP] oop too slow

2004-08-19 Thread Krzysztof Gorzelak
Hi I'm trying my new php5 script, but it takes about 1.2s to generate my page. That is, how my oop model looks like : [category] ||| [photo] [desc] [products] [products] | [product] ||| [photo] [desc] [keys] [keys] | [key] | [values] |

[PHP] oop too slow

2004-08-19 Thread Krzysztof Gorzelak
Hi I'm trying my new php5 script, but it takes about 1.2s to generate my page. That is, how my oop model looks like : [category] ||| [photo] [desc] [products] [products] | [product] || | [photo] [desc] [keys] [keys] | [key] |

[PHP] Re: oop too slow

2004-08-19 Thread Thomas Seifert
On Thu, 19 Aug 2004 11:21:16 +0200, Krzysztof Gorzelak wrote: Each object gets data from mysql by itself. The generation time of 1 category [30 products, 10 keys, 5 values ~= 300 mysql queries] takes as I said more than a 1s (on quite fast machine). How can this model be improved? Why

[PHP] Re: oop too slow

2004-08-19 Thread Angelo Zanetti
maybe you can rewrite your SQL statements in a way that will improve retrieval time. Google for it. things like select * from ... when you are not using all fields is bad practise. there are many others. Angelo Thomas Seifert [EMAIL PROTECTED] 8/19/2004 11:33:05 AM On Thu, 19 Aug 2004 11:21:16

[PHP] Re: oop too slow

2004-08-19 Thread Aidan Lister
Krzysztof, Take a look at some PHP Profiling extensions, such as Advanced PHP Debugger or XDebug. This will help you locate the slow parts of your script. Krzysztof Gorzelak [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I'm trying my new php5 script, but it takes about 1.2s to

[PHP] php with mysql ( support data manipulation or not )??

2004-08-19 Thread ayman amin
Hi , Regarding to php with mysql , if the php with mysql implement data manipulating like (insert , update , delete ..etc) or just implement the query operation only ??. Best Regards,, ayman amin Egypt - Cairo

[PHP] Re: oop too slow

2004-08-19 Thread Krzysztof Gorzelak
Each object gets data from mysql by itself. The generation time of 1 category [30 products, 10 keys, 5 values ~= 300 mysql queries] takes as I said more than a 1s (on quite fast machine). How can this model be improved? Why are you doing 300(!!!) mysql queries? I guess you can

[PHP] Re: oop too slow

2004-08-19 Thread Krzysztof Gorzelak
Each object gets data from mysql by itself. The generation time of 1 category [30 products, 10 keys, 5 values ~= 300 mysql queries] takes as I said more than a 1s (on quite fast machine). How can this model be improved? Why are you doing 300(!!!) mysql queries? I guess you can

[PHP] Need Someone to Develop a Project

2004-08-19 Thread mcp6453
We have an organization that conducts an annual music awards show. I have written a specification for a nominating module that we would like to develop to replace the paper ballot system. I'm not a PHP developer, but based on my research, this project should be straight forward, using PHP and

RE: [PHP] php with mysql ( support data manipulation or not )??

2004-08-19 Thread Jay Blanchard
[snip] Regarding to php with mysql , if the php with mysql implement data manipulating like (insert , update , delete ..etc) or just implement the query operation only ??. [/snip] You can do any SQL operation with PHP and MySQL. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Re: oop too slow

2004-08-19 Thread Jay Blanchard
[snip] Well, I changed my script a little for tests and turned off the queries. Now I'm setting some defaults data to those 300 objects but it's still too slow. I create for every value, key and product a different object so it's in fact 30*10*5 objects. Then I run __toString() method one by one

[PHP] Links with parameters in DB

2004-08-19 Thread WebMaster. Radio ECCA
Hi!! I have links saved in the DB and some of them may have parameters. Those parameters may come from a php variable. The problem is that when I recover the link form the DB I get the link plus the name of the variable instead of its value. Here is an example: I have this in the DB:

RE: [PHP] Re: oop too slow

2004-08-19 Thread Jay Blanchard
[snip] Yes it does. Do you think it's not so slow ? [snip] Well, I changed my script a little for tests and turned off the queries. Now I'm setting some defaults data to those 300 objects but it's still too slow. I create for every value, key and product a different object so it's in fact

RE: [PHP] Links with parameters in DB

2004-08-19 Thread Jay Blanchard
[snip] $link=eval(mysql_result($result,$i,link)); [/snip] Try just eval on the field you pull from the database... echo eval($databaseItem) then work your processing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP:Problem with Japanese data

2004-08-19 Thread Umesh Deshmukh
Hi Gurus, (B (BI am using PHP 4.3.8 on Linux with Postgres 7.3.4. (BThe problem is I am unable to insert some japanese datat in the database (Busing PHP. (BI am sending you the character which gives problem, its "$BG=(B". (BThe problem arises when user enters only this characters and tries

RE: [PHP] Links with parameters in DB

2004-08-19 Thread Jay Blanchard
[snip] $i=0; $q=select * from links'; while ($imysql_num_rows($result)) { $link=eval(mysql_result($result,$i,link)); . . and then i put this: [/snip] What happens if you do this? while($i mysql_num_rows($result)){ $link = eval($result); echo $link; } P.S. Please

RE: [PHP] Re: oop too slow

2004-08-19 Thread Jay Blanchard
[snip] [snip] Yes it does. Do you think it's not so slow ? [snip] Well, I changed my script a little for tests and turned off the queries. Now I'm setting some defaults data to those 300 objects but it's still too slow. I create for every value, key and product a different object

Re: [PHP] Links with parameters in DB

2004-08-19 Thread WebMaster. Radio ECCA
It doesn´t work, I have other fields in the DB apart from the field 'Link', so if I use $link = eval($result); I get a parse error. Apart from that, I have to write the name of the field (link), if not the server won´t know the field I´m refering to. Thanks - Original Message - From: Jay

RE: [PHP] Links with parameters in DB

2004-08-19 Thread Jay Blanchard
[snip] It doesn´t work, I have other fields in the DB apart from the field 'Link', so if I use $link = eval($result); I get a parse error. Apart from that, I have to write the name of the field (link), if not the server won´t know the field I´m refering to. [/snip] Then did you eval that? I meant

Re: [PHP] Links with parameters in DB

2004-08-19 Thread WebMaster. Radio ECCA
I tried what you said but i get an eval error: Parse error: parse error, unexpected '=' in /index.php(135) : eval()'d code on line 1 ;( - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: WebMaster. Radio ECCA [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 19,

RE: [PHP] Links with parameters in DB

2004-08-19 Thread Jay Blanchard
[snip] I tried what you said but i get an eval error: Parse error: parse error, unexpected '=' in /index.php(135) : eval()'d code on line 1 [/snip] You will probably have to escape the equals sign -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Links with parameters in DB

2004-08-19 Thread Jay Blanchard
[snip] [snip] I tried what you said but i get an eval error: Parse error: parse error, unexpected '=' in /index.php(135) : eval()'d code on line 1 [/snip] You will probably have to escape the equals sign [/snip] Have you RTFM on eval? http://www.php.net/eval You have to use valid PHP code.

Re: [PHP] Links with parameters in DB

2004-08-19 Thread Matt M.
On Thu, 19 Aug 2004 14:01:45 +0100, WebMaster. Radio ECCA [EMAIL PROTECTED] wrote: I tried what you said but i get an eval error: Parse error: parse error, unexpected '=' in /index.php(135) : eval()'d code on line 1 ;( - Original Message - From: Jay Blanchard [EMAIL

Re: [PHP] mkdir() permissions

2004-08-19 Thread Richard Whitney
Dear List! Anyone out there using cPanel? Perhaps you could instruct me as to how to rebuild PHP, assuming we have similar file structure, such that cPanel seems to do. Many kind regards! Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Validate XML data

2004-08-19 Thread Jacob Friis Larsen
It is possible to validate a XML document with XML Schema Definition Language (XSDL). Is it possible to use XSDL in Php? Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] managing cvs from php

2004-08-19 Thread robert mena
Hi, I use cvs from my internal projects and will soon need to let others change template files from a web form. The user will load the current template, edit, preview and if ok publish. Since I'd like to keep a history and track those changes one option for me would be to add a cvs call with a

Re: [PHP] Cannot Load DLLs (WinXP, Apache 2, PHP 5)

2004-08-19 Thread Philip Olson
I can't get PHP to load php_mysql.dll, required to use the mysql_*() functions. I have tried a variety of values for extension_dir, including C:/php/ext, C:\php\ext, C:\php\, ./ext/, ext/. I have copied php_mysql to all these directories, but it is not loading it. PHP is

Re: [PHP] Need Someone to Develop a Project

2004-08-19 Thread Philip Olson
It is possible that this newsgroup is not the appropriate forum for this request. Is there a site somewhere where I can post the spec and invite bids? I recall that there are several, but I cannot remember where they are. http://www.php.net/links.php#jobs Regards, Philip -- PHP General

Re: [PHP] managing cvs from php

2004-08-19 Thread Michal Migurski
$cmd = cd .$pathToFile. ; /usr/bin/cvs ci -m '.$logMsg.' .$file ; passthru($cmd) ; If I echo the $cmd and paste in a shell the command works. When I execute from web nothing happens and no output is seen (error_reporting(E_ALL)) Does the apache user have read/write privileges on the files

Re: [PHP] PHP/PearDB works on commandline but not via http....

2004-08-19 Thread pw
Justin Patrin wrote: Did you try: if(PEAR::isError($db)) { echo $db-getMessage().' '.$db-getUserInfo(); } It's probably because: 1) the postgres the module isn't in the PHP that apache is using 2) the postgres module isn't loaded in the PHP that apache is using 3) the postgres module in the

Re: [PHP] Validate XML data

2004-08-19 Thread Christian Stocker
It's possible in PHP 5, but not in PHP 4 And I advise to use the most recent libxml2 libraries, since they made big improvements concerning XSD support lately chregu On Thu, 19 Aug 2004 17:11:47 +0200, Jacob Friis Larsen [EMAIL PROTECTED] wrote: It is possible to validate a XML document with

Re: [PHP] Re: oop too slow

2004-08-19 Thread Yann Larrivee
You could simply recall the constructor if the object exist. This way you do not create the objects for every data entry you have and aviously it will use less ressources. Also like someone else told you, Get a Debuger! It will point out the slow part of your code. For example i had 30 000

Re: [PHP] PHP Security Workbook

2004-08-19 Thread John Nichel
Chris Shiflett wrote: This news is a bit old, but I have made the workbook for my OSCON tutorial freely available from this URL: http://shiflett.org/php-security.pdf It's a 55 page PDF that has a lot of information (more than the slides) about some of the more important security topics. I hope you

Re: [PHP] Validate XML data

2004-08-19 Thread Jacob Friis Larsen
It's possible in PHP 5, but not in PHP 4 Could you link me to the documentation? And I advise to use the most recent libxml2 libraries, since they made big improvements concerning XSD support lately It is possible to validate a XML document with XML Schema Definition Language (XSDL). Is it

[PHP] Nonstandard SMTP line terminator

2004-08-19 Thread Ufuk M. Fakioglu
Hi, I am using mail() with php 4.3.8 on FreeBSD 4.10 to send bulk mail. Although I use \r\n in the header parameters, some mail servers respond with Nonstandard SMTP line terminator. What can I do? Thanks, Ufuk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] oop too slow

2004-08-19 Thread Marcus Bointon
on 19/8/04 9:49, Krzysztof Gorzelak at [EMAIL PROTECTED] wrote: Hi I'm trying my new php5 script, but it takes about 1.2s to generate my page. That is, how my oop model looks like : [category] ||| [photo] [desc] [products] [products] | [product] |

[PHP] Re: Nonstandard SMTP line terminator

2004-08-19 Thread Manuel Lemos
Hello, On 08/19/2004 01:33 PM, Ufuk M. Fakioglu wrote: I am using mail() with php 4.3.8 on FreeBSD 4.10 to send bulk mail. Although I use \r\n in the header parameters, some mail servers respond with Nonstandard SMTP line terminator. If you are doing exactly how it is described in the mail()

Re: [PHP] oop too slow

2004-08-19 Thread Jason Davidson
When i have many many objects of the same type to build, i do something like this... function getEvents($sql = '') { $events = $this-dbh-query( SELECT cols, cols, FROM table,table WHERE blah blah balh ($sql ? AND $sql : ''),'rows_array');

[PHP] arrays() current() next() who to use

2004-08-19 Thread Vern
I'm setting up an array based on recordset that does a loop as follows: do { //SET ARRAYS $z['username'][$k] = $row_rsUSERIDID['uname']; $z['distance'][$k++] = $totaldist; } while ($row_rsUSERIDID = mysql_fetch_assoc($rsUSERIDID)); //SET NEW ARRAY $z['user'] =

[PHP] downloading files

2004-08-19 Thread Aaron Todd
I posted a simular question before and never really got an answer. The post drifted off into some other valuable information, but I still have the same question. I am trying to create a site with file downloads. The files on the server that are to be downloaded need to be protected somehow. I

Re: [PHP] PHP/PearDB works on commandline but not via http....

2004-08-19 Thread Justin Patrin
On Thu, 19 Aug 2004 08:44:39 -0700, pw [EMAIL PROTECTED] wrote: Justin Patrin wrote: Did you try: if(PEAR::isError($db)) { echo $db-getMessage().' '.$db-getUserInfo(); } It's probably because: 1) the postgres the module isn't in the PHP that apache is using 2) the

Re: [PHP] downloading files

2004-08-19 Thread Mario Micklisch
Hi Aaron, [..] The download files are in a directory protected by htaccess which it is my understanding that PHP can go underneath htaccess to get access to the files. My problem is where do I put this directory? I was already told to put it outside the web root directory, [..] Both are

Re: [PHP] downloading files

2004-08-19 Thread Mattias Thorslund
Aaron Todd wrote: I posted a simular question before and never really got an answer. The post drifted off into some other valuable information, but I still have the same question. I am trying to create a site with file downloads. The files on the server that are to be downloaded need to be

Re: [PHP] Nonstandard SMTP line terminator

2004-08-19 Thread Justin Patrin
On Thu, 19 Aug 2004 19:33:11 +0300, Ufuk M. Fakioglu [EMAIL PROTECTED] wrote: Hi, I am using mail() with php 4.3.8 on FreeBSD 4.10 to send bulk mail. Although I use \r\n in the header parameters, some mail servers respond with Nonstandard SMTP line terminator. What can I do? If you

Re: [PHP] downloading files

2004-08-19 Thread Octavian Rasnita
You can put the files that need to be downloaded in a directory somewhere outside of the web server root, but in that case your PHP program will need to read the file and print it to the browser, and it will also need printing the HTTP headers: Content-type: application/octet-stream

Re[2]: [PHP] Nonstandard SMTP line terminator

2004-08-19 Thread Ufuk M. Fakioglu
Here's the piece of code that composes and sends the e-mails: $row=mysql_fetch_array($sql); $name=$row[1]; $email=$row[2]; $subject=$_POST[subject]; $msg=stripslashes($_POST[msg]); $msg=str_replace(RCPT_NAME, $name, $msg); mail($email, $subject, $msg, From: Mozaik [EMAIL PROTECTED]\r\n.

[PHP] download file question...

2004-08-19 Thread bruce
hi... i can allow files to be uploaded to my app. are there corresponding scripts/code to allow files to be downloaded to the user via the browser?? just occurred to me that i'll want to do this... nothing jumps out at me searching google/php.net for this... thanks -- PHP General Mailing

RE: [PHP] download file question...

2004-08-19 Thread Jay Blanchard
[snip] nothing jumps out at me searching google/php.net for this... [/snip] Have you searched the mailing list archives? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SimpleXML

2004-08-19 Thread Daniel Schierbeck
Hello there, I'm new to all this newsgroup stuff, so please tell me if I'm putting this in the wrong place. I am having some problems with the XML features (I use the fancy new SimpleXML). It works like a dream when I'm retrieving information from an XML document, but when I want to insert new

Re: Re[2]: [PHP] Nonstandard SMTP line terminator

2004-08-19 Thread Justin Patrin
On Thu, 19 Aug 2004 21:33:22 +0300, Ufuk M. Fakioglu [EMAIL PROTECTED] wrote: Here's the piece of code that composes and sends the e-mails: $row=mysql_fetch_array($sql); $name=$row[1]; $email=$row[2]; $subject=$_POST[subject]; $msg=stripslashes($_POST[msg]); $msg=str_replace(RCPT_NAME,

Re: [PHP] SimpleXML

2004-08-19 Thread John Holmes
From: Daniel Schierbeck [EMAIL PROTECTED] I am having some problems with the XML features (I use the fancy new SimpleXML). It works like a dream when I'm retrieving information from an XML document, but when I want to insert new tags it screws up. Someone will correct me if I'm wrong,

Re: [PHP] download file question...

2004-08-19 Thread John Holmes
From: bruce [EMAIL PROTECTED] i can allow files to be uploaded to my app. are there corresponding scripts/code to allow files to be downloaded to the user via the browser?? How about a link to the file? If you want to get more complicated, search the archives for readfile and download...

Re: Re[2]: [PHP] Nonstandard SMTP line terminator

2004-08-19 Thread John Holmes
From: Ufuk M. Fakioglu [EMAIL PROTECTED] Here's the piece of code that composes and sends the e-mails: $row=mysql_fetch_array($sql); $name=$row[1]; $email=$row[2]; $subject=$_POST[subject]; Bad idea here. You're script is vulnerable to mail header injection attacks. Malicious users can

Re: [PHP] arrays() current() next() who to use

2004-08-19 Thread John Holmes
From: Vern [EMAIL PROTECTED] How can I now get this output displyed in groups of 10 so that I can display them 10 at a time on a page then click a next button to dispaly they next 10 and so forth? Can't you do all that sorting in your query so you can just retrieve 10 rows at a time

Re: [PHP] arrays() current() next() who to use

2004-08-19 Thread Vern
Problem with that is it sorts according the results of the recordset range. For instance: It will show the user 1 trhough 10 sorted by miles then 20 - 30 sorted by miles, however, in 1 through 10 could have a range of 0 to 1000 miles and the next set will have 5 to 200 miles. What I need is to

[PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-19 Thread Don
Hi, I have a PHP file containing the code below. It works great when all default setting exist in IE; each time I click on refresh, the session variable is incremented and displays on the screen. If I change my browsers setting to block all cookies, my session variable appears not to increment

Re: [PHP] Validate XML data

2004-08-19 Thread Christian Stocker
On Thu, 19 Aug 2004 18:06:27 +0200, Jacob Friis Larsen [EMAIL PROTECTED] wrote: It's possible in PHP 5, but not in PHP 4 Could you link me to the documentation? http://ch2.php.net/manual/en/function.dom-domdocument-schemavalidate.php chregu And I advise to use the most recent libxml2

Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-19 Thread Matt M.
On Thu, 19 Aug 2004 16:50:28 -0400, Don [EMAIL PROTECTED] wrote: Hi, I have a PHP file containing the code below. It works great when all default setting exist in IE; each time I click on refresh, the session variable is incremented and displays on the screen. If I change my browsers

Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-19 Thread Jake Stonebender
On Thu, 19 Aug 2004 16:50:28 -0400, Don [EMAIL PROTECTED] wrote: Q1. Is this because sessions use session cookies and IE blocks these at high security? Q2. I was told that if cookies are turned off, there is a way to use the session ID variable to accomplish what I want instead of cookies.

Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-19 Thread John Holmes
Don wrote: If I change my browsers setting to block all cookies, my session variable appears not to increment and refreshing the screen displays the same text all the time. You need to pass the session id in the URL if cookies are off. There is a constant, SID, that you may be able to use, or

[PHP] Re: download file question...

2004-08-19 Thread Torsten Roehr
Bruce [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi... i can allow files to be uploaded to my app. are there corresponding scripts/code to allow files to be downloaded to the user via the browser?? just occurred to me that i'll want to do this... nothing jumps out at me

Re: [PHP] arrays() current() next() who to use

2004-08-19 Thread Torsten Roehr
Vern [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Problem with that is it sorts according the results of the recordset range. For instance: It will show the user 1 trhough 10 sorted by miles then 20 - 30 sorted by miles, however, in 1 through 10 could have a range of 0 to 1000

Re: [PHP] oop too slow

2004-08-19 Thread Krzysztof Gorzelak
U¿ytkownik Jason Davidson [EMAIL PROTECTED] napisa³ w wiadomo¶ci news:[EMAIL PROTECTED] When i have many many objects of the same type to build, i do something like this... function getEvents($sql = '') { $events = $this-dbh-query( SELECT cols, cols, FROM table,table WHERE blah blah balh

Re: [PHP] arrays() current() next() who to use

2004-08-19 Thread Vern
The miles are being caluculated during the loop that is created using the recordset not in the database. First I create a do..while loop to get the miles do { $k = 0; //SET FIRST ARRAY OF ONLINE USERS AND CALCULATE MILES do { //GEOZIP $zip2 = $row_rsUSERIDID['zip'];

Re: [PHP] PHP Security Workbook

2004-08-19 Thread Chris Shiflett
--- John Nichel [EMAIL PROTECTED] wrote: Chris Shiflett wrote: This news is a bit old, but I have made the workbook for my OSCON tutorial freely available from this URL: http://shiflett.org/php-security.pdf It's a 55 page PDF that has a lot of information (more than the slides)

Re: [PHP] PHP Security Workbook

2004-08-19 Thread Chris Ditty
Thanks for the article Chris. Printing it out now and will read it later. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] arrays() current() next() who to use

2004-08-19 Thread Curt Zirzow
* Thus wrote Vern: I'm setting up an array based on recordset that does a loop as follows: do { //SET ARRAYS $z['username'][$k] = $row_rsUSERIDID['uname']; $z['distance'][$k++] = $totaldist; } while ($row_rsUSERIDID = mysql_fetch_assoc($rsUSERIDID)); ... How can I now

Re: [PHP] arrays() current() next() who to use

2004-08-19 Thread Vern
Well, this is the hard way to do things, and very inefficient but: foreach(array_slice($z['distance'], $start, 10) { //... } If you think there's a better way of doing it I would like to hear it. However this is resulting in an Parse error on the foreach line:

Re: [PHP] arrays() current() next() who to use

2004-08-19 Thread Michal Migurski
If you think there's a better way of doing it I would like to hear it. However this is resulting in an Parse error on the foreach line: foreach(array_slice($z['distance'], $start, 10)) { $newuser = $z['user'][$k]; echo $newuser . - . $v . br; } foreach needs an as, probably

[PHP] Nueva web necesita enlaces php

2004-08-19 Thread webmaster
Apreciados colegas, estoy desarrollando una web en php que si bien no es muy complicada espero sea útil. Se trata de http://www.rutaweb.com/ La web principalmente está dedicada a enlaces de calidad pero en breve estrenaré sección de PHP con tutoriales y scripts. De momento agradecería que

Re: [PHP] Nueva web necesita enlaces php

2004-08-19 Thread Matt M.
On Fri, 20 Aug 2004 03:30:28 +0200, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Apreciados colegas, estoy desarrollando una web en php que si bien no es muy complicada espero sea útil. Se trata de http://www.rutaweb.com/ La web principalmente está dedicada a enlaces de calidad pero en

[PHP] PHP, over javascript code simple \n

2004-08-19 Thread Louie Miranda
Im having problems. Because my javascript is inside a PHP code. Now below are 1 line code of a print function that display this on the html header. i must put \n after the Firstname. But PHP actually reads \n so when i view it on a browser the js code moves down. Which is wrong, because it wont

[PHP] Re: PHP, over javascript code simple \n

2004-08-19 Thread Louie Miranda
Got it. use ' and not because php reads if its under On Fri, 20 Aug 2004 11:10:24 +0800, Louie Miranda [EMAIL PROTECTED] wrote: Im having problems. Because my javascript is inside a PHP code. Now below are 1 line code of a print function that display this on the html header. i must put \n

Re: [PHP] PHP, over javascript code simple \n

2004-08-19 Thread Curt Zirzow
* Thus wrote Louie Miranda: Im having problems. Because my javascript is inside a PHP code. Now below are 1 line code of a print function that display this on the html header. i must put \n after the Firstname. But PHP actually reads \n so when i view it on a browser the js code moves down.

[PHP] Storing, formatting and displaying data

2004-08-19 Thread Octavian Rasnita
Hi all, I would like to create a program that allow users to insert text into a database, than that text to appear in a web page formatted as HTML. It is simple to replace the end of line with br /\n in order to format that text as html, but I don't know how I could let the users to create

Re: [PHP] Storing, formatting and displaying data

2004-08-19 Thread raditha dissanayake
Octavian Rasnita wrote: Hi all, I would like to create a program that allow users to insert text into a database, than that text to appear in a web page formatted as HTML. It is simple to replace the end of line with br /\n in order to format that text as html, but I don't know how I could let the

Re: [PHP] Storing, formatting and displaying data

2004-08-19 Thread Xongoo!com: Central unit
Use WISIWYG editor, integrate it into your forms and presto, for example, from www.interactivetools.com, that does not work with tables, but you can find one, I think. -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.com - Original Message - From: Octavian Rasnita [EMAIL PROTECTED]