the manual says:the function A will be called.
in fact, the function B is called.
why?
my config : win98/pws2/php411(CGI)
\n";
}
function B()
{
echo "I am a regular function named B in class A.\n";
echo "I am not a constructor in A.\n";
}
}
class B extends A
{
Change "terrible" to "readable" and I agree completely!
A carriage return and tab is the same size as two space-bar spaces, but is MUCH easier
to read.
It's when you're going through someone ELSE's code that you start to appreciate things
being all clearly spaced out with all nested things in
Try by doing something like:
$line = explode("\n", $text);
for($l=0; $l -Original Message-
> From: Craig Westerman [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 21, 2002 2:05 AM
> To: php-general-list
> Subject: [PHP] grab a number
>
> I get the following report from Analog.
>
>
>To prove that it works. My infamous spinning logo example that everyone
>has seen 10 times...
>
>http://conf.php.net/pres/slides/intro/flash_ming.php
>
>The phpinfo() with the configure flags are here:
>
>http://conf.php.net/info.php
>
>libswf is compiled in directly and ming.so is built externa
Sorry double posting..
Yes.. that's right Michael..
Both styles are correct and are parsed exactly the same..
They obviously both are part of the specifications of the PHP interpretor and
structure OTHERWISE they wouldn't work would they? :P
And yes, it's to do with what is more comfor
Hmm sorry all
yes it seems I misread some crucial parts myself..
That whole
if(exp) {
statement
that's a load..
if you want a one-liner conditional statement do:
if(exp) statement;
and that's it.
yes also michael you are right..
I use the:
if(exp) {
blah blah
} else {
blah blah
I don't know who you are Frank..
But I understand and support you entirely..
I could write my own 1500 word post like you..
But you've covered it all
I always see the { } pair used when there is only one statement, and also
this weird
if(expression)
{
statement
}
else
{
st
Mark Charette wrote:
> Hehehe. And I thought the OTBSW (One True Brace Style Wars) had passed into
> memory back some 10 or 15 years ago! Lo! They resurface yet again! 30 years
> in this business and still I hear them argue.
>
> Perhaps a cb style program for PHP so people can write any blasted s
Frank wrote:
>
For starters, just because GNU says something is what should be done
doesn't mean it's the right way. They don't believe software should be
licensed in particular ways, and I happen to believe it's up to the
developer(s) of a package to decide that.
Second, *HOW MANY* PHP stat
"Jule Slootbeek" wrote:
> Hey guys,
> i have this script that changes pages in a table with the include()
command,
> but i ran into trouble when i tried to change the pages by linking to
> index.php?left=theband because it would feed it to the index.php, but
> index.php would just change left back
The browser's back button is NOT reliable, and JavaScript's 'back' is the
same thing...
If you are carrying values forward to the next page with a hidden field, my
recommendation would be to store each page's vars is a way which is easy to
work with, and instead of the browser's back button, prov
Hehehe. And I thought the OTBSW (One True Brace Style Wars) had passed into
memory back some 10 or 15 years ago! Lo! They resurface yet again! 30 years
in this business and still I hear them argue.
Perhaps a cb style program for PHP so people can write any blasted style
they feel like and then ha
I believe the php.ini file has "magic_quote_runtime" (or simular) enabled.
Not much you can do unless you have control of the server (ie, you are the
admin).
You have everything in an array, so it's quite easy to stripslashes() on the
whole array... it'd be a lot harder with individual vars.
Ju
"The nice thing about standards is that there are so many to choose between".
Subject: Uses of block markers in coding
GNU recommends a standard with block-markers aligned under each other and a
number of people - including myself - find it senseless and
counter-progressive to keep up an olde
To prove that it works. My infamous spinning logo example that everyone
has seen 10 times...
http://conf.php.net/pres/slides/intro/flash_ming.php
The phpinfo() with the configure flags are here:
http://conf.php.net/info.php
libswf is compiled in directly and ming.so is built externally and lo
Please Cc: me as well...
I'm having the devil of a time getting Ming and/or libswf to do a Bitmap...
Short version:
What's the most stable PHP+Ming version-compatible combo I can achieve?
I don't care about anything else for this build, not even MySQL, just
PHP + Ming. Or libswf, if it's bet
I get the following report from Analog.
Daily Report
(Go To: Top: Monthly Report: Daily Report: Request Report)
This report lists the activity in each day.
Each unit () represents 3,000 requests for pages or part thereof.
date: reqs: pages:
-: ---: ---:
10/Mar/02: 1109810:
Does anyone have any experience with making script output display in a
frame?? I would like to get this to happen on an e-commerce site I am
designing and am stuck. I have tried with no success. Please help.
Jeff Means
CIO for PicoTech
http://www.picotech.net
[EMAIL PROTECTED] wrote:
> Hi list!
> I have maybe an easy to solve problem, but I haven't come with a logical
> way to do it. I am builing a discussion site (a la Kuro5hin.org), and
> there's a sql query to retrieve comments attached to an article. It grabs
> their titles, along with some mor
Hey guys,
i have this script that changes pages in a table with the include() command,
but i ran into trouble when i tried to change the pages by linking to
index.php?left=theband because it would feed it to the index.php, but
index.php would just change left back to news which is the default,
On Sat, 20 Apr 2002, Julio Nobrega wrote:
> I have maybe an easy to solve problem, but I haven't come with a logical
> way to do it. I am builing a discussion site (a la Kuro5hin.org), and
> there's a sql query to retrieve comments attached to an article. It grabs
> their titles, along with some m
I need PHP because I made a site for my course at university and they use
only Linux so I learned PHP.
>> Seems that you´re lucky with M$ and their ek$pen$ive environments.
Zend Studio 2.0 ==> 195$
NusPhere ==> 299$
I used PHP Edit but if I need to test a script that get values from POST or
GET p
Hello,
Richard Ellerbrock wrote:
> > If you want to hear experiences of people that tried Metabase, try
> > asking in Metabase mailing list (
> > http://groups.yahoo.com/group/metabase-dev/ ) or BinaryCloud mailing
> > lists ( http://binarycloud.tigris.org/servlets/ProjectMailingListList ).
> > I
php-general Digest 20 Apr 2002 22:29:18 - Issue 1298
Topics (messages 93798 through 93845):
Simple IF question
93798 by: Denis L. Menezes
93799 by: Tom Rogers
93800 by: Tom Rogers
93805 by: Jason Wong
93813 by: Denis L. Menezes
93814 by: Migue
You may find it easier to use purpose-built tools such as Squid or
Apache's mod_proxy.
http://www.squid-cache.org/
http://httpd.apache.org/docs/mod/mod_proxy.html
miguel
On Sat, 20 Apr 2002, Peter Janett wrote:
> I need to create a simple app that works like a radio repeater, in that is
> simp
They actually vary as to where they become truncated - some are at 633
bytes, some are at 1kb. The odd thing is that the PHP script I'm using to
process the form actually pics up the correct filesize, it reports it to me
under a $filesize variable I've setup. It'll report, say file2_filesize...:
6
Hi list!
I have maybe an easy to solve problem, but I haven't come with a logical
way to do it. I am builing a discussion site (a la Kuro5hin.org), and
there's a sql query to retrieve comments attached to an article. It grabs
their titles, along with some more informatio. What I want is to di
At 20.04.2002 22:44, you wrote:
>
>Is it possible to send with mail an attachment .. if yes, how ???
>
>Greetings
>wolf
Hi Wolf,
just ask google, or the archives there are a few classes and functions
which will do what you want.
If you like OOP you will find certains under http://www.phpclasses.o
At 20.04.2002 21:15, you wrote:
>Hi to all!!!
>Can anyone tell me how to debug in PHP?
>When I use ASP simply I write "stop" (VB) or "debugger" (JSCRIPT) to set a
>breakpoint and open the Microsoft Script Debugger.
>With PHP I can't find a way to do a similar thing.
>I downloaded the DBG PHP debu
At 20.04.2002 15:06, you wrote:
>
>Hi,
>I'm new to php, I want to do the foll: in my code:
>display an array of names to the user,
>up, down, top and bottom buttons are provided so that the user can change
>the order of the names (e.g. if original array: "a, b, c, d, e and user
>selects e and pre
Thanks Richard, just starting out but keeping portability in the back of my
mind. I've been keeping the sql statements standard and doing everything
through php so I don't get caught when moving to another database.
-Original Message-
From: Richard Ellerbrock [mailto:[EMAIL PROTECTED]]
> I have trouble unseting the values of $PHP_AUTH_USER and
> $PHP_AUTH_PW. I use
> the WWW-Authenticate via header() to authorize the user when accessing the
> page. But when the user logs out, values in $PHP_AUTH_USER and PW seem to
> remain and the user isn't asked again to authorize till a new
Hello,
I have trouble unseting the values of $PHP_AUTH_USER and $PHP_AUTH_PW. I use
the WWW-Authenticate via header() to authorize the user when accessing the
page. But when the user logs out, values in $PHP_AUTH_USER and PW seem to
remain and the user isn't asked again to authorize till a new br
Lauri Vain wrote:
> Hello there,
Hello
>
> I'm seriously researching some aspects of writing a content management
> system that would be 'relatively' easy to extend.
>
> My biggest problem is the ground level -- how should the central system
> (that registers modules) work? Ideally, it shoul
Is it possible to send with mail an attachment .. if yes, how ???
Greetings
wolf
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How do I configure my Win98 Apache/MySQL/PHP test server to be able to show
me WAP pages. I followed a tutorial on PHPBuilder but when I test pages with
my WAP emulator, it returns a "empty page" error.
Does anyone know any other web links for configuring to WAP, especially for
WIN32
--
PHP G
Hi,
I'm new to php, I want to do the foll: in my code:
display an array of names to the user,
up, down, top and bottom buttons are provided so that the user can change
the order of the names (e.g. if original array: "a, b, c, d, e and user
selects e and presses top array should become e, a, b.
123456
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
I have tried to make a complete modular php cms system. The hardest part
was not selecting which modules to load, but their presentation. I don't
know if what I did was good enough, i.e: the best implementatin, but
somewhat was working.
What I did was basically query a Mysql table, sel
Hi to all!!!
Can anyone tell me how to debug in PHP?
When I use ASP simply I write "stop" (VB) or "debugger" (JSCRIPT) to set a
breakpoint and open the Microsoft Script Debugger.
With PHP I can't find a way to do a similar thing.
I downloaded the DBG PHP debugger but I don't understand how to use
I need to create a simple app that works like a radio repeater, in that is
simply passes information it receives through to another script, in both
directions.
In other words, a remote application located at www.domain.com/app.php
accepts variable1, variable2, and variable3, and returns a respons
On Sunday 21 April 2002 01:10, Jason Wong wrote:
> On Sunday 21 April 2002 00:55, Denis L. Menezes wrote:
> > hello friends,
> >
> > I am looking into 4 books in front of me but somehow cannot find the
> > following :
> >
> > I have a field userid which the user fills in at registration. Before
>
On Sunday 21 April 2002 00:55, Denis L. Menezes wrote:
> hello friends,
>
> I am looking into 4 books in front of me but somehow cannot find the
> following :
>
> I have a field userid which the user fills in at registration. Before
> entering the data into the database, I want to check if the use
Yes Jason, You are right. However, I missed the == in my over-enthusiasm.
Thanks and sorry.
Denis
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 21, 2002 1:06 AM
Subject: Re: [PHP] Simple IF question
> On Sunday 21 April 2002 00:2
On Sun, 21 Apr 2002, Denis L. Menezes wrote:
> I am looking into 4 books in front of me but somehow cannot find the
> following :
>
> I have a field userid which the user fills in at registration. Before
> entering the data into the database, I want to check if the userid exists in
> the database
DLM> I have a field userid which the user fills in at registration. Before
DLM> entering the data into the database, I want to check if the userid exists in
DLM> the database.
You have to SELECT that user from the table you store your users:
SELECT userid, name , etc FROM table WHERE userid='$yo
On Sunday 21 April 2002 00:51, Ben Edwards wrote:
> The variable $PHP_SELF seems to be blank, I am using PHP 4.1.2 and Xitami
> 2.4d9 which are both the latest version. Has anyone else had this problem
> and do they know how to fix it?
use:
print_r($GLOBALS)
to verify.
--
Jason Wong -> Gre
On Sunday 21 April 2002 00:27, Denis L. Menezes wrote:
> Thanks Gentlemen.
>
> After many experiments, I found the answer. It should be "= =" and not "=".
Surely you mean "==", which more than one person has already pointed out?
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open S
The variable $PHP_SELF seems to be blank, I am using PHP 4.1.2 and Xitami
2.4d9 which are both the latest version. Has anyone else had this problem
and do they know how to fix it?
Ben
* Ben Edwards +
hello friends,
I am looking into 4 books in front of me but somehow cannot find the
following :
I have a field userid which the user fills in at registration. Before
entering the data into the database, I want to check if the userid exists in
the database.
Can someone tell me the name of the fu
> On Fri, 19 Apr 2002, Jeff Oien wrote:
> >> Far better would be to put a placeholder in $body like @@@ and then just
> >> do $body = ereg_replace('@@@', $url, $body);
> >
> > That's giving me a blank also. The form for changing the email is in a
> > password protected area where only two peopl
This sounds interesting... I am not familiar enought with PHP-GTK to give an
informed opinion. I think your decision should be based on how familiar
with the tools you take into the contest.Since you are not face with a
lot of time, will your competition be using Visual IDEs to aid the rapid
http://www.weberdev.com
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Victor Javier Martinez Lopez [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 20, 2002 3:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP]
If your browser is trying to download the file it's because the web server
isn't configured to recognize the file type. In your httpd.conf file you
should have a line similar to the following:
AddType application/x-httpd-php .php .php3 .phtml
In order to do what you are wanting, you also need a
Thanks Gentlemen.
After many experiments, I found the answer. It should be "= =" and not "=".
thanks for all yr help.
Denis
- Original Message -
From: "Miguel Cruz" <[EMAIL PROTECTED]>
To: "Denis L. Menezes" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, April 21, 2002 12:10 A
Why don't you print out $salutation and see what you're getting?
miguel
On Sun, 21 Apr 2002, Denis L. Menezes wrote:
> Hello Jason.
>
> You are right, but it still does not work.
>
> Could it be a trim word problem?
> Thanks
> Denis
> - Original Message -
> From: "Jason Wong" <[EMAIL
Hello Jason.
You are right, but it still does not work.
Could it be a trim word problem?
Thanks
Denis
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 20, 2002 7:34 PM
Subject: Re: [PHP] Simple IF question
> On Saturday 20 April
I suggest you buy a book called PHP Essentials by Julie C. Meloni. That's a
great book for php beginners. It comes with a bunch of example code. It's
really well written.
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: "Victor
Mantas Kriauciunas wrote:
> Hey [EMAIL PROTECTED],
>
> as i understand files .phps should view code nice and in colors...
> but when i set up everything good in http.conf and (as i think)
> everything is perfect it wants me to download that .phps
> file...what can be wrong? im using PHPTr
Hi there.
Hoe come I cant use $HTTP_*_VARS in my script ? I have register_globals
on, track vars is also on and i have made the necessary changes in my
apache config ( the ALLOWOVERRIDE ALL ). My system is Win XP, Apache (
newest ) and newest PHP release.
Thanks.
--
PHP General Mailing List (h
I started here it was pretty good, then ofcourse I bought a thick ass
book:
http://www.mysql.com/articles/ddws/index.html
R>
>I'm started with PHP and I'm interested in find any place
>with some docs and example code. Can anyone help me?
>
>Thanks in advance.
>
>
--__-
I'm started with PHP and I'm interested in find any place
with some docs and example code. Can anyone help me?
Thanks in advance.
make sure that this script is not insterted into an html document but
it's a stand alone page eg. checkstudent.php. When the student submits
their number your form should bring them here () and the page will do its job.
Make sure however that there is no output (don't print to screen) on that
On Thu, 18 Apr 2002 16:05:13 +0200, Manuel Lemos wrote:
> Hello,
>
> Sp wrote:
>>
>> Hi Manuel, I still don't see a problem in others telling their
>> experiences with certain packages. If someone has just used metabase
>> or has just used adodb then I would like to hear how easy/hard it was
>
On Saturday 20 April 2002 18:35, Tom Rogers wrote:
> Hi again
> You can also write it as:
> If (($salutation != "Please select")
> Print ("Sorry, please select a value in the salutation box");
> Tom
Also the logic seems to be wrong, shouldn't it be:
if (($salutation == "Please select") {
On Saturday 20 April 2002 18:25, Jason Soza wrote:
> Sorry for the thread thing, I wasn't aware I was causing probs. I usually
> just use "Reply" to save having to enter the e-mail address, just laziness.
> I'll keep from doing in this in the future, thanks for letting me know.
Thanks, you'll ann
On Saturday 20 April 2002 18:49, Joe wrote:
> may be my message are hazy.
> the line =
> is not include in my php code/page, i just use it in this message as to
> divide
> into different section.
Whatever, the answer is still the same:
> > You cannot have anything between the beg
may be my message are hazy.
the line =
is not include in my php code/page, i just use it in this message as to
divide
into different section.
Joe
"Jason Wong" <[EMAIL PROTECTED]>
???:[EMAIL PROTECTED]
> On Saturday 20 April 2002 09:26, Joe wrote:
>
>
> > =
Hello there,
I'm seriously researching some aspects of writing a content management
system that would be 'relatively' easy to extend.
My biggest problem is the ground level -- how should the central system
(that registers modules) work? Ideally, it should be possible to easily
extended the sys
Hi again
You can also write it as:
If (($salutation != "Please select")
Print ("Sorry, please select a value in the salutation box");
Tom
At 08:29 PM 20/04/2002, Tom Rogers wrote:
>Hi
>You need to use the double = in the if condition like
>
>If ((!$salutation=="Please select")
>Print ("
Hi
You need to use the double = in the if condition like
If ((!$salutation=="Please select")
Print ("Sorry, please select a value in the salutation box");
Tom
At 08:17 PM 20/04/2002, Denis L. Menezes wrote:
>Hello friends,
>
>I have a registration form with a salutation field in a listbox,
Hello friends,
I have a registration form with a salutation field in a listbox, in which I
want that the registrant must choose a value other than the default value of
"please select". So I wrote :
If ((!$salutation="Please select")
Print ("Sorry, please select a value in the salutation box"
php-general Digest 20 Apr 2002 10:20:54 - Issue 1297
Topics (messages 93756 through 93797):
Re: Image functions
93756 by: Matthew Gray
header redirection
93757 by: Norman Zhang
93758 by: Kevin Stone
93792 by: Jason Wong
Leading zeros in array index
Sorry for the thread thing, I wasn't aware I was causing probs. I usually
just use "Reply" to save having to enter the e-mail address, just laziness.
I'll keep from doing in this in the future, thanks for letting me know.
I'm using 'POST' in my forms - any other ideas or places I could check?
Tha
Thanks a heap guys and Justin for your support..
Yeah I am heavily interested in www.powweb.com anybody know if they're any
good??
They have really 1337 service it seems and give me 12GB p/m and 200mb for
only USD$7.77 ...
w00t.. w00t!
Anybody here use them? any exp. with them??
Thanks a
I was too tired, but a coffee and a c* and everything woks fine :)
Just forgot to init the array correctly !
At 19.04.2002 15:24, you wrote:
>
>Hi Folks,
>I have a problem assigning an 3dim array, maybe I´m to tired today to see the
>mistake, but PHP thinks, that it finds "Illegal string index" a
76 matches
Mail list logo