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
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 \n in order to format
that text as html, but I don't know how I could let the user
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 \n in order to format
that text as html, but I don't know how I could let the users to create
bulleted li
* 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 d
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
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 w
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
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 le
> 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 . "";
>}
"foreach" needs an "as",
> 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:
foreach(array_sli
* 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
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
--- 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 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'];
$coor1=mycoors(
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
"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
"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
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 othe
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 cook
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
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 li
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
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 so
> 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 t
> 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
> 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 "downlo
> 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
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(
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
[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
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 List
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".
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
Content-dispos
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?
>
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 protec
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 goo
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
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 h
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'] = $z['usernam
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');
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() func
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]
> |
> [produ
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: http://
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 possible
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
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 lines
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
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 P
> $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
> 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
> > 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
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
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
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: http://www.php.net/unsub.
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" <[
[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. You
[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: http://www.php.net/unsub.
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, A
[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
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
[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 dif
[snip]
$i=0;
$q="select * from links'";
while ($ihttp://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
[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
[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
>
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:
---
[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 an
[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, vi
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 MySQL
> > 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
> > 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 ca
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
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.
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 1
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
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]
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]
|
[va
77 matches
Mail list logo