[EMAIL PROTECTED] wrote:
Dear list,
I have several IP in one interface (eth0) in my server and I want make
connection to another server (check email, etc) using different ip for
every mail server. I was read the document, and there is no way how to
make this happen. Any idea?
Thank you
Take a
Dear lists,
I have tested it but it's not what I want to do. I am looking for any
method to make multi connection with many ip from my box to download email
from different mailserver.
Thank you
David T
[EMAIL PROTECTED] wrote:
Dear list,
I have several IP in one interface (eth0) in my
On Apr 10, 2005 9:12 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I have tested it but it's not what I want to do. I am looking for any
method to make multi connection with many ip from my box to download email
from different mailserver.
The method I'd use to fetch mail is fetchmail.
-Original Message-
From: Steve Slater [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 12, 2005 5:29 PM
$name_array = explode( ,$name);
$short_name = $name_array[0] . end($name_array);
And a dozen other ways to do it I'm sure. I just finished a
project with a mess of pattern matching
At 11:54 PM 3/11/2005, Stephen Johnson wrote:
Just a quick and dirty solution - but couldn't you explode the name into
an array and use the first and last array fields ?
$name_array = explode( ,$name);
$short_name = $name_array[0] . end($name_array);
And a dozen other ways to do it I'm sure. I
Mario,
Many ways to do it, most using regex. This is not as clean as it
can be but still shows the idea:
?php
$name = Mario Augusto Machado dos Reis Gamito;
preg_match (/^(\w+)(\W*)(\w+\W+)*(\w+)$/,$name,$matches);
$short_name = $matches[1] $matches[4];
?
This example works for any number of
Just a quick and dirty solution - but couldn't you explode the name
into an array and use the first and last array fields ?
On Mar 11, 2005, at 11:39 PM, Steve Slater wrote:
Mario,
Many ways to do it, most using regex. This is not as clean as it
can be but still shows the idea:
?php
$name =
[snip]
1.) rename the php.ini.default to plain php.ini and see if that
resolves it. However, I'm not sure what kind of tests can I perform
to see that it is working properly?
[/snip]
How about just making a copy of the file and testing it? Have you run
phpinfo() yet?
--
PHP General Mailing List
[snip]
Yup, I have tried making a copy of it. I'm just not exactly sure how
to test it? I ran phpinfo() , and it runs even without a php.ini.
[/snip]
Change something in the configuation file that you know you can run a
test on, like safe mode status, then restart Apache and conduct the
test.
Stephen Wong wrote:
I'm very new to php. Here are some basic info about my server that I
am running:
Mac OS X 10.3.7
PHP 4.3.10
MySQL 4.0.18
Apache 1.3.33
What I want to do is host a forum on my web page. I can't seem to get
it set up, and I notice that I do not have a php.ini file in
PROTECTED]
Sent: Monday, February 07, 2005 12:53 PM
To: Stephen Wong
Cc: php-general@lists.php.net
Subject: RE: [PHP] Question about php.ini
[snip]
Yup, I have tried making a copy of it. I'm just not exactly
sure how to test it? I ran phpinfo() , and it runs even
without a php.ini.
[/snip
[snip]
So... how do I work around this? Can I get php to write the files so
they aren't owned by apache but rather thwn owner of the php script
that creates them?
[/snip]
PHP scripts run by the HTTP server are run as the web server. The web
server runs as 'Apache', so Apache needs permissions
Rick Root wrote:
I have a little home made CMS that writes files... on the server I've
recently installed this CMS on, those files get written as apache:apache
...
that file uses include to include other files that are not owned by
apache, and this doesn't work.
Warning: main(): SAFE MODE
[snip]
I've got a question about the following cronjob.
#At 3:01 our time, run backups
1 0 * * * /usr/local/bin/php
/www/r/rester/htdocs/auto_backup/back_em_up.php
/www/r/rester/htdocs/auto_backup/cron.log 21
#At 3:02 clean up sessions folder
2 0 * * * (find /www/r/rester/htdocs/sessions/
Jay Blanchard wrote:
[snip]
I've got a question about the following cronjob.
#At 3:01 our time, run backups
1 0 * * * /usr/local/bin/php
/www/r/rester/htdocs/auto_backup/back_em_up.php
/www/r/rester/htdocs/auto_backup/cron.log 21
#At 3:02 clean up sessions folder
2 0 * * * (find
Al wrote:
I've got a question about the following cronjob.
#At 3:01 our time, run backups
1 0 * * * /usr/local/bin/php
/www/r/rester/htdocs/auto_backup/back_em_up.php
/www/r/rester/htdocs/auto_backup/cron.log 21
#At 3:02 clean up sessions folder
2 0 * * * (find /www/r/rester/htdocs/sessions/
#this is only for testing a new cronjob, every minute
* * * * * /usr/local/bin/php
/www/r/rester/htdocs/phpList_cronjob/process_cronjob.php
/www/r/rester/htdocs/phpList_cronjob/cron.log 21
The new one doesn't seem to want to run until after 3:01 or 3:02.
Shouldn't the
sever just run it
Erwin Kerk wrote:
Al wrote:
I've got a question about the following cronjob.
#At 3:01 our time, run backups
1 0 * * * /usr/local/bin/php
/www/r/rester/htdocs/auto_backup/back_em_up.php
/www/r/rester/htdocs/auto_backup/cron.log 21
#At 3:02 clean up sessions folder
2 0 * * * (find
On Mon, 2005-01-17 at 09:01, Erwin Kerk wrote:
Al wrote:
I've got a question about the following cronjob.
#At 3:01 our time, run backups
1 0 * * * /usr/local/bin/php
/www/r/rester/htdocs/auto_backup/back_em_up.php
/www/r/rester/htdocs/auto_backup/cron.log 21
#At 3:02 clean up
Erwin Kerk wrote:
The CRON daemon only refreshes it's job list after a job in the
current list is completed. Therefore, the CRON daemon won't notice the
every-minute job until 3.01 pm.
I'm not sure I understand what you're saying above. Can you provide a pointer
to
documentation about this?
On Monday 17 January 2005 23:19, Al wrote:
Erwin Kerk wrote:
Al wrote:
The CRON daemon only refreshes it's job list after a job in the current
list is completed. Therefore, the CRON daemon won't notice the
every-minute job until 3.01 pm.
Not sure if I've misunderstood what Al is saying
Michael Sims wrote:
Erwin Kerk wrote:
The CRON daemon only refreshes it's job list after a job in the
current list is completed. Therefore, the CRON daemon won't notice the
every-minute job until 3.01 pm.
I'm not sure I understand what you're saying above. Can you provide a pointer
to
Jochem Maas wrote:
Michael Sims wrote:
Additionally, cron checks each minute to see if its spool
directory's modtime (or the modtime on /etc/crontab) has changed,
and if it has, cron will then examine the modtime on all crontabs
and reload those which have changed. Thus cron need not be
Michael Sims wrote:
Erwin Kerk wrote:
The CRON daemon only refreshes it's job list after a job in the
current list is completed. Therefore, the CRON daemon won't notice the
every-minute job until 3.01 pm.
I'm not sure I understand what you're saying above. Can you provide a pointer
to
Michael Sims wrote:
Jochem Maas wrote:
Michael Sims wrote:
Additionally, cron checks each minute to see if its spool
directory's modtime (or the modtime on /etc/crontab) has changed,
and if it has, cron will then examine the modtime on all crontabs
and reload those which have changed. Thus
On Fri, 24 Dec 2004 08:46:28 -0600, Brent Clements
[EMAIL PROTECTED] wrote:
How does one over come the issue of unix time not going beyond a certain date?
Overcome the issue in what way? A 32bit integer is what it is.
ie, when I do echo strtotime(2099-10-08); it outputs -1
So don't use
On Thursday 14 October 2004 06:02, Jason FB wrote:
Does anyone know how I can create a directory which is owned by my
user account on this server-- or have any other creative suggetions?
If you have it, use FTP.
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software
Say I'm trying to add a value to an array, only if it's not already in
there somewhere; so I do an array_search to see. The problem is that if
the item is at index 0 in the array, array_search gives the same answer
as if it's not in there at all. How does one circumvent this potential
On Mon, 11 Oct 2004 09:07:13 -0700, Brian Dunning
[EMAIL PROTECTED] wrote:
Say I'm trying to add a value to an array, only if it's not already in
there somewhere; so I do an array_search to see. The problem is that if
the item is at index 0 in the array, array_search gives the same answer
as
On Mon, 11 Oct 2004 09:07:13 -0700, Brian Dunning
[EMAIL PROTECTED] wrote:
The problem is that if the item is at index 0 in the array, array_search gives the
same answer as if it's not in there at all.
No it doesn't.
If it's in index 0 it returns 0, if it's not there at all it returns
Brian Dunning wrote:
Say I'm trying to add a value to an array, only if it's not already in
there somewhere; so I do an array_search to see. The problem is that if
the item is at index 0 in the array, array_search gives the same answer
as if it's not in there at all.
No it doesn't. If the
Greg Donald wrote:
On Mon, 11 Oct 2004 09:07:13 -0700, Brian Dunning
[EMAIL PROTECTED] wrote:
Say I'm trying to add a value to an array, only if it's not already in
there somewhere; so I do an array_search to see. The problem is that if
the item is at index 0 in the array, array_search gives the
On Saturday 02 October 2004 00:34, Greg Donald wrote:
The manual is not clear on this point.
Also, must I have a an existing error file for the errors to append to?
No, the web server error log is where they shoudl appear.
No, PHP errors DO NOT appear in the apache logs[1], they are
Could you provide more information, code example or a how to to do this..
Thanks
On Mon, 04 Oct 2004 15:03:31 -0700, Matthew Fonda [EMAIL PROTECTED] wrote:
The best way to store credit card numbers is to have them encrypted when
they are stored in the database, and decrypted when they need
On Tue, 5 Oct 2004 12:29:53 -0400, Gary Hotko [EMAIL PROTECTED] wrote:
Could you provide more information, code example or a how to to do this..
Have a look at the Mcrypt functions in PHP (you need to complie
support for this extension to access these features):
On Mon, 4 Oct 2004 14:49:44 -0700, Ed Lazor [EMAIL PROTECTED] wrote:
I'm looking at online stores and it seems like a lot of them maintain copies
of credit card numbers. Is this true? That seems like a bad thing to me,
especially in terms of liability and risk of hackers. On the flip side,
The best way to store credit card numbers is to have them encrypted when
they are stored in the database, and decrypted when they need to be
used, that way it will be safer for the most part
On Mon, 2004-10-04 at 14:49, Ed Lazor wrote:
I'm looking at online stores and it seems like a lot of them
On Fri, 01 Oct 2004 10:36:28 -0400, Al [EMAIL PROTECTED] wrote:
If I place this at the top of my script file, the page just hangs.
error_reporting (E_ERROR | E_WARNING);
A virtual host on a Unix/Apache system. Runs fine without the error_reporting().
The default system error reporting
Greg Donald wrote:
On Fri, 01 Oct 2004 10:36:28 -0400, Al [EMAIL PROTECTED] wrote:
If I place this at the top of my script file, the page just hangs.
error_reporting (E_ERROR | E_WARNING);
A virtual host on a Unix/Apache system. Runs fine without the error_reporting().
The default system error
On Fri, 01 Oct 2004 12:13:18 -0400, Al [EMAIL PROTECTED] wrote:
What's puzzling is that I can simply comment out the error_reporting line and
the code runs fine.
Also, the Apache error log doesn't show any errors. with or without the
error_reporting.
Make sure you have
log_errors = On
in
* Thus wrote Corey Hitchcock:
Hi, I'm relatively new with php but I have a question about this 'new'
function. If I use file_put_contents(file.txt, whatever) then it, of
course, writes whatever in the file.txt. If I later do the same thing
but put a different word (say other) from whatever
You could try
for ($i=1;$i11;$i=$i+2)
--
ash young :: http://evoluted.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?php
for ($x = 0; $x 10; $x += 2)
echo $x.',';
?
m.
Henri Marc wrote:
Hello,
I woudlike to use a loop:
for ($i=1;$i11;$i++)
But instead of incrementing with 1, I would like to
increment by 2. So $i would be 1,3,5,7,9. I tried to
find the answer may be with step but couldn't find
Yep :-)
[...]
can I do a #!/usr/bin/php -q at the begining of the text file?
[...]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a #!/usr/bin/perl -w
can I do a #!/usr/bin/php -q at the begining of the text file?
Thanks.
From: Elijah Gallatin [EMAIL PROTECTED]
To: Charlie Don [EMAIL PROTECTED]
Subject: Re: [PHP] Question about executing PHP script
Date: Mon, 28 Jun 2004 19:33:14 -0400
On Mon, 28 Jun 2004 23:29:16 +
hi...
the reason that mail() wont work on windows without an smtp server (outgoing
mail server) is because normally windows doesnt have a mail server
installed. the default smtp settings in php.ini usually is for *nix systems
(that is if it is even set).
it is very easy to fix:
go into
you've to go in the php.ini and give a smtp server
-Message d'origine-
De : Shawn Inder [mailto:[EMAIL PROTECTED]
Envoyé : samedi 24 avril 2004 6:03
À : [EMAIL PROTECTED]
Objet : [PHP] Question about the mail() php function
Hello,
I was browsing your site and came across the mail() PHP
Sounds like you don't have a mail server running on localhost at port 25.
If you do have a mail server running, then it seems to me that you should
verify your SMTP and smtp_port setting in php.ini or use ini_set() in
C:\Program Files\Abyss Web Server\htdocs\page.php on line 24. Just
If I had to take a wild guess I'd say that there's no mail server on
your machine that would be capable of accepting email for delivery.
And that Warning is PHP's effort to tell you just that.
Hint: google - and I bet most other search engines - give you plenty
of sites providing good information
hi,
I want to send an SMS(to mobile phone etc) based on a database trigger or on
completion of an php page. the site runs on linux.
how to do this. How do i send the mobile no . what is the language, protocol,
syntax and platform.
if anyone knows please inform. i am unable to
understand
Hi,
Friday, March 26, 2004, 11:19:51 AM, you wrote:
dz Hello,
dz I'm creating registration service with this great form script for
dz creating forms within Smarty.
dz Question is how can I validate 'username' against allready registered
dz users in MySQL so that someone cannot register him
Hello James,
Monday, March 1, 2004, 7:09:24 PM, you wrote:
JM Are there any concerns with having the 'magic quotes'
JM enabled or should I use the Add Strip Slashes? I
JM will be using a database (MySQL).
I wouldn't be concerned about using them at all - they're not a
security risk or anything
On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote:
Could be missing the point here because your question is quite vague.
However...
I am using a web page that uses the following php code to display the
contents of a dynamically update webpage:
?php
include(http://.../source.xls);
?
Is it
Thanks!
It works like a charm!
/peter
On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote:
Could be missing the point here because your question is quite vague.
However...
I am using a web page that uses the following php code to display the
contents of a dynamically update webpage:
?php
Freedomware wrote:
When I view my data in phpMyAdmin, all I see in that column is NULL.
When I preview it in a webpage, nothing displays at all. If I change it
to NOT NULL, I see -00-00 in every cell.
Here's a row of text from the CSV file I imported into my MySQL table:
John W. Holmes wrote:
Freedomware wrote:
When I view my data in phpMyAdmin, all I see in that column is NULL.
When I preview it in a webpage, nothing displays at all. If I change
it to NOT NULL, I see -00-00 in every cell.
Here's a row of text from the CSV file I imported into my MySQL
Freedomware wrote:
EMS lists the following:
Short Date: M/d/
Long Date: , dd,
Day followed by month, followed by another day, then year???
That format means something like Friday, May 5, 2004
I thought it was supposed to be year first, followed by month and day,
as in the
John W. Holmes wrote:
Freedomware wrote:
EMS lists the following:
Short Date: M/d/
Long Date: , dd,
Day followed by month, followed by another day, then year???
That format means something like Friday, May 5, 2004
I thought it was supposed to be year first, followed by month
Renan G. Galang wrote:
I just need a confirmation, when the getdate() function is invoked inside a PHP script, the date returned will be the server hosting the pages' date and not the client requesting the page, right? or am i wrong in my assumption? Thanks guys.
Correct.
--
By-Tor.com
It's all
Renan G. Galang wrote:
I just need a confirmation, when the getdate()
function is invoked inside a PHP script, the date
returned will be the server hosting the pages' date
and not the client requesting the page, right? or
am i wrong in my assumption? Thanks guys.
Yes, you are not wrong in
Joe Harman wrote:
Thanks for your comments Chris and Rob... Chris you have great points to
make, my ears are wide open...
The reason I thought about storing the array in a blob is because every
test generated will be different. the 102 question test will be generate
randomly from a bank of 500
On Wed, 2004-01-21 at 23:07, Joe Harman wrote:
I am curious how much data an array can hold.. And what the pros and
cons are.
How much memory have you allowed PHP to consume?
Example.. I am making a testing system that will give a student a 102
question test...
The test would be
Robert Cummings wrote:
Also can I store those arrays as a blob in MySQL?
You could, but you'd be better off storing them in normalized tables
IMHO.
In this cans I will have to strongly agree with Rob, but I also have to
add a few comments.
Why on earth would you store an array as a blob
of
wisdom are also welcome :o)
So thanks for your input,
Joe
-Original Message-
From: Chris W [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 21, 2004 11:54 PM
To: Robert Cummings; PHP-General
Subject: Re: [PHP] Question about array limits practicallity
Robert Cummings wrote:
Also
Joe Harman wrote:
Thanks for your comments Chris and Rob... Chris you have great points to
make, my ears are wide open...
The reason I thought about storing the array in a blob is because every
test generated will be different. the 102 question test will be generate
randomly from a bank of 500
Cummings; PHP-General
Subject: Re: [PHP] Question about array limits practicallity
Robert Cummings wrote:
Also can I store those arrays as a blob in MySQL?
You could, but you'd be better off storing them in normalized tables
IMHO.
In this cans I will have to strongly agree with Rob, but I also have
Alan Fullmer mailto:[EMAIL PROTECTED]
on Friday, November 21, 2003 5:00 PM said:
do i have to htmlspecialchars every entry?
Yes you have to protect yourself from your users data each and every
time you receive user data, ever, always.
does this make any sense?
I think so.
Chris.
--
Alan Fullmer wrote:
Is php capable of recognizing things such as
in a text box, someone were to put ?php insert
php code here; ? and display say, variables?
No, not normally. If you just display the code, it'll show as plain PHP
code and not be run. However, if it makes its way into an include
Frank Tudor mailto:[EMAIL PROTECTED]
on Wednesday, November 19, 2003 11:26 AM said:
I know this is bad but this is the only listserver/newgroup
thingy I use because I am php challenged.
Actually you have (nearly) the entire internet at your beck and call.
Me: Frank, google. Google, Frank.
* Thus wrote John ([EMAIL PROTECTED]):
Hi all
This function I don't get at all, I hear all the time, if you want to
practice smart coding then turn register globals off, and be sure you keep
query data out of your script that is not set or defined with something
expected. So why would there
This function I don't get at all, I hear all the time, if you want to
practice smart coding then turn register globals off, and be sure you keep
query data out of your script that is not set or defined with something
expected. So why would there be a function that returns true or false, $var
is
On Fri, Nov 07, 2003 at 11:28:18AM -0800, Chris W. Parker wrote:
:
: Anyway... Here is my problem. I have a class called Validate that has a
: method called ValidateInput. There is another method in this class
: called phonenumber. ValidateInput calls phonenumber at some point like
: this
Eugene Lee mailto:[EMAIL PROTECTED]
on Friday, November 07, 2003 12:00 PM said:
Won't work. $this refers to the instance of an object.
Yeah I've decided to just instantiate an object. It's not really a big
deal I guess, I just thought it might be a little cleaner to not
instantiate. A
Hi ccj,
GET data is passed in the URL, POST data is not so loss of the
information would be expected. It sounds like you should use sessions,
it is a better way of passing data between pages.
Take a look at http://www.php.net/manual/en/ref.session.php
Jason
ccj wrote:
Hi all
Based on
Thanks, but it's not the point, I think.
Because from aaa.php -- error.php is redirected by Apache.
The error.php could not get the POST data via $HTTP_RAW_POST_DATA.
If aaa.php send POST data to a existing file , say ccc.php,
of course we can get $_POST, $HTTP_RAW_POST_DATA in ccc.php,
But if
Sorry, via ErrorDocument 404 /error.php in httpd.conf setting.
See http://www.php.net/mirroring.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey all,
Nevermind this. I just solved it myself.
I found out it does not matter when you decalre a variable as global (other
than I guess before you use it)
So I made my function this way.
function key_value ( $mysql ) {
if ( $sao_row = $mysql - fetchRow() ) {
do {
Hello,
This is a reply to an e-mail that you wrote on Sat, 19 Jul 2003 at
19:15, lines prefixed by '' were originally written by you.
Does file called by Include_once stay with the client's
session or
just for operations in the page where it is stated?
just for operations in the page where it
On Mon, 2003-06-09 at 14:38, Jim Lucas wrote:
Does anybody know any benifits to using current() and key()
See below:
I will show two examples of what I mean.
?php
echo PRE;
$arr1 = array(array(1 = 10),
array(2 = 12),
array(3 = 13),
array(4
- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 06, 2003 1:13 PM
Subject: [PHP] Question about fopen
I have a file named billed.crm.php and it fopen throws the error no
such file or directory. It seems to have something to do with
On Fri, 6 Jun 2003, Jay Blanchard wrote:
[snip]
I have a file named billed.crm.php and it fopen throws the error no
such file or directory. It seems to have something to do with the
multiple . in the file name. Does anyone know why?
It should make no difference. I hate to ask this
[snip]
I have a file named billed.crm.php and it fopen throws the error no
such file or directory. It seems to have something to do with the
multiple . in the file name. Does anyone know why?
It should make no difference. I hate to ask this but you're
absolutely 100% certain the path
You need to split() the variable ($mboxs) on newlines \n
Jim
- Original Message -
From: Jim Greene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 8:22 AM
Subject: [PHP] Question about a text file and foreach
Hi All,
I have a text file that has entries like the
Jim Greene wrote:
Hi All,
I have a text file that has entries like the following:
user1:mbox1:
user1:mbox2:
I basically do: $mboxs = `cat file | grep user1 | cut -d: -f2';
I then want to print out the data in the $mboxs variable (array)
I am trying to use foreach but it does not work..
Jim --
Please don't hijack threads. This message has nothing to do with calling
a function in a page via GET. When you wish to ask a fewsh and unrelated
question, please send a fresh and unrelated message. [I keep hearing
good things about Evolution. Doesn't it have decent threading?]
...and
just wondering... does smarty have to be installed on the server where the
web site or php scripts it makes are going to be ran... or do you
just make
the stuff and put on the server like normal php files...
No, the Smarty classes and plugins will have to be installed/accessible on
the target
k then that wont be able to be a choice for me then... will try maguma
studio then..
- Original Message -
From: Rich Gray [EMAIL PROTECTED]
To: Sunfire [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 5:58 AM
Subject: RE: [PHP] question about smarty
just wondering
Sunfire [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
k then that wont be able to be a choice for me then... will try maguma
studio then..
I think you have misunderstood the posting, since Smarty can be used in most
web hosting environments. Anyway if you would like to evaluate
PROTECTED]
Sent: Tuesday, March 04, 2003 9:35 AM
Subject: Re: [PHP] question about smarty
Sunfire [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
k then that wont be able to be a choice for me then... will try maguma
studio then..
I think you have misunderstood the posting, since
At 22:15 22.02.2003, Al said:
[snip]
I spent hours trying every User Notes in the PHP Manual for this simple
operation. e.g.,
$txt= preg_replace(\r\n, br, $words);
and this version
$txt = preg_replace(/(\015\012)|(\015)|(\012)/,br /, $txt);
I can
From: Al [EMAIL PROTECTED]
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 the OD/LF with brs.
I spent hours trying every User Notes in
--- Al [EMAIL PROTECTED] wrote:
Why does the absolute path work and not document_root?
include ($DOCUMENT_ROOT/root_functionsT.php);
//error message says function undefined
include (/www/r/myID/htdocs/root_functions.php);
// Works just fine
Try $_SERVER['DOCUMENT_ROOT'] and see if that
Thanks for the feedback
That works if I leave off the quotes from around DOCUMENT_ROOT. Simply
$_SERVER[DOCUMENT_ROOT]
I'd really like to get this working in the htaccess file.
php_value include_dir .:/www/r/myID/htdocs/
I redoing a site with several php files in assorted directories and
I figured it was along those lines... i know that perl also caught
me a few times becuase perl differentiates between == and eq
for numerical or string comparisions.
I'll probaly end up using the ===, becuase i've got a severe
aversion to using functions for comparisions. :-)
--
Scott Hurring
Hi
I have the same Problem with the bundeled libary.
I hade no time to fill in a bug report at bugs.php.net.
Probably you could?
regards
Sebastian
-Original Message-
From: Jean-François Marseaut [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 5:16 PM
To: [EMAIL
]
Sent: Monday, January 27, 2003 5:48 PM
Subject: RE: [PHP] question about GD and colors
Hi
I have the same Problem with the bundeled libary.
I hade no time to fill in a bug report at bugs.php.net.
Probably you could?
regards
Sebastian
-Original Message-
From: Jean-François Marseaut
Hi experienced the same problem with the new
bundled version of GD.
regards,
philipp
- Original Message -
From: Jean-François Marseaut [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 5:15 PM
Subject: [PHP] question about GD and colors
With this script under, I
try imagecreatetruecolor() instead of imagecreate()
- Original Message -
From: Philipp [EMAIL PROTECTED]
To: Jean-François Marseaut [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, January 27, 2003 4:21 PM
Subject: Re: [PHP] question about GD and colors
Hi experienced the same
On Mon, 27 Jan 2003, Wei Weng wrote:
Is there any environment/Global variable in PHP that indicates whether the
server port you connect to is SSL port?
$_SERVER['HTTPS']
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 12:19 PM
Subject: Re: [PHP] Question about SSL/php globals
On Mon, 27 Jan 2003, Wei Weng wrote:
Is there any environment/Global variable in PHP that indicates whether the
server port you connect to is SSL port?
$_SERVER['HTTPS
401 - 500 of 623 matches
Mail list logo