I need to write a script which extracts information POSTed by a
non-browser client, and stores it on the server. With a browser client
I could upload from with input type=file form elements and use the
PHP upload functions, but using a browser at the client end is not an
option here.
According
Hello, I can't understand the reason apache server running locally on my
Win98 machine delays so much to respond browser when accesing php
scripts in the form
http://localhost/myscript.php
When I transfer php scripts to host server via FTP, script execution is
immediate, even remote
Bertrand,
if you're serious about trying to get help for something, it would be very
helpful if you ask a more specific question, with code samples of what
you've done so far.
There are excellent tutorials on this subject, at http://www.phpbuilder.com,
http://www.phpbeginner.com,
Your httpd.conf configuration should look something like this:
AddType application/x-httpd-php .php .phtml .php3 .php4
AddType application/x-httpd-php-source .phps
-Original Message-
From: j2n tech [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 8:42 PM
To: [EMAIL PROTECTED]
Hi, I have a problem,
that when I get a parse error it always says that it's on line 1 in
this or that file.
Where is the configuration option to set this right?
I have on another server seen that it's possible to get it to state
the actual error line.
(it's PHP Version 3.0.15 on solaris)
Is anybody knows how can I redirect to another page
and the REFERER to another page to be my page ?
Thanks,
Rosen Marinov
Rosen [EMAIL PROTECTED] wrote in message
9c912a$had$[EMAIL PROTECTED]">news:9c912a$had$[EMAIL PROTECTED]...
Hi,
I have BIG problem using HTTP_REFERER.
I have two pages:
From: Maxim Maletsky [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 5:00 AM
I think PEAR has it.
have you tried to look at it?
Found it, thanks!
It contains HCE_MD5, but AFAICT it does not utilize the other encryption
modes found in mcrypt. But it doesn't matter - I think this is fine for
ok, I'll try with socket.
Thanks
no, sockets are not a bad solution at all. They are just as fast.
And plus fsockopen has more functionality such as timing out, result
messages, mess_num etc... what fopen doesn't have.
I think fsockopen is better for this job.
Sincerely,
Maxim
Jack
[EMAIL PROTECTED]
There is nothing more rewarding than reaching the goal you set for yourself
- Original Message -
From: Jacky
To: [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 2:59 PM
Subject: how do I calculate this?
Hi all
I have a variable that store number of days, I want
On Fri, Apr 27, 2001 at 08:49:46AM +0200, Jimmy Lantz wrote:
Hi, I have a problem,
that when I get a parse error it always says that it's on line 1 in
this or that file.
Where is the configuration option to set this right?
When I had this problem it turned out that the files in question had
Hi,
I want to know how to execute a php scripts which update a MySQL
database.
I am working on Win 98 and MySQL is install on Linux on another
computer.
Thank You in Advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Use ob_start() at the top of script. (Before calling session_start()) It will do
what you want.
You may want to flush output buffer. Refer to output buffering functions for
details.
Regards,
--
Yasuo Ohgaki
[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
Hi
I just rewrote a website to use sessions all over the site. on one page
i used
output-compression just to test it. if i use MSIE everything just works
fine, BUT:
if i use Netscape WITHOUT cookies the PHP does not rewrite the relative
urls
here is the code of the page :
session_start();
You can try to had HostnameLookups off in your httpd.conf if it is not
already present.
More info at http://www.apache.org/DELETE_ME/mod/core.html#hostnamelookups
---
Hello, I can't understand the reason apache server running locally on my
Win98 machine delays so much to respond
there is no pure fopen function available to connect to other site. because
basically fopen use to open file (file open). fopen in php just try to
facilite programmer with human friendly name, but inside, when the argument
is url, it'll make standard socket connection like any other tcp/ip
I write a script for dealing with a form and the algorithem will look like
this
if (isset($somthing)) {
the form is here and user input it
}
if($filter_in_the_form == 'something) {
print the 1st
}
elseif($all_condition_done == 'OK') {
print the 2nd
} else { print
Any body know how to un-subscribe temporarily. As I am going out station
for 2 weeks. I want to stop all my PHP user group mails. (other wise there
will be big junk) But later again I want to restart.
If I un-subscribe now whether I will be able to subscribe again ?
manisha
--
PHP General
$days = whatever;
if ($days % 7 == 0) {
...then $days is divisible by seven;
} else {
...if is not;
}
the % is the modulus operator. basically divides left hand side by right
hand side and returns the remainder.
HTH
On Fri, 27 Apr 2001, Jacky wrote:
- Original Message -
From:
My interpretation of the problem is:
You want a link on page A.php which points to B.php,
B.php does some stuff, then redirects the user to page C.php
You want the value of HTTP_REFERER on page C.php to be A.php
Correct? If so, read on, if not, then delete this email.
I'm using php-4.0.4pl1,
php-general Digest 27 Apr 2001 10:34:07 - Issue 652
Topics (messages 50523 through 50590):
Sizeof a multi-dimensional array??
50523 by: Chris Anderson
50556 by: Maxim Maletsky
Re: Ultradev PHP Server Model
50524 by: John Platte
50532 by: Andrew Hill
On Thursday 26 April 2001 13:33, Rosen wrote:
main.php:
A HREF=test.php target= _blankClick here/A
You need a good deal of beating if you do your markup like that. there are
something called a standard and that standard would make that line look like
this:
a href=test.php
but
Hi!
can u please chek this url http://www.tekora.com/tekora.html
its a flash demo of an online site builder?
do u think we can create a site for someone that way online using ph (fast
template) ?
thanks
_
Get Your Private,
Are you referring to delay in executing PHP scripts? If you run PHP
as a CGI binary, that would give significant slowdown. CGI's are
much slower in Windows than in Linux.
Or perhaps you are running out of RAM? That really slows the whole
thing down.
Steve
At 4/27/2001 06:14 AM, Mig wrote:
Are you looking at the site the calling script is on? I had the same problem
spidering my site to build a search engine. Using http://localhost/;
instead of the site address got it working.
I find that file() works fine on external pages but falls over (in exactly
the same way as yours) when
hi all,
i'm using PHP on a Win98 machine, and after switching session.auto_start=1,
PHP is enhancing every address with SessionID's; well, normally I'm
satisfied with this behaviour, but for a single page containing some
javascript I would like to have it turned it off. I red there is a
Hello everyone:
I was wondering, does anyone of you know a method to declare a function
(give it a name) basing on a value acquired during run time?
I tried using the syntax as of a variable function call:
snip
$fname = 'hello';
function { sprintf(%s, $fname) }($arg='') {
you need to count all the elements in each of the elements. $x is a simple
array each member of which is an array
?php
function ArraySize($Array)
{ $count = 0;
foreach($Array as $Element)
{ if (is_array($Element))
{ $count += ArraySize($Element);
got a typo in my previous post:
I was trying this:
$fname = 'hello';
function { sprintf(%s, $fname) }($fname='') {
Return I named you : $fname;
}
echo $fname($fname);
But that doesn't matter...
Thanks,
waiting for your help.
Maxim Maletsky
Founder, Chief Developer
Thanks very much !!!
Rosen Marinov
Simon Ould [EMAIL PROTECTED] wrote in message
511B289BD436D41199AE0001021A9B5E05C5AB@SERVER">news:511B289BD436D41199AE0001021A9B5E05C5AB@SERVER...
My interpretation of the problem is:
You want a link on page A.php which points to B.php,
B.php does some
I guess that this is worth a mention: (Copied from
http://www.php.net/manual/en/function.header.php)
Remember that the header() function must be called before any actual output
is sent, either by normal HTML tags blank lines in a file, or from PHP. It
is a very common error to read code with
I have the following code that doesn't seem to explode. I'm trying to make
a field that looks like 21,23,25,27 or small,medium,large,x-large into a
pulldown menu with the individual item broken out.
if (($size != ) ($size != n/a)) {
$sizearry = explode(,, $size);
while (list($key,$value)
If you are compiling php as an apache module,
you may configure apache with the options:
--server-uid=asduk
and
--server-gid=asdukgrp
(or what you want..)
if you don't compile them at all, may try to
set the directory's group as asdukgrp like this:
chgrp asdukgrp -R
Try http://members.evolt.org/
HTH
Jon
-Original Message-
From: Manesh [mailto:[EMAIL PROTECTED]]
Sent: 27 April 2001 13:35
To: Manesh; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] RE: What is this??
I need a free web server that gives me 1 Myslq accound and php hoasting! if
Hiya,
I have the following code that doesn't seem to explode. I'm trying to make
a field that looks like 21,23,25,27 or small,medium,large,x-large into a
pulldown menu with the individual item broken out.
if (($size != ) ($size != n/a)) {
$sizearry = explode(,, $size);
while
Why not use classes? If I understand you problem correctly, I think classes
should solve your problem. Right?
SED
-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: 27. apríl 2001 11:58
To: 'PHP General List. (E-mail)'
Subject: [PHP] Variable (naming them)
According to the w3c docs, POSTed content is sent in the request
entity body. Since the request has a header, it's logical that it can
have a body too :-) but I don't see any PHP functionality for getting at
it. Someone in another group suggested accessing a variable called
Hey everyone...
I've been programming in perl for about 3 years now, i have installed php
and have been working on it for about three weeks. I started by converting
some of the programs I've written in Perl to PHP it seems its pretty
similar to Perl and not very hard to learn for a perl
I would like to add a note to this, that this works in general, but
the thing which actually triggers the setting of $HTTP_POST_RAW_DATA
is a not recognized mime-type.
Bolke
-Oorspronkelijk bericht-
Van: nik [mailto:[EMAIL PROTECTED]]
Verzonden: Friday, April 27, 2001 3:04 PM
Aan:
Hi,
I've a w2k installation with Apache and it's a very fast and reliable
environment. Ok, still prefer Linux but... My machine is a celeron433
(just pushed to 507) and 128M ram, w2kpro eng. Hope this help you,
bye
Steve Maroney wrote:
I think the question should be what's wrong with
Professional PHP by WROX. Great book. It provides you with some real world
examples.
Chad Angerer
HTML Programmer
Internet Broadcasting Systems
651.365.4006
-Original Message-
From: Hamed Nik [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 8:10 AM
To: [EMAIL PROTECTED]
If I run this form using IE, hitting the Return/Enter key submits the form
but the 'ok' variable is not set; it just redraws the form. If however, I
uncomment the third echo line (the one for Name2), then hitting the
Return/Enter key does have the desired effect in IE. In NS, the first
Hi,
i suggest three:
o) Beginning PHP4 by Chris Lea et. al. Editors ISBN and so on at:
www.amazon.com/exec/obidos/search-handle-form/107-8101819-4534115
o) PHP poket reference by Rasmus Leedorf, O'Reilly. OK 4 a brief fuction
reference and fundamentals (it's the best choice when you learn
Hi,
I have a site, http://rayh.co.uk which is basically my personal home page
and nothing more than a hobby.
However, on the site, i am currently storing images in the database, purely
because i can. But i wonder, how much will the server load be affected when
pulling binary data out of the
I was wondering, is anyone aware of a PHP server model, for Ultradev?
Or, any leads on how I can create one?
I'm developing a site with PHP+MS Access+Ultradev. I wanted to use some
of the Ultradev server model features (and convenience), but
they only support ASP/JSP/JScript.
I'm
Hi,
anyone know a simple way to realize multiple-upload at once (something
like Msoft CTRL-multiple selection when browsing and uniqe Upload
button). I've found only a multiple file input field in a form but the
numbers of file I'had to upload is unknow.
TIA
--
(p)Ivan
Student
DIST Bio-Lab
Its my understanding that PHP appends the SID on the end of the URL
regardless of weather its a form or not. If thats not happening for you,
check your php.ini and make sure you have session.use_trans_sid enabled.
Boget, Chris wrote:
If you have PHP compiled with --enable-trans-sid,
Hi,
www.mysql.com, and check the website for a myaccess or myodbc doc's. I
know (I dwnloaded it) that exist a myaccess plugin to save access dB to
mysql structure files.
From php side you have a lot of classical dbfunction to access MSAccess
dB, simply using odbc_function and creating a ODBC
Its my understanding that PHP appends the SID on the
end of the URL regardless of weather its a form or not. If thats
not happening for you, check your php.ini and make sure you
have session.use_trans_sid enabled.
It is enabled. And it's being appended to most URLs (though, not
I have been trying to get this to work for days and I'm confused. I want to
attach a Word document to an email. I found this code on php.net and I'm
trying to modify it to work. I get the email sent, the attached Word
document is filled with junk and not the document I'm trying to send.
Here is
try
error_reporting(E_ERROR);
on top of script. PHP 4 don't like variable (such i.e. variable checked
in if() ) before u declare or set them (i.e. in one-page only form
management.
by.
(note: u must be sure that the variable is used correctly! this only
kill the annoyng warning)
Manesh
I would like to add a note to this, that this works in general, but
the thing which actually triggers the setting of $HTTP_POST_RAW_DATA
is a not recognized mime-type.
Aha! Blinding light of understanding - THANKYOU!
nik
--
PHP General Mailing List (http://www.php.net/)
To
Hi,
A small correction, remote ODBC DSNs work fine with Access.
It's simply a question of installing appropriate drivers.
Best regards,
Andrew
--
Andrew Hill - OpenLink Software
Director Technology Evangelism
Universal Data Access Integration
php4ud became PhAkt (http://www.interakt.ro/phakt)
Ovidiu
-Original Message-
From: Matt Williams [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 3:59 PM
To: John Platte; John Monfort
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Ultradev PHP Server Model
I was wondering,
10X a lot !!!
Bye.
Andrew Hill wrote:
Hi,
A small correction, remote ODBC DSNs work fine with Access.
It's simply a question of installing appropriate drivers.
Best regards,
Andrew
--
Andrew Hill - OpenLink Software
Director Technology
As long as you're using the GET variables simply to pass along values (not
allowing the user to change the GET variables), you can stick the values
in the action property of your POST form and get the same result.
So the below code would become:
form action=bla.php?bar=yehaa method=post
You can only do one file in each box - get a yahoo mail account and see how
they
handle file uploading.
Ivan Porro wrote:
Hi,
anyone know a simple way to realize multiple-upload at once (something
like Msoft CTRL-multiple selection when browsing and uniqe Upload
button). I've found only a
Yes, it has that in there right out of the box like this:
IfDefine HAVE_PHP4
LoadModule php4_modulemodules/libphp4.so
/IfDefine
#
# AddType: allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# The following is for PHP4 (conficts
how to use Semaphore... through PHP...
please help me.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
The cause of this error is complier cannot find kernel related headers.
Download kernel source (2.2 not 2.4), and untar under /usr/src/linux.
(or get/install kernel source/header RPM for 6.2)
Regards,
--
Yasuo Ohgaki
Curtis Maurand [EMAIL PROTECTED] wrote in message
[EMAIL
I use BBEdit on the Mac, uploading PHP code to a Unix server, and I get
parse errors on line 1 unless I remember to set line breaks to Unix \n
(rather than Mac and Windows line endings, which use different
characters). You may be running into a similar problem.
Jimmy Lantz wrote:
Hi, I have a
Hi,
maybe now someone can help me.
While i get a network error message from netscape i get no message from
ie. It´s like i make a reload on my page and not that i am sending a lot of
data over with my form.
While testing with ie i figured out that the problem, why ie displays
nothing is, because
no classes CAN'T solve my problem:
it is an abstraction layer. called as func_hello(); I want, inside
func_hello() {} declare a new function based on what happened before
func_hello() was called. In other words: I of course though about classes,
and there is in fact a work around, but I need to
I used 'Professional PHP Programming' by WROX Press first, but to learn more
about what PHP can do and the best way to do it, I recommend 'Web
Application Development with PHP4', you can get both from Amazon.
Randal.
Hamed Nik wrote in message 9cbr3a$mkc$[EMAIL PROTECTED]...
Hey everyone...
Yes, thank you you're right this is exactly what it was, I used
Dreamweaver on a mac to edit the files, but now if I encounter parse
error I convert them with BBEdit.
Thank you.
Jimmy Lantz
I use BBEdit on the Mac, uploading PHP code to a Unix server, and I get
parse errors on line 1 unless I
Here is what I see in my FORM with --enable-trans-sid:
FORM METHOD=POST ACTION=./test_formRun.php
INPUT TYPE=HIDDEN NAME=PHPSESSID
VALUE=cbf75d263416e77d773b1772f6e1be89
INPUT TYPE=IMAGE NAME=image
SRC=submit.gif?PHPSESSID=cbf75d263416e77d773b1772f6e1be89 ALIGN=top
PHP is adding the HIDDEN
Here is what I see in my FORM with --enable-trans-sid:
FORM METHOD=POST ACTION=./test_formRun.php
INPUT TYPE=HIDDEN NAME=PHPSESSID
VALUE=cbf75d263416e77d773b1772f6e1be89
PHP is adding the HIDDEN field with the session id. For some
reason, it also appends it to the SRC attribute of the
You can check for PHP / MySQL books at :
PHP:
http://www.weberdev.com/index.php3?GoTo=ShowShoppingItems.php3%3FMasterCateg
ory%3D156%26SubCategory%3D106%26SubCategoryName%3DPHP%26MainCategoryName%3DB
ooks
MySQL:
==
have you checked your PHP.INI file?
it sais there what links to rewrite.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent:
i've got a mysql table with about 150.000 record.
i'm getting data out of this table to generate statistic overviews
it seems that this is a problem, cause it takes a long time to generate
these overviews
q: how can i speed up this table cause 150.000 records is not that
much i suppose?
i've got a mysql table with about 150.000 record.
i'm getting data out of this table to generate statistic overviews
it seems that this is a problem, cause it takes a long time
to generate these overviews
q: how can i speed up this table cause 150.000 records
is not that much i
Thanks, Maxim, I hadn't seen the url_rewriter.tags entry in php.ini before.
A search of the PHP manual only returns one unhelpful reference, tho. Any
idea where to find some documentation on this?
TIA
Kirk
-Original Message-
From: PHPBeginner.com [mailto:[EMAIL PROTECTED]]
have
have you checked your PHP.INI file?
it sais there what links to rewrite.
This is what is in my .ini.
url_rewriter.tags = a=href,area=href,frame=src,input=src,form=fakeentry ;
added 3/2/01
Am I missing something here that I should have?
I don't see anything in the docs about the above
PHP Developers Cookbook, by Sterling Hughes
I like it: as the name might suggest, it is packed with real-World examples.
I also bought Beginning PHP Programming (Wrox press). Mistake. Big
mistake. It is aimed at people who are *completely* new to programming. The
review that I read of it didn't
Hi,
I've written PHP routines to work on MySQL and so far so good. However,
I have one question.
I have a select routine that has the following syntax (which works fine
thus far):
$queryID = mysql_query(SELECT Country, Agent FROM Ports
WHERE Portname =
Did you see create_function()? Not sure if this is what you are after, but
http://www.php.net/manual/en/function.create-function.php
Kirk
-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Subject: [PHP] Variable (naming them) Functions.
Hello everyone:
I was
create_function seems not letting you choosing it's name.
am I right, or there's a way to say: create_function($name.$to.be, args,
args, args)?
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
It lets you choose the variable name which you use when referencing the
function, but the actual function name is set by PHP (as lambda_1, lambda_2,
etc.)
?
$test=myFunction;
$$test = create_function('$a,$b','return log($a * $b);');
echo myFunction is .$myFunction(2,2).br;
?
Kirk
First off I would like to Thank You for taking time to read this
letter. Second of all your e-mail address was pulled from an on-line
source, if this was unsolicited from an unclean source we're very sorry,
but you will not receive any other e-mails from us. This is the only last
Hello everyone!
I am trying to pass a variable in a url and can't seem to do it. The problem is, the
url is already being determined by a php if statement. So, when I get to the part
where I try to append the url I get parse errors. What I would ideally like to do is
generate the url using
Hi folks,
I try to store phpcode in a mysql-database, to have them ready, when
they´ll be needed
When I request these, it seems that they will not be parsed.
Any suggestion?
some code:
// the result comes from an object function
while ($obj - Fetchinto($row)) // as long as there are results
{
Hello everyone!
I am trying to pass a variable in a url and can't seem to do it. The
problem is, the url is already being determined by a php if statement.
So, when I get to the part where I try to append the url I get parse errors.
What I would ideally like to do is generate the url using
I try to store phpcode in a mysql-database, to have them ready, when
they´ll be needed
When I request these, it seems that they will not be parsed.
Any suggestion?
Eval() it.
http://www.php.net/manual/en/function.eval.php
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne
search for a such class on the web.
tip: don't select everything, LIMIT your search with LIMIT 100, 20 to select
the records from 100 to 120.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original
On Friday 27 April 2001 17:08, PHPBeginner.com wrote:
no classes CAN'T solve my problem:
it is an abstraction layer. called as func_hello(); I want, inside
func_hello() {} declare a new function based on what happened before
func_hello() was called. In other words: I of course though about
On Friday 27 April 2001 14:15, Tom Beidler wrote:
I have the following code that doesn't seem to explode. I'm trying to
make a field that looks like 21,23,25,27 or small,medium,large,x-large
into a pulldown menu with the individual item broken out.
if (($size != ) ($size != n/a)) {
YOU ARE GENIUS!
I don't think Jason you have read my previous posts here, but your answer to
Oliver might be able to solve my problem.
still have some BIG doubts on it, but it gave me an idea of a try.
Thanks,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
What is the best seamless way to upgrade/update PHP?
Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Thanks for everyone's help on the original question. Now that I have
gotten the line breaks in a file, How do I get the file out with the
breaks? Also, does anyone know of a good tutorial on file formatting.
?php
$location = log_test.txt;
$toread = fopen($location, r);
Hello,
please correct me if I'm wrong, but it seems that in PHP 4, after calling
session_start(), you are stuck with serving an HTML page.
What if you want to call session_start(), but you want to send headers
after the session has started? for example, I'd like to deliver a
downloadable file,
On Friday 27 April 2001 15:15, Johan Holst Nielsen wrote:
Hey everyone...
I've been programming in perl for about 3 years now, i have installed
php and have been working on it for about three weeks. I started by
Try Core PHP Programmning, it's have a lot of good stuff!
That book is
On Friday 27 April 2001 17:56, Don Pro wrote:
$queryID = mysql_query(SELECT Country, Agent FROM Ports
WHERE Portname = '$portname');
My question is, if the variable $portname has the ' character within
in, will this cause an error in my select
Guys,
I think LORD just looked down here in Tokyo, seen me still typing at 3.15am
of Friday night, smoking the third pack of that nasty Marlboros, having no
dinner, with no even a cup coffee remained... and sent to the list that
GENIUS of Jason Murray who solved my problem.
I know, Jason, you
just do
$content_str = implode(\n, $content);
at the end of the file.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Gary [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April
Take a look at /var/log/httpd/error_log. Is there an entry for the very
first time the server was run (before you installed PHP 4.04pl)? Does
it list PHP/4.0 as installed? The initial entry in my error_log from
the Wolverine beta of 7.1 shows:
[Fri Apr 27 12:36:13 2001] [notice] Apache/1.3.14
Variable functions?
?php
foo () {
echo 'this is foo';
}
bar () {
echo 'this is bar';
}
$var = $HTTP_GET_VARS['fname'];
$$var();
?
http://localhost/some_script.php?fname=foo
prints this is foo;
http://localhost/some_script.php?fname=bar
print this is bar
Regards,
--
Yasuo Ohgaki
I agree 100% with Professional PHP Programming. It was my first book.
Also php fast and easy web development by Julie Meloni.
- Kath
- Original Message -
From: Angerer, Chad [EMAIL PROTECTED]
To: 'Hamed Nik' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 9:21 AM
I run a Debian 2.2 server with Apache (from stable) and PHP4 (from stable).
I downloaded phpChat in order to setup a chat center on the website. However, the
files are named .php3.
At first I thought I could be cute and just rename the files to .php, as .php is what
we name our files on
Have a look at file() :
http://www.php.net/manual/en/function.file.php
$lines = file('log_test.txt');
echo $lines[4]; // prints line #5
regards,
philip
On Fri, 27 Apr 2001, Gary wrote:
Thanks for everyone's help on the original question. Now that I have
gotten the line breaks in
for point of reference regarding this thread :
http://www.php.net/manual/en/functions.variable-functions.php
regards,
philip
On Sat, 28 Apr 2001, Yasuo Ohgaki wrote:
Variable functions?
?php
foo () {
echo 'this is foo';
}
bar () {
echo 'this is bar';
}
$var =
no, I knew that,
my problem was generating functions with dynamic names.
I solved it with a simple eval(), see my last post below;
Thanks, Yasuo,
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
1 - 100 of 158 matches
Mail list logo