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,
>
> M
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 wan
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
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]...
> Hell
I need to run the if-construct below (containing a number of variables in
each "branch") using the 2 variables $table1 and $table2 in each run for
each combination
Is it array_walk or foreach ? (I "guess" that here I need a 2-dim-array, or
so, passing always these 2 variables with each run:
This
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();
fu
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 b
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
connet
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 nothin
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 = ;
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: Jacky
>
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, a
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:
> Click here
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:
http://www.moijk.net/ | amusing? 3. Does it know its p
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, Fr
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:
>Hell
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 ac
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 compilin
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:
$fname = 'hello';
function { sprintf("%s", $fname) }($arg='') {
Retu
you need to count all the elements in each of the elements. $x is a simple
array each member of which is an array
this should work for any array, although for some reason it falls over if
the array passed in hasn't been predfined as an array.
i.e.
... works
but ...
... doesn't. I haven't wor
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
PH
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 so
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 incl
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
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 path-to-your-php-scripts-dir
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
so
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);
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) Functions
>
> 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
> $HTTP_R
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 progr
> 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
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: [EMAI
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
> Wi
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]
Subject
> 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
some
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 dat
> > 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/J
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
Vi
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-s
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 Da
> 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 t
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 wrote:
> 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 unsubsc
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
http://www.openl
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
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 Technolog
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:
Hope this helps.
(Hello in Goshen...I gre
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 on
Yes, it has that in there right out of the box like this:
LoadModule php4_modulemodules/libphp4.so
#
# 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 with PHP/FI, below):
Add
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 PROTECTED]">news:
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, becaus
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 k
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:
PHP is adding the HIDDEN field with the session id. For some reason, it also
appends it to the SRC attribute of the image submit button, but doesn't add
it in the ACTION url.
Kirk
> -Original Message-
> Its my understandin
> Here is what I see in my FORM with --enable-trans-sid:
>
> 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 image submit
> button, but doesn't add it in the ACTION url.
I'm not g
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:
==
http://www.weberdev.com/index.php3?GoTo=ShowShoppingItems.php3%3FMasterC
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: Saturda
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
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
well, in your situation I would go into php-general archives right away.
I think (not that I remember, but...) that this was a topic here before.
try to search there.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.c
> 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
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
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
-Origina
Hi,
After a querry on a dBase I get to much result to insert them in one
page, so I have to count them in blocks of, let say 20 records; I used
the count() function to get the number of records in result, but I don't
figure what to do after...
Regards and thanks for your help
Marc
--
PHP Gene
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.)
";
?>
Kirk
> -Original Message-
> From: PHPBeginner.com [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 27, 2001 10:27 AM
> To: Jo
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
me
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 usin
> 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, Melbour
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 Mess
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 abo
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)
[EMA
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.
TIA
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
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 b
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 s
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 di
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.1
Variable functions?
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
"Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message
DC017B079D81D411998C009027B7112A015ED16A@EXC-TYO-01">news:DC01
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
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 our
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?
>
> foo () {
> echo 'this is foo';
> }
>
> bar () {
> echo 'this is bar';
> }
>
> $var = $HTT
do something similar to :
AddType application/x-httpd-php .php .php3 .html .phtml .parsemephp
regards,
philip
On Fri, 27 Apr 2001, Kath wrote:
> 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 w
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
-Origina
also note that if magic_quotes_gpc setting (in php.ini) is on, these
quotes will automagically be escaped. phpinfo() will tell you your
setting, as will get_magic_quotes_gpc().
http://www.php.net/manual/en/configuration.php#ini.magic-quotes-gpc
run around the manual for more information.
re
Thank you! I wasn't doing the "application/x-httpd-php" part right!
Thanks!
- Kath
- Original Message -
From: "Philip Olson" <[EMAIL PROTECTED]>
To: "Kath" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2001 2:37 PM
Subject: Re: [PHP] PHP4, .php3 files and Apach
1 - 100 of 159 matches
Mail list logo