Because you must replace it after $total and $buffer are defined, not
before.
This works :
This does not work :
Regards,
Philip Olson
http://www.cornado.com/
On Wed, 31 Jan 2001, Augusto Cesar Castoldi wrote:
> In the begin of my site, I have the following code:
> $
Check out :
http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?query=foo
Within is a lengthy explanation of the word and its origin. Btw, it's
just a word as is 'blah' and 'bar' and 'apple'. But 'foo' is a cult
classic!
Regards,
Philip Olson
http
e had trying to find someone who can really
> code
> > clean, effecient stuff that plugs into the whole picture has been
> virtually
> > non-existent...(if you do, please call! We have a few openings!)
> >
> > Thanks,
> > -Jonathan Sharp
> >
> > Direct
nd my desire for work/money (time). Also, barter
is usually an option. Usually hovers between 30-50 and one day this will
go up :-) This is the most difficult part of the job, time estimates
and pricing. Bah. "Just give me money and I'll do stuff."
Regards,
Philip Olson
ht
h archives/google and see
how long it takes to find an answer. It's fun! But, each to their own.
It's easy to get frustrated by repeat questions but we must realize it's
not the same person asking over and over ...
Regards,
Philip Olson
http://www.cornado.com/
On Thu, 1 Feb 2001
http://marc.theaimsgroup.com/?l=php-general
Regards,
Philip Olson
http://www.cornado.com/
On Thu, 1 Feb 2001, April wrote:
> oh look, someone's getting snippy with me for speaking on the list and
> admitting I'm a newbie already. Patronizing does get to be a reflex actio
n. When I
build the package without any access logging or access restriction
support, I call my binary FI. When I build with these options, I call it
PHP."
Regards,
Philip Olson
http://www.cornado.com/
On Fri, 2 Feb 2001, Brandon Orther wrote:
> I have been using PHP for a while now an
This mailing list is also :
news.php.net
Also, this newsgroup exists (seperate from list)
alt.php
Philip
On Sat, 3 Feb 2001, McShen wrote:
> hi
>
> I am just wondering if there are any PHP newsgroups like this one. I am
> looking for PHP newgroups so that i can ask people questions
now equals 9. For info on how all the above works, see :
http://www.php.net/manual/en/control-structures.foreach.php
http://php.net/ChangeLog-4.php
http://www.php.net/manual/en/language.operators.assignment.php
Regards,
Philip Olson
http://www.cornado.com/
On Wed, 7 Feb 2001, Ke
Here are a few examples of what you _can_ do :
';
print "";
print '';
print "";
print "";
?>
">
For a wonderful tutorial on the subject, go here :
http://www.zend.com/zend/tut/using-strings.php
It'
See this :
What is the difference between echo and print ?
---
http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/41
It should help!
Regards,
Philip
On Wed, 7 Feb 2001, Jeff Oien wrote:
> On that subject wh
This is a good start :
http://directory.google.com/Top/Computers/Data_Formats/
Regards,
Philip
On Wed, 7 Feb 2001, Tobias Talltorp wrote:
> > No. People use whatever file extensions they like.
>
> So, If I create a 3D-program, I could say that file extensions for this
> program will be .
If register_globals is turned off, that will not work. See :
http://www.php.net/manual/en/configuration.php#ini.register-globals
Check phpinfo()
For details on your settings, perhaps it is off. Try :
And it should display : HOME : for you.
Regards,
Philip Olson
http
> Whatever, James.
Also, consider this word :
sue
As well as :
defamation of character
And also :
Libel and Slander
And lastly :
Spoof
All should be considered before posting anything anywhere. Especially a
public mailing list. It's important to be caref
> True, but none of which are applicable to me, as I've not slandered, defamed
> or spoofed anything or anyone. As far as hacking is concerned, I wouldn't
> know my arse from my elbow :)
just a fyi, my post had nothing to do with you. or the other james (which
that line you're referring too had
On Thu, 8 Feb 2001, Todd Cary wrote:
> I have "Profession PHP Programming" and I see that echo() and print()
> are used alomst interchangeably. When should each one be used?
What is the difference between echo and print ?
---
:
-
http://phpbuilder.com/columns/mike20010118.php3
As well as :
http://directory.google.com/Top/Computers/Mobile_Computing/Wireless_Data/WAP/
Regards,
Philip Olson
http://www.cornado.com/
On Fri, 9 Feb 2001, Augusto Cesar Castoldi wrote:
> Anyone knows a good (can be a bad) site of PHP
Also :
Whenever this problem exists, run your site through here :
http://validator.w3.org/
Actually, always run sites through there, it's useful (sometimes a bit
picky.) For things like missing table tags, it's very helpful.
Regards,
Philip
--
PHP General Mailing List (http://www.php
:
--
http://zend.com/zend/tut/session.php
Title: Couch Sessions:
--
http://www.devshed.com/Server_Side/PHP/Sessions/
Regards,
Philip Olson
http://www.cornado.com/
On Fri, 9 Feb 2001, Evelio Martinez
> Don't worry about him Phillip. And you Jonathon erase all these files and
> contact Phillip *personally* telling him more what his security wholes are,
> so he'll be grateful to you.
Just to clear things up, my only comments mentioned that this is silly and
calling someone a "hacker" publicall
On Mon, 12 Feb 2001, Dave VanAuken wrote:
> PHP is doing what it should to your form input. It automatically
> performs "addslashes" to all form input so that the variables are
> parsed correctly on the receiveing end.
>
> do a "stripslashes" to get rid of it.
Yes and it's doing this via the m
For this sort of thing, replacing statements such as :
or die("Couldn't execute query.");
With :
or die(mysql_error());
Would have instantly told you the problem, in nice human readable format.
Regards,
Philip
On Mon, 12 Feb 2001, Brandon Orther wrote:
> I fixed it,
>
> Me so stup
tup. And yes, the server must be setup to parse PHP and the sysadmin
must do this, an end user cannot. Information on that can be seen here :
http://www.php.net/manual/en/installation.php
Also, consider checking out basic PHP tutorials found at devshed.com and
phpbuilder.com as well as the man
See :
http://www.php.net/manual/en/function.mkdir.php
Regards,
Philip
On Mon, 12 Feb 2001, andrew wrote:
> subject says it all - any way to create a new folder in the filesystem?
>
> regards,
> andrew
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
Assuming you want to select both id and email from table, use commas :
SELECT id,email FROM ...
Also, check out this basic SQL tutorial :
http://www.sqlcourse.com/
It's fairly useful.
regards,
Philip
On Tue, 13 Feb 2001, Peter Houchin wrote:
> Hi,
>
> Can you have a SELECT stateme
A possible way to find out :
$result = mysql_query($sql) or die(mysql_error());
Does it say anything? mysql_error() is your friend, it can be printed
anywhere within the script and will print the last mysql error. So
perhaps :
print mysql_error();
Right before the query or ...
Regar
3389003820&w=2
Can find more here :
http://marc.theaimsgroup.com/?l=php-general&r=1&w=2&q=b&s=jsp
Regards,
Philip Olson
http://www.cornado.com/
On Tue, 13 Feb 2001 [EMAIL PROTECTED] wrote:
> Hi,
>
> Just wondering if anyone knows of any links to information r
CT * ..." all the
time as it's overkill if not all fields are being used.
Regards,
Philip Olson
http://www.cornado.com/
On Tue, 13 Feb 2001, Jeff Oien wrote:
> Would people like to list bad practices and also point us
> newbies to any articles online dealing with syntax,
try something like :
function pastDate($days,$format='Ymd')
{
$secs = ( $days * 86400 );
return date( $format,time()-$secs );
}
print pastDate(14);
Regards,
Philip Olson
http://www.cornado.com/
On Tue, 13 Feb 2001, Don wrote:
> Does someone have a snippet of code t
uotes automatically. Also, have a
look here :
http://www.php.net/manual/en/function.addslashes.php
http://www.php.net/manual/en/function.stripslashes.php
It will make sense.
Regards,
Philip Olson
http://www.cornado.com/
On Wed, 14 Feb 2001, Nguyen, David M wrote:
> Hi all,
>
> I have
Are you sure you want to convert \n into for an email? At any rate,
a function exists for this conversion :
http://www.php.net/manual/en/function.nl2br.php
Regards,
Philip Olson
http://www.cornado.com/
.sig
be outside the box.
On Wed, 14 Feb 2001
> Doesn't anybody know anything?? Even a nope it can't be done is a better
> response than nothing?
>
> Thanks guys
Don't always expect a response, especially within 137 minutes.
Also consider how dangerous it would be. If I decided to check for files
on a visitors HD's and was able to downloa
all make sense soon.
regards,
Philip Olson
http://www.cornado.com/
On Thu, 15 Feb 2001, Jeff wrote:
> Is there any way to get a php script to automatically run, say every
> night at 2am?
>
> Thanks,
> Jeff
>
>
> --
> PHP General Mailing List (http://www.php.n
y-slice.php
http://www.php.net/manual/en/function.unset.php
Regards,
Philip Olson
http://www.cornado.com/
On Thu, 15 Feb 2001, David Tandberg-Johansen wrote:
> How can I delete one record in a array?
>
> Example:
>
> $myarray = array ("a", "b", "c");
>
&
Try this :
a [2] => c
$bar = array('a','b','c');
$piece = array_splice ($bar, 1 ,1);
print_r($piece); // [0] => b
print_r($bar);// [0] => a [1] => c
?>
http://www.php.net/manual/en/function.array-slice.php
http://www.php.net/manual/en/function.unset.ph
Try this :
$a: ' . sizeof($a);// 2
print ' $a[0] : ' . sizeof($a[0]); // 3
print ' $a[1] : ' . sizeof($a[1]); // 1
?>
Regards,
Philip Olson
http://www.cornado.com/
On Thu, 15 Feb 2001, Fabian Fabela wrote:
> Hello,
>
> I have the array
lic and available, see :
http://php.net/COPYRIGHT.txt
Note the "source" button on every php.net page.
Regards,
Philip Olson
http://www.cornado.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
The most useful "second" book is :
PHP Developers Cookbook
It really is nice. I say "second" because it's geared towards those that
understand a bit already but still, it'll even help the complete newbie
(easy to read). Excellent tips, short-cuts, examples, etc. Includes uses
of various
601 - 638 of 638 matches
Mail list logo