Dear Ligaya Turmelle,
For example
After enter chinese words ( example ) though program ( Web ) to MS-SQL, then
search the data from the DB...
But the result of the records is not chinese words ( char ) !
Thank for your help !
Edward.
Ligaya Turmelle wrote:
I don't understand what you are
I am aware of safe mode but, are you saying that when PHP is installed as a
CGI binary safe mode is on by default?
Chris
André cerqueira [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
http://www.php.net/set_time_limit
[snip]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
actually i thought you said your scripts were running in a remote host
which you cant change php.ini
and assuming that, i said that most servers setup php in safe mode
i believe php.ini is the same for php as module and cgi-bin
dont know if that
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
http://www.php.net/set_time_limit
[snip]
Warning
set_time_limit() has NO EFFECT when PHP is running in safe mode. There
is NO workaround other than turning off safe mode or changing the time
limit in the php.ini.
[/snip]
most servers do that
I'm not sure i completely understand what you need but you could write
dynamic Javascript using PHP
e.g;
$myString = 'hey dude, help me';
script language = ...
?php
if( strstr('help me') )
include('jsfunction.inc');
?
/script
The code i wrote is really dumb, but
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
If you View Source in IE, you'll see it printed in the expected way.
The browser, though, will not show it as you expect it. This is because
the browser needs a br tag for a newline and will not read a \n as a br.
So, use br instead of \n.
Viviane Hu
snip
If you View Source in IE, you'll see it printed in the expected way.
The browser, though, will not show it as you expect it. This is
because
the browser needs a br tag for a newline and will not read a \n as a
br.
So, use br instead of \n.
/snip
you could also wrap the text in pre tags.
If you're going to build your array that way, then you need to loop through
$sometext[0], not $sometext. You're creating an array in the first element
of the $sometext array, so $sometext element zero is an array containing
your exploded words.
Instead, try:
$sometext = explode( , your long
??? wrote:
...
How can readjust the date function to make each week start with
Sunday, instead of Monday?
thank you
http://www.php.net/manual/en/function.strftime.php
Look at conversion specifiers like %U and %W.
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To
http://de.php.net/mysqli
Cheers,
Catalin
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am using PHP 5 on Windows. I have downloaded the lastest from snaps.
When I
try to use the mysqli functions, I get the error message:
undefined function mysqli_connect()
I assume this
Catalin,
Could you please be a little more specific about where on the manual page you
found the answers to my questions. I don't seem to be smart enough to find
them myself. If I was, I wouldn't have had to post the questions to the list.
Thanks,
Janet
In a message dated 9/7/2003 1:13:53 PM
Jonathan Villa wrote:
I've seen this a few times in some code examples...
XXX::XXX
What do the 2 colons signify?
http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php
--
Ney André de Mello Zunino
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi Luis,
http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php
Basically, if this is global code, you are calling the method cleanup of
class htmlcleaner as if it were simply a function. Within a class, the
$this variable is set, and calling htmlcleaner::cleanup() will work as
if
you can try just straight --with-mysql without the = and it may be in the default
path...
Don[EMAIL PROTECTED] 04/02/03 03:18PM
Hi,
Trying to install PHP with the ability to interact with MySQL. In my
configuration, I've included the option:
--with-mysql=shared,/usr
There are no compile
Perhaps something like:
?php
if ($record_count % 4 == 0) {
echo /td\ntd;
}
?
HTH,
-Dan
Clint Tredway [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have a display of images that every fourth image I want to start a new
column. In ColdFusion I would use the MOD operator like
thanks, I knew it was simple.. just can't think today!
-Original Message-
From: Dan Phiffer [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Question
Perhaps something like:
?php
if ($record_count % 4 == 0) {
echo /td\ntd
You just put the smarty files on the server like you would load up your php
files.
Note that a common gotcha is when safe mode is enabled on the server -
smarty will not ,by default, run in this case; the resolution is simple and
is explained in the smarty manual.
David Eisenhart
Sunfire
I think this is what you want?
http://www.php.net/manual/en/function.nl2br.php
John
Al wrote:
I can't find a way to replace \r\n codes with br in a text file.
I'm reading a text file that was prepared with windows notepad
The hex code shows OD OA for CR/LF as I expect.
I'd like to replace
That's what's blowing my mind. It is so simple it should work. The
php/apache [Zend] on my virtual host just seems to ignore the the
brackets.
Hans Prins wrote:
Assuming that you do want to replace [p] with br, the code you posted
worked for me. The following printed: leadingtextbrtrailingtext
Assuming that you do want to replace [p] with br, the code you posted
worked for me. The following printed: leadingtextbrtrailingtext to the
screen
?php
$find = array(' ','WOD', '', chr(146), '[p]');
$replace = array(amp; ,Wamp;OD, 'amp;', ', 'br');
$text = leadingtext[p]trailingtext;
$words
http://www.php.net/manual/en/language.types.string.php
Just the way ' and are defined. understands more escape sequences then
'.
Justin Garrett
Duncan [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
i am just adding some mail() functions to my script
Karthikeyan.Balasubramanian schrieb:
Hi,
I would like put this question directly to Rasmus creator of this
wonderful server side scripting language.
Is there a possibility with the future release of PHP to add extension in
a easier manner. For every feature client wants there is a
I believe there something (a meta tag?) called meta-refresh or just
refresh.
But I believe you have to set the refresh interval. and if you set the
interval to small it might eat your server's resources.
OR I just thought of this, sometimes when you get to a page (usually with
forms?) it says
Subject: [PHP] Re: Question about using session and logging out
I believe there something (a meta tag?) called meta-refresh or just
refresh.
But I believe you have to set the refresh interval. and if you set the
interval to small it might eat your server's resources.
OR I just thought
Subject: [PHP] Re: Question about using session and logging out
I believe there something (a meta tag?) called meta-refresh or just
refresh.
But I believe you have to set the refresh interval. and if you set the
interval to small it might eat your server's resources.
OR I just
example.
Vlad
-Original Message-
From: Stanislav Skrypnik [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 7:30 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Question about using session and logging out
Hi Kevin,
I don't well understand this part:
if active session
Skrypnik [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 7:30 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Question about using session and logging out
Hi Kevin,
I don't well understand this part:
if active session {
// validate privs for this page
Can you give small example?
TIA,
Sta
Frank,
With so many various suggestions coming your way, i'll add my 2 cents.
I have gone through all this mess. Read the information from the manual
about
strings
constants
arrays (why $some_array[id], $some_array[id] are wrong, but would work
sometimes) [unless u have intentionally defined
Randy Johnson [EMAIL PROTECTED] wrote in message
000901c2613d$e9223e30$c100a8c0@rjmarket">news:000901c2613d$e9223e30$c100a8c0@rjmarket...
how could i take all the variables in $_POST[] and move them to
$_SESSION[]?
If I understand correct, you will want something like this:
?
$var =
Where did you seen that it is depreciated?
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
Robert Cummings [EMAIL PROTECTED] a écrit dans le message de
news: [EMAIL PROTECTED]
Some time ago i wrote some code where I used the now deprecated
form
[EMAIL PROTECTED] wrote:
Where did you seen that it is depreciated?
http://www.php.net/manual/en/language.types.string.php
[block quote begins]
String access by character
Characters within strings may be accessed by specifying the zero-based offset of the
desired character after the
I have following question. How can i send to a script varible, but not from
HTML form but via URL. (I'm talkin about something like
http://www.domain.com/script.php?id=1
http://www.domain.com/script.php?id=1 in earlyier version o php).
?php
echo $_GET['id'];
?
--
Like Music?
Hi,
Place these headers in the top of your php file just below the ?PHP
and your problem should be gone.
header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT);
header(Cache-Control: no-cache, must-revalidate);
header(Pragma: no-cache);
Greetings
Peter
Donpro [EMAIL PROTECTED] schreef in
yes, true!
try this patch:
if (strcmp($name-firstName, homer) == 0) {
echo changing homer to margebr;
$name-firstName = marge;
$names[key($names)]-firstName = marge;
good luck,
Elias
Jesse Vitrone [EMAIL PROTECTED] wrote in message
From the php docs(XC. Session handling functions)
==
?php
session_register (count);
$count++;
?
Hello visitor, you have seen this page ?php echo $count; ? times.p;
?php
# the ?=SID? is necessary to preserve the session id
# in the case that the user has
http://www.php.net/manual/en/function.mkdir.php
and the other 'filesystem' commands all work in windows...
Jack [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Dear all
I had setup a web server in windows NT 4.0 (IIS Server), there is some
question i want to
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Dear all
I had setup a web server in windows NT 4.0 (IIS Server), there is some
question i want to ask bask on the file management!
1. Is there any function in php that can create a folder/Directory in a
specific path?
2. Is there
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In article 000801c231e3$414d08e0$7897fea9@N4N8U9, [EMAIL PROTECTED] says...
It´s a silly question, but how can I create a directory on web?
Using PHP? mkdir() is the function - but beware that the user your web
server runs as may not have permissions to create directories in some
places.
Is there any problem with leaving out the last else and just ending it with
an elseif such as ...
if($a == '1'){
echo '1';
} elseif ($a == '2'){
echo '2';
}
Nothing syntactically, but surely you wouldn't want a rogue '3' or '0'
to fall through the cracks... that wouldn't be very good,
In article E00ACB0129A4C748B02A744610798CE50652CE@headoffice-
fs.techex.net.au, [EMAIL PROTECTED] says...
I am looking at importing data from rdtool into a mysql backend
And not sure how to go about it...
I was wondering if anyone has tried this or know of some information
that may help.
PROTECTED]]
Sent: Monday, July 15, 2002 2:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Question 1
In article E00ACB0129A4C748B02A744610798CE50652CE@headoffice-
fs.techex.net.au, [EMAIL PROTECTED] says...
I am looking at importing data from rdtool into a mysql backend And not
sure how
it,...
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 2:49 PM
To: Chris Kay; [EMAIL PROTECTED]
Subject: RE: [PHP] Re: Question 1
On 15 Jul 2002 at 14:27, Chris Kay wrote:
I wish it was that eazy
Hi,
I am not sure if it is a right email address to ask question, if it is not
plz disregard this email :)
if it is this is my Q:
I am reading a book about php, in its security section, it says it is more
secure, as well as more efficient when installing PHP, to install PHP as a
SAPI module
I didn't ask the question about this, but I have a related issue. I'm
trying to do a replace, and am using str_replace, but the outcome is not
what I expected.
Here's my code:
?
$fp = fopen(new_data.csv, r);
$text = fopen(text.txt, r);
$merged = fopen(merged_text.html, w);
$filecontents
On Wednesday 15 May 2002 05:20, Josh Valerie McCormack wrote:
I didn't ask the question about this, but I have a related issue. I'm
trying to do a replace, and am using str_replace, but the outcome is not
what I expected.
Here's my code:
?
$fp = fopen(new_data.csv, r);
$text =
Sascha Mantscheff [EMAIL PROTECTED] schrieb im Newsbeitrag
02051311162204.02523@pico">news:02051311162204.02523@pico...
When I pass an object as a parameter to a function as $this, this is an
object reference (according to the docs).
it depends on the function. if you call it by value, not
here's an example of what i said:
?php
class obj {
Var $a = 1;
function byVal() {
byVal($this);
}
function byRef() {
byRef($this);
}
}
function byVal($obj) {
echo $obj-a += 1;
}
function byRef($obj) {
echo $obj-a += 1;
}
Replacing a constant string by another constant string works easily with
str_replace (http://www.php.net/str_replace). More advanced replacements
(with dynamic parts for example) can be replace using Regular
expressions (look that up in the Manual, it's quite complex).
Could give an example
Why don't you use javascript to refresh the page from time to time.
Michael Champagne wrote:
I'm not even sure this is possible without doing a client side java applet of
some sort.
We are considering porting a standard client/server application to the web
which updates itself dynamically
Michael Champagne [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm not even sure this is possible without doing a client side java applet
of
some sort.
You might be able to munge something using a hidden frame
and Javascript polling, but it would be an
Too hokey. We're talking about maybe 60 values on the page that will be
changing and it should look real time. I think Flash might be a potential
solution, I'm just not too familiar with it. Having the page refresh
occasionally is out of the question for how many things will be changing on
the
Michael,
Flash is a great way to do this. I have two years in Flash but am new to
PHP/MySQL - one of the things you will appreciate is the ease of using
actionscript on the flash side to communicate with your PHP script. And I
know not everybody will like this part, but you can put all the
In [EMAIL PROTECTED], Sebastian A. wrote:
Have the new DOM XML functions been included in the latest version of
PHP (4.2) when I try to use one of the new functions, such as
domxml_open_file() I get an error message saying I am calling and
undefined function. Has anyone successfully used
Maybe parse_str() will do the trick?
I am using it in a close situation, I store:
a=1b=1
And $a has value 1, $b has value 2.
But I guess to work in your case you would need to stripslashes(); and
str_replace(';', '', $string) before the parse_str();
--
Julio Nobrega.
Um dia eu
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Hi,
Does fopen() work similar to open in CGI ?
?? CGI ?? Some new language?
If the file doesn't exist will
it create it?
Depends on the parameters you feed to fopen for 'mode'; w, w+, a and a+
will attempt to create the file if
Matthew Berwald [EMAIL PROTECTED] wrote:
Do you know of any method/package out there that I
could install on my linux machine that will all me to
print data to a printer? Thanks for the help.
$lp = popen(lpr, w);
fwrite($lp, stuff to print);
pclose($lp);
this uses the unix-standard 'lpr'
It won't affect your database. Adding --with-pgsql just tells php to
compile PostgreSQL support and tells it where to find the postgresql
libraries.
It won't touch your database at all.
On Fri, 21 Dec 2001 [EMAIL PROTECTED] wrote:
Hello, just wondering if I compile or have to recompile php
My 2 cents...
I think exit should be fixed as you describe...
And I think die should behave as it does in perl
which is to print out whatever it is passed.
-Garth
--- Jani Taskinen
- Question: Should exit() print out the integer exit-status?
- Wed, 19 Dec 2001 01:38:39 +0200 (EET)
Jani Taskinen wrote:
background information:
http://bugs.php.net/bug.php?edit=1id=11008
http://bugs.php.net/bug.php?edit=1id=14574
exit() function is broken. Fixing the broken behaviour is the
only real solution, IMO.
Since some people prefer to keep current behavior (for a while?)
Don't recall seeing them here, but many of us have read their book if that
is of any help.
Fred
Phillip B. Bruce [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
By any chance that Luke Welling or Laura Thomson is on this list?
--
Let me add that I do currently use PHPMyAdmin. As cool as it is I juts want
to see what others are using to make sure I am not missing out on anything!
Deron
www.metalages.com
Deron [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have a huge project I am in
have you tried MySQL Front? it\'s a really nice win32 client, check it out from:
http://www.anse.de/mysqlfront/
screenshot: http://www.anse.de/mysqlfront/images/mysqlfront.gif
I have a huge project I am in the midst of developing (something similar to
www.allmusicguide.com except exclusively
I dunno nothing about Netscape Suitespot, but it sounds like you're not
getting the web-server to load index.php by default.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a
You can use just the one table with a parent for each sub-category:
alter table category add parent int(11);
idparentname
1NULLfruit
21apple
31banana
41coconut
Now, suppose you need the sub-categories of the record with ID #1
(IE, all the
I don't think this is correct!
You can't do this:
list($a, $b) = variable!
which is the case in: list($key, list($tag, $data)) = each($array)
you can use: list($key, $value) = each($array)
D [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am a newbie and
Hmm.. I dont think I agree with you on that. First the code works perfect,
second its just using two list() rather then one, otherwise its exactly the
same thing as you say would work, which is what makes me think its a two
dimensional array.
Ken
_lallous wrote in message [EMAIL PROTECTED]...
how you mean it/be more specific?
while (list(, $value) = each($array))
{
echo value = $value\n;
}
Johan Vikerskog [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]..
.
I have done this before but my memory fails me.
I am trying to just loop threw ny array and
-Original Message-
From: _lallous [mailto:[EMAIL PROTECTED]]
Sent: den 6 september 2001 12:44
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Question.
how you mean it/be more specific?
while (list(, $value) = each($array))
{
echo value = $value\n;
}
Johan Vikerskog [EMAIL PROTECTED] wrote
k.
Help?!?
//Johan the senile
-Original Message-
From: _lallous [mailto:[EMAIL PROTECTED]]
Sent: den 6 september 2001 12:44
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Question.
how you mean it/be more specific?
while (list(, $value) = each($array))
{
echo value = $value\n;
So echo a br as well.
echo $os. br; //this will do the trick
Cheers
Jon
-Original Message-
From: Johan Vikerskog (EMP) [mailto:[EMAIL PROTECTED]]
Sent: 06 September 2001 12:24
To: '_lallous'; [EMAIL PROTECTED]
Subject: RE: [PHP] Re: Question.
ok i have this:
?php
include
Why do you need the DSO to run as root?...
If it's just to do a specific task, it may be easier to write a shell script
(or PHP script, or Perl script) and suid it so that nobody can do that one
specific task that requires root access.
--
WARNING [EMAIL PROTECTED] address is an endangered
Php uses sendmail, atleast on Unix systems.
Alex Shi wrote:
Hi,
I have a question regarding to mail() function:
Does mail() function use sendmail, or just use a mail program of php?
If it uses a mail program other than sendmail, how can configure it to
work correctly?
Alex
--
It uses sendmail by default.
You can change that in php.ini to anything you want.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time:
Let's i.e. a Bannerexchange, the users just put an img-tag on there site and
the image appears. I wnat to know how this is possible. I tried already
something like this:
$im = imagecreatefromgif(news.jpg);
imagegif = ();
Schrotty [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL
My problem is solved!!!
Schrotty [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I wanted to call a PHP-Skript through a img-Tag and PHP sends a image
back.
How can I do that?
Schrotty.*
I'm German, so please be patient with my English.
--
PHP
How did you solve it?
Kunal
- Original Message -
From: Schrotty [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 15, 2001 11:18 PM
Subject: [PHP] Re: Question about PHP and images
My problem is solved!!!
Schrotty [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Dennis Kaandorp) wrote:
Ah. I see why you're having trouble: documentation of the 'F' modifier has
apparently be excised from the manual since the preg_replace_callback() has
replaced it in PHP 4.0.5. If you've got 4.0.5, use the new function
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Dennis Kaandorp) wrote:
Is there a way to replace the spaces between the paths?
This is what I mean:
/uploads//by/ /dennis/
must become
/uploads/4sp/by/3spdennis/
See http://php.net/preg-replace. You can use the e or f modifier to
Thank you very much!
Cc Zona [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Dennis Kaandorp) wrote:
Is there a way to replace the spaces between the paths?
This is what I mean:
/uploads//by/
argh.. it was to complicated for me :(
Can you help me with this?
$ftpdata['path'] = preg_replace($ftpdata['path']);
Thnx
Cc Zona [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Dennis Kaandorp) wrote:
Is
see eregi()
James W Greene [EMAIL PROTECTED] wrote in message
032f01c109fd$53ad0b70$0cfb94d0@calcutta">news:032f01c109fd$53ad0b70$0cfb94d0@calcutta...
Hi All,
I have an e-mail message stored in the var $message How can I grep
for
say the From lines and such in $message using PHP. I
201 - 282 of 282 matches
Mail list logo