At 08:43 14.03.2003, Dennis Gearon said:
[snip]
I finally got something to do it, at least, in inline code.
I couldn't figure out how to remove NULLS, anybody know? A search on:
[snip]
I just found this thread,
Correction - $to should of course read $repl :-
--
O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John W. Holmes wrote:
Yeah, I could use a decent text editor, but not everyone who uses my
site
will use it. I need something that can edit them out after download.
Wouldn't it be smarter to eliminate them before it was saved on Windows?
You could read in the file and get rid of all of the \r
Niklas Lampén wrote:
You cannot output anything before headers.
Niklas
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 14. maaliskuuta 2003 8:03
To: [EMAIL PROTECTED]
Subject: [PHP] Can't relocate to a specified URL after submit.
The code looks like:
if(
The following is completely untested but might yield the results you want.
It assigns a value to the skill array, prints the post var, and then (I
hope) advances the array pointer to the next array element:
Good luck, hugh
if (count($_POST['skill'])0)
{
for
In further thought on this, I'm not sure that $_POST['skill'] is an array.
Hugh
- Original Message -
From: Stephen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 8:47 PM
Subject: [PHP] Checkboxes
Hi
I am trying to get results form checkboxes on a form. Each
I'm sorry if this question has been answered before, but I couldn't find
anything in the archives. I don't have access to php.ini and I was
wondering which method for changing settings is the fastest. Take, for
example, session.cache_expire. This can be set via ini_set(),
Hello,
You will also might want to try the free Krysalis platform - it's
designed from scratch for XML/XSL content publishing (a la Cocoon) and you
will find it very useful for your goals.
http://www.interakt.ro/products/Krysalis/
Alexnadru
--
Alexandru COSTIN
Have a look at the parameter register_global in your php.ini
By default in the recent version of PHP, this parameter is set by default to
off for security reason.
So if you want to use $id, you just have to set this parameter to on
Stephen [EMAIL PROTECTED] a écrit dans le message de news:
if the browser doesn't support Javascript use this :
if (YES) {
header(Location: thispage.php);
}
else {
header(Location: thatpage.php);
}
exit();
Just make sure you haven't send any output to the browser yet.
A suggestion: place this code before you ever print in your
code.
Hi Kelly,
It would be better if you just take off the second part,
the one enclosed in .
Also, header(Location: location);
notice, Location starts with capital L .
Hope this helps,
miches:)
-Original Message-
From: Kelly Protsko [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13,
do you have any idea about PHP DOM XML functions?
when will PHP DOM XML functions be stable?
Fatih stnda
Yre Elektronik Yaymclk A..
0 212 234 00 90
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
check out the book XML and PHP by Vikram Vaswani, News Riders; a well
written and concise treatment of xml and php.
David Eisenhart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Im looking for ideas for a 2 programming contests.
What I need is a very basic challenge - that new php programmers can
do, but involves them mixing there thinking/programming and creative
abilities.
I also need a challenge for professional programmers - something that
involves lots of
here's my solution:
I presume you need the name of the file the user last accessed.
This requires a datetime column in your useronline file which records the
time a user has accessed a page. If the name of this field is atime then
a) create a temporary table storing lact access time for each
Hi,
I'm building a site for my rugby club and I want to present players'
data ie: number of appearances, points scored and so on.
I have three tables in my database: a table of tournaments (date,
location, opposition, etc), a table of players (name, contact details,
position, etc) and a table of
Hiya
I am new to PHP and was wondering whether to develop small applications (20
pages ) is it worth it to use OOP? Can any recommend any books or URLS that
explain Object orientated programming and design in detail.
I have read articles in
www.phpbuilder.com and
www.phppatterns.com.
In
Suppose I'm running PHP 4.0.0 on Apache 1.3.12 on a remote server (linked as a
static module, OS is reported as AIX - kinda UNIX). My PHP script tries to
fopen('http://somewhere.else.com/') while responding to HTTP request itself. I've got
a Socket must be already connected error. Trying this
George,
Thanks for your idea, I do like it - the only problem is that sound
very much like the current beginners contest (phone book and diary) -
great minds think alike :) - it sound like you may be able to tweek
your code and enter it in the contest !!
I will be adding a repository for php
I have a string with underscore in the middle.. like This_That
which function do i use to replace the _ with space? eg to This That
the string is in a variable..
I know its really simple but just don't know which function to use.
any suggestion?
-awlad
There is many functions that can do it.
str_replace() is the fastest on thisone. preg_match() comes on second
position, and after that comes ereg_replace().
But if you need to do harder replacing, preg_match() is the one to use, imo.
Niklas
-Original Message-
From: Awlad Hussain
www.php.net/str-replace
Awlad Hussain wrote:
I have a string with underscore in the middle.. like This_That
which function do i use to replace the _ with space? eg to This That
the string is in a variable..
I know its really simple but just don't know which function to use.
any suggestion?
How didn't it work? How did you test it? I'd be more than willing to help
you test it, but everything is sort of vague right now.
---John Holmes...
- Original Message -
From: Dennis Gearon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 14, 2003 12:20 AM
Subject: Re: [PHP]
I did not make my request for information clear. The two scenarios which I
have to cover:
1. The user registers as a customer with the site. In this case the shopping
basket and items can be attached to the customer Id. and the shopping basket
made available across sessions. The shopping basket
there were some nice threads last week:
- formating the input of a name:
eg: stuart o'neil - Stuart O'Neil
RONALD MCDONALD - Ronald McDonald
serge d'avignon - Serge d'Avignon
von Braun - von Braun
... implementing that for all possible langugae struktures
If I have a date in this format :19-MAR-03 how do I get the next date (the
date plus 1)?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bobby Rahman [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am new to PHP and was wondering whether to develop small applications
(20
pages ) is it worth it to use OOP?
My take is that on 20 pages especially if they behave like app, it makes
sence to use OO.
In particular I am
If I have a date in this format :19-MAR-03 how do I get the next date
(the
date plus 1)?
echo strtoupper(date('d-M-y',strtotime($date +1 day)));
But why do you have it in that format to begin with?
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
the current function been put in place replaces [f1253f] with a file,
for
inside cms content , where 1253 is the key or the id of the filename
in
the
database , therefore to denote its an ftool they added f's around the
keys
,
so maybe i could get away with [1253], what else i'm asking if
Matt,
You are looking at least 2 separate select queries - one to retrieve the
player data on a tournament by tournament basis and a second query to
'calculate' the summary data. Now, you will be needing the GROUP BY clause
in the second query while drawing on at least the player and appearances
I try to connect to a site via fsockopen function and get data calling a
cgi on remote server using a script like this following.
The response is a large amount of data up to 500Kb. But every 5000
characters approximately I get arbitrary strings like numbers 1400 and
800 and others like 7be etc.
On Thu, Mar 13, 2003 at 05:56:40PM -0600, Tom Woody wrote:
On Fri, 14 Mar 2003 00:37:38 +0100
Michael Cronstrom [EMAIL PROTECTED] wrote:
I get the message:
Notice: Undefined variable: msg in
F:\www-root\domain.com\website\script.php on line 202
mate, this is not actually an error
Hi Chris,
Thanks for the pointer :) I found some other interesting reference and ideas
on using this in the manual. Now I just need to provide some error checking
in case $_GET['menu'] isn't defined in the URL (that should be pretty
straight fwd) and in case it is defined, but a corresponding
Hi all,
I have been tearing my hair out for weeks with this problem, hope someone
can help.
I want to pull all data out of a mysql table that falls between two dates (a
start-time and end-time).
I use PHP to allow the user to specify the time interval, creating 2
variables
'startTime' and
$timeFrom and $timeTo need to be surrounded by quotes within your SQL query
for the format you're using.
$query = select * from Job_TB where teamNo = $teamNo AND startTime =
'$timeFrom' AND endTime = '$timeTo';
---John Holmes...
- Original Message -
From: Brad Wright [EMAIL PROTECTED]
On Friday 14 March 2003 22:33, Brad Wright wrote:
I want to pull all data out of a mysql table that falls between two dates
(a start-time and end-time).
I use PHP to allow the user to specify the time interval, creating 2
variables
'startTime' and 'endTime'. These are formatted thus:
Can I have a single SQL string do INSERTS into multiple tables?
Like:
sql=INSERT INTO tbl_1 (id,
email_address_1)
VALUES ($v_personid,
'$v_email');
INSERT INTO tbl_2 (person_id,
interest_id)
VALUES ($v_personid,
$v_int1);;
Or do I need to break them up and use two
Try quoting your dates - you could also edit your code by using the
BETWEEN SQL keywors.
hope this helps
|-|
|- www.php-editors.com|
|- php programming contests |
|- php tool reviews |
|- php everything else|
Thanks people, thank you very very much. the missing quotes were the
problem. Can't beleive I kept missing that, everytime I re-read the code.
Sorted now, and I've still got some hair!!
You people are legends!!!
Cheers,
Brad
Nel vino la verità, nella birra la forza, nell'acqua i bacilli
Try quoting your dates - you could also edit your code by using the
BETWEEN SQL keywors.
Using the less than / greater than method is slightly faster and probably
more portable. I don't know how many databases implement BETWEEN.
---John Holmes...
--
PHP General Mailing List
Can I have a single SQL string do INSERTS into multiple tables?
No.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi All;
I am trying to add a new record web database using MysqlPHP.
But after at every add process a new blank record is added to mysql table.
The entered text is not considered with codes.
What is my trouble in this html or php code?
Could anyone has any idea?
Thanks.
No avail. Here are the last few lines of the script. I can hit it 17 times
in a row with no problems. Then I might hit it three times and get the CGI
Error. I think it may be IIS not PHP that is the root of this problem. We
have C++ app that had the same sort of problem on IIS until we moved
Aaah! That clears something up. Thanks.
Ernest E Vogelsinger [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
At 22:17 13.03.2003, rotsky said:
[snip]
I thought session vars were either POSTed or passed via cookies...
The problem you are describing is implemented in a quite amazing GPL
shop. You might want to have a look: www.oscommerce.org
Regards Martin
Peter Goggin wrote:
I did not make my request for information clear. The two scenarios which I
have to cover:
1. The user registers as a customer with the
Hi
I have a process for people to apply for awards online. The login is controlled using
sessions, with a basic session variable set with the username of the person logged in.
In PHP ini the session cookie lifetime is set to 0 - ie. until the browser session
finishes.
Manyof the applicants
Mahmut KARADEMIR wrote:
Hi All;
I am trying to add a new record web database using MysqlPHP.
But after at every add process a new blank record is added to mysql table.
The entered text is not considered with codes.
What is my trouble in this html or php code?
Could anyone has any idea?
Thanks.
Session files will be cleaned up after 24 minutes by default. So if they
take longer than that, and the garbage collection deletes their session
file, then they are no longer logged in. Increase the session.gc_maxlifetime
parameter in php.ini
---John Holmes...
- Original Message -
From:
This may be more of a javascript question than a php question. But how can I
set up an inactivity timeout that will logout a person after let's say 20
minutes of inactivity?
thanks,
Luis
I think it's always worth it to at least design using OO methodologies.
The coding moves much faster and is much easier to maintain, in my
experience. A couple of books I've read recently that I'd recommend:
The Object-Oriented Thought Process by Matt Weisfeld and Bill McCarty
Design Patterns
But how can I
set up an inactivity timeout that will logout a person after
let's say 20
minutes of inactivity?
You could put a meta refresh on the page, that redirects to an
inactivity page. Set the refresh time to the timeout value. Put some
logout code on the inactivity page.
Otherwise,
THANKS I got it!
-Original Message-
From: Chris Hayes [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 5:45 PM
To: Poon, Kelvin (Infomart); 'Chris Hayes'
Cc: '[EMAIL PROTECTED]'
Subject: RE: [PHP] Search/Regular Expression problem
At 22:15 13-3-2003, Poon, Kelvin (Infomart)
Hi,
I created a simple example of a problem that I have with a PHP script that
works in Netscape, and in Internet Explorer when cookies are disabled, but
not in Internet Explorer when cookies are enabled. The purpose of the script
is to create a .ram file on the fly, and playback part of a
I'm trying to use PDFreportsLite in Windows.
in the /src folder, there is a rep.php example.
But when i run the rep.php script, nothing apears, only the white page and
the window done status.
In the PDFReportsLite.php, i set:
$MM_PDFReportsLite_HOSTNAME = 127.0.0.1;
Hi all,
when does PHP gets support for a server-html-based form upload progress
meter?
Does anyone know?
thx.
Dominik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm pretty sure your problem is the single quotes around your variables.
Single quotes and double quotes have very different meanings. Single
quotes tell PHP not to look for anything inside the quotes, whereas PHP
will always parse double quotes to see if there is anything it needs to
process.
use sessions
- Original Message -
From: Luis Lebron [EMAIL PROTECTED]
To: Php-General (E-mail) [EMAIL PROTECTED]
Sent: Friday, March 14, 2003 10:03 AM
Subject: [PHP] OT Inactivity Timeout
This may be more of a javascript question than a php question. But how can
I
set up an inactivity
On Thu, 13 Mar 2003 16:28:38 -0600, Christina wrote about [PHP]
Generating Statics Pages what the universal translator turned into this:
What is the fastest way to generate multiple static pages?
What do you want them to contain ???
Without knowing that, it's nearly impossible to answer that
At 17:03 14.03.2003, Luis Lebron said:
[snip]
This may be more of a javascript question than a php question. But how can I
set up an inactivity timeout that will logout a person after let's say 20
minutes of inactivity?
On Thu, 13 Mar 2003 23:17:02 -0500, daniel wrote about RE: [PHP] trikky
string limit question what the universal translator turned into this:
never mind i worked it out
function create_caption($content,$max_length,$primaryID,$ID) {
if (strlen($content) $max_length) {
The string is in double quotes, ont single quotes. The single quotes
are simply characters in the double-quoted string. I believe the
register_globals explanation is correct.
Brent Baisley wrote:
I'm pretty sure your problem is the single quotes around your
variables. Single quotes and
I open a file, modify it, save it out to disk. The VERY next line, i
open it, and the size is zero. I look at the file and it is fine (not
zero).
I think there is a timing issue with php on file read/writes. I tried
sleep(1), but all that did was slow the script down (didn't help).
Any ideas?
At 11:12 14-3-2003, you wrote:
Im looking for ideas for a 2 programming contests.
What I need is a very basic challenge - that new php programmers can
do, but involves them mixing there thinking/programming and creative
abilities.
I also need a challenge for professional programmers - something
Here are the PHP related lines from my Appache2.0.43 httpd.conf file.
ScriptAlias /php4/ E:/PHP4/
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php4/php.exe
With this setup, all *.php and *.phtml files
are processed
At 18:53 14-3-2003, you wrote:
I open a file, modify it, save it out to disk. The VERY next line, i
open it, and the size is zero. I look at the file and it is fine (not
zero).
I think there is a timing issue with php on file read/writes. I tried
sleep(1), but all that did was slow the script
Help save my sanity! What can I do to the IF statement in the following code to
make it print the line that says By God they are equal in value.? I have tried
the following changes;
1. using === instead of ==
2. placing (float) in front of the $i and $target inside and before the
Comparing a float with an integer can have problems. You could try something
like:
if(abs($i - $target) .1) {
//then they are essentially equal
}
Kirk
-Original Message-
From: James E Hicks III [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 11:22 AM
To: [EMAIL
At 19:21 14.03.2003, James E Hicks III said:
[snip]
Help save my sanity! What can I do to the IF statement in the following
code to
make it print the line that says By God they are equal in value.? I have
tried
the following changes;
1. using ===
What happens if you change $target to 216.0?
-- jon
-Original Message-
From: James E Hicks III [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 1:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] IF statement madness
Help save my sanity! What can I do to the IF statement in the
-Original Message-
From: James E Hicks III [mailto:[EMAIL PROTECTED]
Sent: 14 March 2003 18:22
Help save my sanity! What can I do to the IF statement in the
following code to
make it print the line that says By God they are equal in
value.? I have tried
the following changes;
Thank you (all who resonded)!!! It makes sense now.
Now I can wait until 5:00pm, quitting time, to go crazy!!
James
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 1:23 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] IF statement madness
Sorry if this has been answered before but I can not find it anywhere:
Why does the PHP docs. state:
Do not use Apache 2.0 and PHP in a production environment neither on
Unix nor on Windows.
What is the reason for this Warning?
Thanks in advance.
Mike Aaron
--
PHP General Mailing List
Yes I did.
Here is the code, maybe I am just missing something (this is the part
where it writes and then opens again...
$h6 = fopen(/etc/group.backup,a);
for($i = 0; $i count($users); $i++)
{
for($k = 0; $k count($grouplines);$k++)
{
I'm having a bit of trouble...
I have an array that consists of a string like this:
string1\rstring2\rstring3\rstring4
I want to REMOVE STRING3, and keep the rest of the array intact - but cannot
figure on how to do it. I tried using functions such as preg_replace, strstr
and so forth...
In my
I'm running this script to make sure all fields are filled in on a form:
foreach($_POST as $p)
{
if(!$p)
{
header(Location: signup.php?error=3);
exit();
}
}
But I need to exclude one field on the form from being checked -
Street2. How could I do this?
--
PHP General Mailing List
Hello,
As far as I know from Christian Stocker (the domxml maintainer) - they are
already pretty stable. They are tagged as experimental to avoid people
complaints about API changes (API changes are necessary because DOMXML
should have a DOM api, and it was pretty not like this at the beggining).
At 20:26 14.03.2003, drparker said:
[snip]
I'm running this script to make sure all fields are filled in on a form:
foreach($_POST as $p)
{
if(!$p)
{
header(Location: signup.php?error=3);
exit();
}
}
But I need to exclude one field on the form from
That's generally not a good idea because depending on the type of control
empty input fields will not be available in the $_POST array (e.g.
unchecked checkboxes are _not_ sent by the browser).
You should rather have a list of input variables that need to be filled
and
compare $_POST against
Thank you in advance to any one who may be able to help.
I am looking for a way to have users be able to down load files from a
site via FTP and HTTP.
This sounds easy enough but here are the details.
There will be a application server that users will purchase software
form (Under development)
Hello,
I am developing an application that ouputs the results of a database query
to a PDF file using PHP. The only real problem I have encountered is in
trying to use the include and/or require keywords. I have a block of
code in another file that needs to called several times from my main
I'm gonna post this in some Microsoft list too, but I'm hopping someone here
might be able to help me out. I have a few situations where users will need
to print from my app. The browser they are using will be IE. What I'd like
to be able to do is through some type of scripting remove the
On Fri, 14 Mar 2003, Michael Aaron wrote:
Sorry if this has been answered before but I can not find it anywhere:
Why does the PHP docs. state:
Do not use Apache 2.0 and PHP in a production environment neither on
Unix nor on Windows.
What is the reason for this Warning?
The
Anthony --
Your question is pure browser. Good luck, especially considering the
browser you have to target :-)
You might be able to change the setting with some javascript. You might
also be able to define the print format with a style sheet (doubtful).
In either case, you need to get into IE
We are looking for a way to set several key/value pairs (which will differ
across users) such that they will persist during the user's session and
be logged in the weblogs for every request that user makes. Some
potential ways of doing this that occurred to us:
- implement functionality
Hello,
I have a ~5500 line monolithic Perl script that I distribute with my
commercial application for processing forms on any Web server that supports
CGI and Perl. Perl has been a wonderful platform because of its portability.
However, people are now suggesting that my program also support PHP,
At 22:31 14.03.2003, Maureen Roihl said:
[snip]
- find a way for PHP to automatically tack the parameters onto the ends
of url querystrings, the same way it can do with PHPSESSIONID (we haven't
found, in our initial research, a way to do this)
Our
You could use output buffering to do the rewriting for you.
IF you use ob_start('my_function'); at the top of your page, where
my_function is the name of a callback function
This function might look like this:
function my_function($buffer)
{
return $buffer . '?x=fooy=bar';
}
That's
At 22:26 14.03.2003, Richard Ward said:
[snip]
Also, from my reading, it sounds like some of the features I might need in
PHP are considered extensions. For example, my Perl script makes heavy use
of searching and replacing using regular expressions. I've
At 19:37 14.03.2003, Michael Aaron said:
[snip]
Sorry if this has been answered before but I can not find it anywhere:
Why does the PHP docs. state:
Do not use Apache 2.0 and PHP in a production environment neither on
Unix nor on Windows.
What is the
Did you play with
TEXTAREA WRAP=HARD/TEXTAREA
or
TEXTAREA WRAP=VIRTUAL/TEXTAREA
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Poon, Kelvin (Infomart) [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13,
I've had to convert times in a MySQL field to a normal date, but never in
reverse. How to I convert a date in this format, 03/14/2003, to MySQL format
so it can be posted to a date field?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Assuming that gAccessLevel = eather one of level-1, level-2, level-3 ...
if (!$gStart) { $gStart=0; }
$sql = SELECT * FROM gallerys WHERE gMode = '$mode' AND ;
if ($siteAccessLevel == level-1) {
// LEVEL-1 VIEWING ONLY.
$sql .= WHERE (gAccessLevel = 'level-1');
} else if
I'm trying to get a small PHP based log reader to run but get this error every time:
Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/weblog/weblog.php on line 58
Here is the PHP I'm using ... does anyone know what is happening here?
?php
/*
Simple syslog web viewer
by
try
mysql_connect(loghost:3306,$username,$password);
- Original Message -
From: Steve Shead [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 15, 2003 12:14 PM
Subject: [PHP] mysql_connect issue
I'm trying to get a small PHP based log reader to run but get this error
For the record, am I declaring these in the correct order?
Thanks,
John
?php
header(Content-type: text/notabene);
header(Content-Disposition: attachment; filename=.$dbtable..nb);
ob_start(ob_gzhandler);
set_time_limit(150);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi,
Saturday, March 15, 2003, 4:53:44 AM, you wrote:
RP Yes I did.
RP Here is the code, maybe I am just missing something (this is the part
RP where it writes and then opens again...
RP $h6 = fopen(/etc/group.backup,a);
RP for($i = 0; $i count($users); $i++)
RP {
RP
Hi,
Saturday, March 15, 2003, 7:31:52 AM, you wrote:
MR We are looking for a way to set several key/value pairs (which will differ
MR across users) such that they will persist during the user's session and
MR be logged in the weblogs for every request that user makes. Some
MR potential
This may seem weird:
How do I str_replace an include function?
I want to replace this line: include($header);
with nothing ..
something like this:
$footer = str_replace( '. include($header); .' , , $footer);
I get errors, any ideas?
cheers,
- Sebastian
$footer = str_replace('include($header);', '', $footer);
The way you have it now, you're telling PHP to first include the file
named by the variable $header, then do an str_replace on the result; but
the parser is going to fail on that first semi-colon, and that's not
what you want to do
After upgrading to RedHat 8.0 and effectively breaking some python
caller-id script that I have no clue how to fix.. I'm curious of whether
or not PHP would be able to get caller-id data from a modem.. I imagine
it could, and probably won't be too difficult to overcome... but I am
posing that
1 - 100 of 106 matches
Mail list logo