--- Alexander Kleshchevnikov <[EMAIL PROTECTED]> wrote:
> You should chech for configuration of magic quotes gpc.
> Use get_magic_quotes_gpc() function:
>
> $foo = get_magic_quotes_gpc() ? stripslashes($_POST["foo"]) :
> $_POST["foo"]);
I agree. However, stripslashes() doesn't necessarily undo ad
--- Paul Waring <[EMAIL PROTECTED]> wrote:
> > I think you used header() after put out some data or php installed on
> > server as CGI. Because send header possible only if php installed as
> > apache module.
>
> Not so - I've used header('Location: http://www.xyz.com/'); with PHP
> as a CGI binar
Check out the manual on the date function. It allows you to get names from
dates. The PEAR date stuff will allow you to do date math.
> -Original Message-
> From: Rajesh [mailto:[EMAIL PROTECTED]
> Sent: Sunday, September 12, 2004 10:04 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] MS Outl
HI,
A good article about magic quotes
http://www.webmasterstop.com/tutorials/magic-quotes.shtml
zareef ahmed
--- Alexander Kleshchevnikov <[EMAIL PROTECTED]>
wrote:
> You should chech for configuration of magic quotes
> gpc.
> Use get_magic_quotes_gpc() function:
>
> $foo = get_magic_quotes_
HI ,
--- Nicolae Serban <[EMAIL PROTECTED]> wrote:
> i'm new with php 5 and i whant to know if gtk it is
> still working with php 5 !!
>
> Thank you !
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
visit http://gtk.php.net ;)
Jim,
Thank you. Problem solved thanks to you. The moment you said that PEAR::DB
is not finding the MySQL extention I realized that the extension in php.ini
hasn't been commented out and the extension folder had not been recognized
by PHP. I forgot we had to do that in PHP5. Everything is working l
Hi,
--- Jason Wong <[EMAIL PROTECTED]> wrote:
> Not sure why you would want to chdir first. Why not
> just:
>
ftp_chdir is usefull on windows specially if directory
name has a space in it.
zareef ahmed
=
Zareef Ahmed :: A PHP Developer in Delhi ( India ).
Homepage :: http://www.zasaifi.c
Yeah It was the same problem with me too,When I tried to Google,I found that PHP 5 is
not an upgrade of PHP 4 ,but a complete rewrite,
So,I thought of switching to php 4,which works quiet relevantly,
You need to configure php4.3 wit MYSQL and apache before they are used and the thing
is that in
yup, you took the words from my mouth...
[EMAIL PROTECTED] wrote:
>
> dirk wrote:
>
> >The first function you need to call using to see the
> output
> >THe second function is not a real function because it has no return
> >statement. In german you call this "Prozedur". Don't know if it's the
>
Hai all
i just saw MS Outlook 2003
in this applicatioin the mail are sorted in date and given names like
Today
Yesterday
Last Week
Two Weeks Ago ...
Can anybody give me algorithm to get date in this string version .
Thank you,
Rajesh
Justin French wrote:
On 13/09/2004, at 12:45 PM, John Holmes wrote:
str_replace(array("\r","\n",'',$text)
Is one way to do it.
Typo John:
str_replace(array("\r","\n"),'',$text);
Yeah, that's why I said it was "one way" to do it and not the "correct
way" to do it... come on people!! ;)
Anyway, I
On 13/09/2004, at 12:45 PM, John Holmes wrote:
str_replace(array("\r","\n",'',$text)
Is one way to do it.
Typo John:
str_replace(array("\r","\n"),'',$text);
:)
---
Justin French
http://indent.com.au
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.ph
John, et al --
[Been a while! How ya been?]
...and then John Holmes said...
%
% David T-G wrote:
%
% >I'd like some sanity checks on safely using input for sending mail. I'm
...
% >At the moment, I am running escapeshellcmd() on the From:, To:, Subject:,
...
% >his own bandwidth limits). Unf
Jeff Swanberg wrote:
I've tried many locations but can't figure out how to change the font
attributes for just my dropdown list on my page. The dropdown box populates
its data perfectly but I'd like to change the font to Arial Bold 10pt on the
items.
Google -> CSS Tutorial
(not a PHP issue)
--
Hello Jeff,
You can use the style attribute in like you have done in the
So this:
echo " $row[0] ";
Could look like this:
echo " $row[0] ";
--
Franklin van de Meent
[EMAIL PROTECTED]
On Sun, 12 Sep 2004 19:46:51 -0700, Jeff Swanberg
<[EMAIL PROTECTED]> wrote:
> I've tried many locations
I've tried many locations but can't figure out how to change the font
attributes for just my dropdown list on my page. The dropdown box populates
its data perfectly but I'd like to change the font to Arial Bold 10pt on the
items.
Here's my code:
?>
>
";
echo " Choose Event ";
mysql_connect
David T-G wrote:
I'd like some sanity checks on safely using input for sending mail. I'm
developing a feature where one can click a 'mail this page' link, fill in
the sender's and the recipient[s]'s addresses, and add comments in the
body (eg "Hey, Bill, what do you think of this chair?") and then
Jay wrote:
I got this code from here, i think it was "Ni Shurong" who gave it to
me. The code works pretty good. Except i found that sending "asdas."
into the function will return true...it should return false. What i am
trying to do is check for valid chars. Only alpha and numeric. Can
someone
Hi, all --
I'd like some sanity checks on safely using input for sending mail. I'm
developing a feature where one can click a 'mail this page' link, fill in
the sender's and the recipient[s]'s addresses, and add comments in the
body (eg "Hey, Bill, what do you think of this chair?") and then gene
i'm new with php 5 and i whant to know if gtk it is still working with php 5 !!
Thank you !
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* Thus wrote Sam Hobbs:
> Using the code shown below, I get nothing from get_class_vars but I do get
> very useful results from get_class_methods. I realize that this is how it is
> supposed to be, but it would be useful to be able to get the property
> members of the class. The reason I want to
* Thus wrote Ed Lazor:
> > -Original Message-
> > What you can do is something like this:
> >
> >
> 1> function __autoload($class_name) {
> 2> static $_stack = array();
> 3>
>
> This didn't seem to work. The stack stuff just ends up dumping the value of
> $class_name. Also, why chec
Hi!
I got this code from here, i think it was "Ni Shurong" who gave it to
me. The code works pretty good. Except i found that sending "asdas."
into the function will return true...it should return false. What i am
trying to do is check for valid chars. Only alpha and numeric. Can
someone help m
Mike wrote:
hi, there!
I have a script that basically tries to upload a file to the server. But when the
move_uploaded_function is called, it returns these errors:
Warning: move_uploaded_file(../Main/ImgStiri/ceva.jpg): failed to open stream: Permission denied in /home/gotech/public_html/Nou/funct
http://www.php.net/manual/ru/faq.databases.php#faq.databases.mysql.php5
---
Alexander Kleshchevnikov,
DirectEDI Developer
email:[EMAIL PROTECTED]
icq: 153617972
---
"Nicolae Serban" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL
-- Forwarded message --
From: Nicolae Serban <[EMAIL PROTECTED]>
Date: Mon, 13 Sep 2004 01:58:38 +0300
Subject: [PHP] I don't understand why
To: [EMAIL PROTECTED]
I just install the PHP 5 !
This is the code
and this is the error messege WHY !!!
Fatal error: Call to und
hi, there!
I have a script that basically tries to upload a file to the server. But when the
move_uploaded_function is called, it returns these errors:
Warning: move_uploaded_file(../Main/ImgStiri/ceva.jpg): failed to open stream:
Permission denied in /home/gotech/public_html/Nou/functii.php on
I just install the PHP 5 !
This is the code
and this is the error messege WHY !!!
Fatal error: Call to undefined function mysql_connect() in
C:\Apache\Apache2\htdocs\ttt.php on line 3
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
Hello,
You can't,
It's a security thing.
this doesn't make sense. When PHP is running as CGI, everyone can put
it's own php.ini in the same directory as the PHP-script. This will
overwrite all settings of the main php.ini. This works as described, but
I don't want to put my own php.ini for that,
Merlin wrote:
Hi there,
I am wondering how to count the number of unique values inside an array.
For example, there is an array named country and it containes 3 country
names, where Germany is doubled. So I would like to know that there are
2 unique country names in the array.
Has anybody an ide
Hi there,
I am wondering how to count the number of unique values inside an array.
For example, there is an array named country and it containes 3 country names,
where Germany is doubled. So I would like to know that there are 2 unique
country names in the array.
Has anybody an idea how to achiv
You should chech for configuration of magic quotes gpc.
Use get_magic_quotes_gpc() function:
$foo = get_magic_quotes_gpc() ? stripslashes($_POST["foo"]) : $_POST["foo"])
;
Do it with all GET and POST variables.
--
Alexander.
"Php Mailing List Account" <[EMAIL PROTECTED]> wrote in message
news:[
* and then M. Sokolewicz declared
> >How come I dont see the html header (it's just a function that returns a
> >string with the html up till ) before the entire script has run?
> >
> >This goes against my understanding, why might this be and what might i
> >use to get some output before the s
* and then John Holmes declared
> >How come I dont see the html header (it's just a function that returns a
> >string with the html up till ) before the entire script has run?
> >
> >This goes against my understanding, why might this be and what might i
> >use to get some output before the scr
* and then Jason Davidson declared
> i prefer to escape from php inside my header fucntion, and just not
> print it..
> eg.
> function header() {
>?>
> }
Yes, i remember now, thanks ;-)
I've been using Smarty (smarty.php.net) for so long now that i've
forgotten how this stuff works
dirk wrote:
The first function you need to call using to see the output
THe second function is not a real function because it has no return
statement. In german you call this "Prozedur". Don't know if it's the
same as procedure in english. But you will call this piece
header(); ?> to see some out
Nick Wilson wrote:
Hi all,
Say i have a php script like this:
How come I dont see the html header (it's just a function that returns a
string with the html up till ) before the entire script has run?
This goes against my understanding, why might this be and what might i
use to get some output be
Well, there is a difference between
> function html_head() {
> $html = "
> return $html;
> }
and
> function header() {
> ?>
> }
The first function you need to call using to see the output
THe second function is not a real function because it has no return
statement. In german you call
Manoj Nahar wrote:
see this link
http://dev.mysql.com/downloads/connector/j/3.0.html
official mysql jdbc driver.
PS. Give google a chance.
On Sun, 12 Sep 2004 15:52:12 +0200, Daniel Schierbeck <[EMAIL PROTECTED]> wrote:
I'm sorry if this is off-topic, but i figured this was the best place to
ask:
There is nothing wrong with what your doing, i use this sort of thing
for all the big sites i make, i use a page class and use methods to
create the header and footer, so your concept is good. I would
investigate your html_head() function, to make sure its actually
returning something. Sinse your
Nick Wilson wrote:
Say i have a php script like this:
How come I dont see the html header (it's just a function that returns a
string with the html up till ) before the entire script has run?
This goes against my understanding, why might this be and what might i
use to get some output before the s
Hi all,
Say i have a php script like this:
How come I dont see the html header (it's just a function that returns a
string with the html up till ) before the entire script has run?
This goes against my understanding, why might this be and what might i
use to get some output before the script
Yeah, thanks. Good idea!
It is good to code that:
$authors = array();
while ($authors[] = mysql_fetch_assoc($news));
"Chris Martin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Alexander Kleshchevnikov wrote:
> > Maybe you want this:
> >
> > while ($data = mysql_fetch_assoc($ne
see this link
http://dev.mysql.com/downloads/connector/j/3.0.html
official mysql jdbc driver.
PS. Give google a chance.
On Sun, 12 Sep 2004 15:52:12 +0200, Daniel Schierbeck <[EMAIL PROTECTED]> wrote:
> I'm sorry if this is off-topic, but i figured this was the best place to
> ask:
>
> I've b
I'm sorry if this is off-topic, but i figured this was the best place to
ask:
I've begun using the Eclipse IDE, and has downloaded the Quantum DB
plugin. It says that i need a JDBC driver in order to connect to a
remote MySQL database - where do i get that? I've looked at mysql.com,
but i couldn'
php guy wrote:
On Sat, 2004-09-11 at 22:36, Jeff Swanberg wrote:
Nope, I have them all. Any other ideas??? Do I need to load the style.css
on every sub-page or just on the main page? Perhaps the style sheet is
cached so, after I upload a new one, I need to do something to flush the
cache?
On Sunday 12 September 2004 10:08, Karol Krizka wrote:
> function get_files($dir="/") {
> ftp_chdir($this->connection,$dir);
> $array=ftp_nlist($this->connection,ftp_pwd($this->connection));
> var_dump($array);
> }
> When I connect to ftp server for my website at
> ftp:/
On Sat, 2004-09-11 at 22:36, Jeff Swanberg wrote:
> Nope, I have them all. Any other ideas??? Do I need to load the style.css
> on every sub-page or just on the main page? Perhaps the style sheet is
> cached so, after I upload a new one, I need to do something to flush the
> cache?
>
> js
>
48 matches
Mail list logo