water_foul wrote:
ho do you make a eregi so it looks at the var as a single line
use the preg_ functions.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals www.phparch.com
--
PHP General Mailing List
If you have a bad habit of writing program codes, it may don't work on
the strict config. You'd better change the bad habit.
But if you don't want to do that, you can modify php.ini to fit you.
On Fri, 2 Jul 2004 23:46:38 +0700
Dannis Yang [EMAIL PROTECTED] wrote:
Dear:
I wonder why my
On Jul 2, 2004, at 9:46 AM, Dannis Yang wrote:
Dear:
I wonder why my website runs smooth in PHP 4.1.1 but it does not in
4.3.7.
Dannis
Please go through and tell us more information! We can't help you
otherwise!
At least tell us what your site does and define what smooth is and is
not. And
I wonder why my website runs smooth in PHP 4.1.1 but it does not in
4.3.7.
Without knowing any relevant details at all, I would suggest that the
settings are different between the two servers, particularly
register_globals and magic_quotes.
Larry
--
PHP General Mailing List
On Tue, 29 Jun 2004 19:27:04 -0500, Robb Kerr
[EMAIL PROTECTED] wrote:
I need some help with a looping syntax. In english, a is used before
words that begin with consonants - an is used before words that start
with vowels. I'm trying to create a loop that checks this state and inserts
the
I need some help with a looping syntax. In english, a is used before
words that begin with consonants - an is used before words that start
with vowels. I'm trying to create a loop that checks this state and inserts
the correct word in the echo line. Below is the sloppy version of what I'm
I need some help with a looping syntax. In english, a is used before
words that begin with consonants - an is used before words that start
with vowels. I'm trying to create a loop that checks this state and inserts
the correct word in the echo line. Below is the sloppy version of what
On Wed, 30 Jun 2004 00:58:32 + (GMT), Philip Olson wrote:
I need some help with a looping syntax. In english, a is used before
words that begin with consonants - an is used before words that start
with vowels. I'm trying to create a loop that checks this state and inserts
the correct word
Robb Kerr wrote:
I need some help with a looping syntax. In english, a is used before
words that begin with consonants - an is used before words that
start with vowels.
You are probably already aware of this, but that isn't strictly correct.
The rule for deciding between a and an is based not
[snip]
Can someone help me fix my code so that when I add an element I can
also set
some contents or a value for that element? example
serial_number000/serial_number
[/snip]
$doc = domxml_new_doc(1.0);
$root = $doc-add_root(Server);
$root-set_attribute(Name, pxtest01);
$el =
I think you only have to change one line of your php code:
$text = $doc-create_text_node(00);
instead of
$text = $doc-create_text_node($el[00]);
With best regards
Gabriel Birke
--
KONTOR4_Neue Medien
Plathnerstraße 5
30175 Hannover
Fax: +49 51184 48 98 99
mailto:[EMAIL PROTECTED]
On Tue, 22 Jun 2004 14:57:28 -0400, Ryan Schefke [EMAIL PROTECTED] wrote:
Could someone please help me with an eregi statement.
I have a string that can vary as such:
client1/album/album_121-2132_IMG.JPG
client2/album/album_121-2132_IMG.JPG
client59/album/album_121-2132_IMG.JPG
On Tue, Jun 22, 2004 at 10:08:37PM +0300 Robin Vickery [EMAIL PROTECTED] wrote:
On Tue, 22 Jun 2004 14:57:28 -0400, Ryan Schefke [EMAIL PROTECTED] wrote:
Could someone please help me with an eregi statement.
I have a string that can vary as such:
[snip]
client1/album/album_121-2132_IMG.JPG
client2/album/album_121-2132_IMG.JPG
client59/album/album_121-2132_IMG.JPG
client499887/album/album_121-2132_IMG.JPG
I want to select whatever comes after the last forward slash, like
album_121-2132_IMG.JPG
[/snip]
you could try without regular
* Thus wrote Tom Z. Meinlschmidt:
On Tue, Jun 22, 2004 at 10:08:37PM +0300 Robin Vickery [EMAIL PROTECTED] wrote:
On Tue, 22 Jun 2004 14:57:28 -0400, Ryan Schefke [EMAIL PROTECTED] wrote:
Could someone please help me with an eregi statement.
I have a string that can vary as such:
[snip]
I would like to use php to email a picture (as an attachment) that is on
my
server (linux), without manually attaching/uploading one. Is this
possible?
If so, how can it be done?
[/snip]
Google can be your friend, if you use it
http://www.zend.com/zend/spotlight/sendmimeemailpart1.php
Also check the archives of this e-mail list. I believe this topic has been
discussed before.
[Original Message]
From: Ryan Schefke [EMAIL PROTECTED]
To: Php-General-Help [EMAIL PROTECTED]
Date: 06/14/2004 5:48:16 AM
Subject: [PHP] Help with an objective
All,
I would like to use php
Ah yes! Thanks, I see the problem; I have to switch the 8-byte chunks in
byte-order! (Why is Directconnect doing this...)
Thanks for your help. Greetings, Carl.
Thijs Lensselink [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
check:
Hey, I hope I'm not stating the obvious, but last time I used
ImageMagick (5.5.7 - in my receipts folder, I just checked) for use
with PHP under Mac OS X, I just downloaded a package from
http://entropy.ch/ and installed it and life was good. I think it's
still up for download. No messing with
check: http://www.cs.technion.ac.il/~biham/Reports/Tiger/testresults.html
The results you posted seem to be right.
Carl S. in 't Veld wrote on vrijdag 4 juni 2004 0:52:
I am trying to generate tiger tree hashes the same way as
directconnect does, but I am failing.
I checked the output from
* Thus wrote Justin Kozuch ([EMAIL PROTECTED]):
Hi All,
...
Here is the code that I have on the login form, called index.php
?php require_once('Connections/verspeeten.php'); ?
?php
Breaking in and out of php is pointless, and can cause potential
problems with session_start(), headers
JUST FOR ALL OF YOU OUTTHERE TO KNOW...
the problem was that site had Frontpage 2002 extensions installed.
Incredibly enough, that was sufficient not to accept the files.
Thanks again to all that answered.
Vamp
Jason Sheets [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
Apr 19 at 10:03am, Don Myers wrote:
PHP gurus. I know this can be made shorter but I can't seem to figure
out how. This is a PHP CLI script I use to go through a directory
listing a act upon file matching the same prefix and/or suffix if
supplied. This is the code I use now.
First of all, I
* Thus wrote Don Myers ([EMAIL PROTECTED]):
PHP gurus. I know this can be made shorter but I can't seem to figure out
how.
This is a PHP CLI script I use to go through a directory listing a act upon
file matching the same prefix and/or suffix if supplied. This is the code I
use now.
//
From: Brian Dunning [EMAIL PROTECTED]
I'm trying to use phpmyadmin's Insert data from a textfile into table
function. I've done this before many times, exactly the same way, and
never had a problem. But today I'm getting:
#1148 - The used command is not allowed with this MySQL version
Joey mailto:[EMAIL PROTECTED]
on Wednesday, March 31, 2004 2:54 PM said:
Step1: upload_file_type:
Step1: upload_file: C:\\Documents and
Settings\\jack.IISG\\Desktop\\BVP.jpg Step1: extention:
Step2: upload_file_type:
Step2: upload_file: C:\\Documents and
* Thus wrote Joey ([EMAIL PROTECTED]):
...
if($upload_file !=)
{
//image size esle will ignore ...
$img_max_width=750;
$img_max_height=750;
$extention=
$file_type1 = image/pjpeg;
Here is your bug as you described. $extention is assigned the
value of $file_type1 after it is assigned
If you DO NOT register globals (in php.ini) you MUST use
$_POST[post_var] or $_GET[get_var] to access those variables...
If you DO resgister globals you can also use $post_var or $get_var.
By default, register globals is set to Off for security reasons; so
you'll need to set it On. The line
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and
inform them of the time the error occurred, and anything you might
have done that may have caused the
background=
Mark wrote:
I have the following snippet of code that I cannot seem to find a way to
add an image to a TR. The line in question is the first one under the
else statement:
print TR BGCOLOR=\#381499\;
This line, I would like to show a image called backgrnd.png instead of
a
Mark mailto:[EMAIL PROTECTED]
on Wednesday, March 17, 2004 9:24 AM said:
Any help would be much appreciated
as this is not a php related question and that this is a very basic
question it would be most beneficial for you to join a list like thelist
from http://evolt.org or webdesign-l (i
On Wed, 2004-03-17 at 12:23, Mark wrote:
I have the following snippet of code that I cannot seem to find a way to
add an image to a TR. The line in question is the first one under the
else statement:
print TR BGCOLOR=\#381499\;
This line, I would like to show a image called backgrnd.png
Yes encode() function worked perfectely fine.
-vimala/.
On Mon, 15 Mar 2004, Richard Davey wrote:
Hello Vimala,
Monday, March 15, 2004, 11:55:47 AM, you wrote:
VSP Is there any way of passing unicode strings properly with href and get?
I'm 99% sure you can pass unicode strings by
Hello Vimala,
Monday, March 15, 2004, 11:55:47 AM, you wrote:
VSP Is there any way of passing unicode strings properly with href and get?
I'm 99% sure you can pass unicode strings by simply URL Encoding them
(see urlencode) before appending to the query string. Try it and see?
--
Best
Vimala --
...and then Vimala S.P. said...
%
% Hi,
Hi!
%
...
% Is there any way of passing unicode strings properly with href and get?
If Richard's suggestion of urlencode doesn't work (though I expect it
to), you could also try base64_encode() to form your HREFs and then
base64_decode what
Arer you using session_destroy(), where your script ends...
if it's not the case, try using cookies to destroy sessio after a period of
time.
Hope that helps..
Nitin
- Original Message -
From: Vimala S.P. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 15, 2004 5:25 PM
--- Vimala S.P. [EMAIL PROTECTED] wrote:
Is there any way of passing unicode strings properly with href and get?
You can pass anything as a URL variable if you URL encode it. That's what
URL encoding is for:
http://www.php.net/url_encode
Hope that helps.
Chris
=
Chris Shiflett -
On Sat, 2004-03-13 at 04:35, Joey wrote:
As you can see by the below code, I have tried many ways to store DB values
to a multi-dimensional array and then print them out.
The problem is I am missing something somewhere.
As you can see at the bottom of the code I created an array and printed
Hello Norbert,
Saturday, March 13, 2004, 11:54:54 AM, you wrote:
NP on a page the function getimagesize is supposed
NP to be applied on all possible formats.
NP Unfortunately I do not find anybody, who can
NP procure a sample for me for these three formats:
NP 11 = JPX, 12 = JB2 and 13 = SWC.
I'm sorry - bad reply ... :-(
Hi Richard,
unfortunately you err.
I use already XnView.
This program does not support the looked for formats.
m. b. G. Norbert
_
normal: 02686-987103
Notruf: 0177-2363368
-
e.o.m.
--
PHP General Mailing List
?.
Regards,
Firman
- Original Message -
From: Norbert Pfeiffer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 13, 2004 10:13 PM
Subject: Re: [PHP] help for getimagesize
I'm sorry - bad reply ... :-(
Hi Richard,
unfortunately you err.
I use already XnView.
This program
Elliot J. Balanza wrote:
Then I need to store the values i receive in an array in the form of:
$variable['name'] = value;
$value.
--
Raditha Dissanayake.
---
http://www.radinks.com/upload/
Drag and Drop Upload thousands of files
Yes ok but how do I store it?
with array() how?
vamp
Raditha Dissanayake [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
Elliot J. Balanza wrote:
Then I need to store the values i receive in an array in the form of:
$variable['name'] = value;
$value.
--
Elliot J. Balanza wrote:
Yes ok but how do I store it?
with array() how?
Whole business of reading from a db and storing into an array is
probably redundant. You should try to directly process the contents of
the db. This saves you memory and CPU.
$variable['name'] = $value;
is good.
read about phps mysql_fetch_assoc in the manual.. this will explain what
your looking for.
http://ca.php.net/manual/en/function.mysql-fetch-array.php
Jason
Elliot J. Balanza [EMAIL PROTECTED] wrote:
Yes ok but how do I store it?
with array() how?
vamp
Raditha Dissanayake [EMAIL
i supplied the wrong link, sorry.. this is the right one..
http://ca.php.net/manual/en/function.mysql-fetch-assoc.php
Jason
Jason Davidson [EMAIL PROTECTED] wrote:
read about phps mysql_fetch_assoc in the manual.. this will explain what
your looking for.
Pooya Eslami wrote:
Hi,
I want to write a php script for handling the username and password of users
on my website. What strategies are used for password protected pages? I
don't quite know where to start!
One strategy that I had in mind was to have a folder for each user and
access it via the
Labunski mailto:[EMAIL PROTECTED]
on Wednesday, March 03, 2004 3:31 PM said:
Hello,
// This will print first and sixth line from the text file:
$file = file(people.txt);
print $file[0]br;
print $file[6]br;
actually that will print the first and seventh line of the file...
// But
foreach($file as $value ){
print $valuebr;
}
// This will print first and sixth line from the text file:
$file = file(people.txt);
print $file[0]br;
print $file[6]br;
// But how to print all the lines from [0] to [6] ?
// Hope you understood my problem.
--
PHP General Mailing List
Thanks! It was very useful!
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Your script is working perfectly, thanks for teaching me!
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 2004-03-03 at 18:30, Labunski wrote:
Hello,
// This will print first and sixth line from the text file:
$file = file(people.txt);
print $file[0]br;
print $file[6]br;
// But how to print all the lines from [0] to [6] ?
// Hope you understood my problem.
for($i=0; $i 6;
I know that others have already helped you learn out to print out an
array, but you can also use print_r($array); to print out the array.
It's not useful for the end-user of your application, but it can help
you out as you're programming.
--
Regards,
Ben Ramsey
http://benramsey.com
On 3/4/2004 1:32:42 AM, Ben Ramsey ([EMAIL PROTECTED]) wrote:
I know that others have already helped you learn out to print out an
array, but you can also use print_r($array); to print out the array.
It's not useful for the end-user of your application, but it can help
you out as you're
Hello ajay,
Sunday, February 22, 2004, 7:57:21 PM, you wrote:
a hi!
a i have a class called DB that i include in a page as include(classes/DB.php);
a however when i run this page i get an error saying
a Warning: main(/home/bikkar/public_html/ajay/classes/DB.php): failed to open
a stream: No such
hi!
the code is
?php
include(classes/DB.php);
include(classes/PageMaker.php);
$page = new PageMaker(main.css, USYD Basketball);
$page-print_header();
printf(body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0);
look at the html code, this is no problem related to php, but the HTML.
Hope that helps
Nitin
- Original Message -
From: 3mip1s4la/Nath/Pisanty [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 21, 2004 7:24 AM
Subject: [PHP] HELP PLEASE!
this is my first post, so
Have you tried using 'amp;' ?
Chris Bruce wrote:
I am having trouble with a string becoming truncated at an ''
character. I am passing the variable via a link
(http://...campaign=MBI%20List%20-%20Steel%20%20Concrete) and then
when I try to grab the incoming value of campaign into a SELECT
From: Chris Bruce [EMAIL PROTECTED]
I am having trouble with a string becoming truncated at an ''
character. I am passing the variable via a link
(http://...campaign=MBI%20List%20-%20Steel%20%20Concrete) and then
when I try to grab the incoming value of campaign into a SELECT query,
it
The problem is that the '' character is already in a database. I am
trying to do a query where I need to have it as '', but like I said,
when it comes into the script from the url it gets truncated.
--
Chris Bruce
[EMAIL PROTECTED]
Idextrus
E-Business Architects
http://www.idextrus.com
3282
You are right John. I have it working now. Thanks.
--
Chris Bruce
[EMAIL PROTECTED]
Idextrus
E-Business Architects
http://www.idextrus.com
3282 Wilmar Cres.
Mississauga, ON
L5L4B2
CA
905.828.9189
This e-mail and its contents are
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
the problem is the '' on the url
http://...campaign=MBI%20List%20-%20Steel%20%20Concrete
^
|
there
this url is saying:
--- Chris Bruce [EMAIL PROTECTED] wrote:
I am having trouble with a string becoming truncated at an ''
character. I am passing the variable via a link
(http://...campaign=MBI%20List%20-%20Steel%20%20Concrete) and then
when I try to grab the incoming value of campaign into a SELECT query,
Hi there again people,
I looks like this thread turned into a 'include' usage
discussion. Well, nothing wrong with that.
The conclusion seems to be that ALL level of nested
included inherit current directory reference for
relative paths from the very first script ( that in
$_SERVER[SCRIPT_NAME]
Hello Samuel,
Tuesday, February 10, 2004, 6:55:24 PM, you wrote:
SV I have 3 files in nested subdirectories
[snip]
SV Is this a bug or a feature?
Neither, it's just logic really. The include() function sucks
in the file specified, dropping out to HTML mode to do so. The
included file inherits
From: Samuel Ventura [EMAIL PROTECTED]
I have 3 files in nested subdirectories
(1) /test.php
(2) /subdir1/test.php
(3) /subdir1/subdir2/test.php
if I call (3) it loops forever in (2) trying to
including itself.
Is this a bug or a feature?
A feature?
You make a request for (3). The
: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 1:50 PM
To: Samuel Ventura; [EMAIL PROTECTED]
Subject: Re: [PHP] HELP: Nested include(...)'s take relative paths not
intuitively
From: Samuel Ventura [EMAIL PROTECTED]
I have 3 files in nested subdirectories
(1
From: Alex Hogan [EMAIL PROTECTED]
Are you saying that it's better not to use relative paths on
include(...)'s,
require(...)'s and their (x)_once(...) cousins?
That seems awkward to me.
Why would I want to hard code a path, even if I was including additional
functionality from another
Richard Davey wrote:
include $dir/file.php
vs.
include($dir/file.php)
Both work just fine. The manual includes examples of both methods. So
which do most people consider the right way ?
If you use echo, then you should use include().
If you use print, then you should use include .
Unless you
If it was a function, parenteses would be mandatory hehe
I prefer no parentheses on include/require/echo/print/..., cant justify
it with arguments though, its just the style i chose...
What about:
if (...) {
...
}
and:
if (...)
{
...
}
I prefer the second, but people find good reasons
On Tue, 2004-02-10 at 21:00, André Cerqueira wrote:
If it was a function, parenteses would be mandatory hehe
I prefer no parentheses on include/require/echo/print/..., cant justify
it with arguments though, its just the style i chose...
What about:
if (...) {
...
}
and:
if
On Wed, 2004-02-11 at 19:36, John W. Holmes wrote:
If you use echo, then you should use include().
If you use print, then you should use include .
Unless you use echo(), then you should use include
and if you use print , then you should use include().
Unless you don't want to. :)
Heh,
On Mon, 2004-02-09 at 23:17, Samuel Ventura wrote:
what I need is to detect the name of the script
from which I called the function, (test2.php) in this
case.
For this application, it is not practical to pass an
aditional parameter to the function specifying the
caller, i need
On 02-Feb-2004 EastLothianDirectory wrote:
Was just reading your previous reply and my months are indeed in text
and therein
lies the problem.
snip
Look at the MySQL functions FIELD() and/or FIND_IN_SET().
Regards,
--
Don Read [EMAIL PROTECTED]
--
EastLothianDirectory wrote:
I have the following sql query in my Php code:
$sql = SELECT id, date_day, date_month, date_year, title, content FROM $table_name
ORDER BY date_year desc;
The rest of the php code is just a simple db connection with a bullet list
and 'while' loop with an 'echo
: [EMAIL PROTECTED]
Subject:Re: [PHP] Help for code to 'sort list' please
EastLothianDirectory wrote:
I have the following sql query in my Php code:
$sql = SELECT id, date_day, date_month, date_year, title, content FROM
$table_name
ORDER BY date_year desc;
The rest
EastLothianDirectory wrote:
Thank you for reply. I already have 'ORDER BY year desc'.
But as I mentioned how do I get the months and day in order too on the same list.
Thank you in advance
snip
Read the documentation for ORDER BY in MySQL. You can sort on multiple
columns. Basically, you
Chris,
It looks like your data in date_year is not in a format that supports a
simple DESC sort. Look into getting the column formatted in -mm-dd
order (see the mysql manual for this). Read the data in your column, format
it, pump it back into the database, then change the column type to
EastLothianDirectory wrote:
I have the following sql query in my Php code:
$sql = SELECT id, date_day, date_month, date_year, title, content FROM $table_name
ORDER BY date_year desc;
...
Although it lists in year order descending (in fact what I asked it to do)
I would like to learn to sort
]
Subject:Re: [PHP] Help for code to 'sort list' please
EastLothianDirectory wrote:
Thank you for reply. I already have 'ORDER BY year desc'.
But as I mentioned how do I get the months and day in order too on the same list.
Thank you in advance
snip
Read the documentation for ORDER
refering to my previous mail: I really don't think its a good idea to
store the months as names in the DB (I recommend a datetime field to
store the complete date info).
but if you must then you will have to define an array which you can use
as a sort key e.g.
array(
1 = 'January',
[snip]
?php
if ($TextArea=) {
echo You have to fill out the entire form,
go back and try again.;
} else {
$to = [EMAIL PROTECTED];
$from = From-Test;
$subject = Subject-Test;
$message = $TextArea;
mail($to, $subject, $message,From: $from);
echo Thankyou;
}
?
[/snip]
What is happening when the
ahh, I have to correct myself
replace this: if ($_POST['TextArea']=) {
with this: if ($_POST['TextArea']==) {
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-
Original Message
From: Jochem Maas
Date: Mon 2/2/04 20:47
To: [EMAIL PROTECTED]
Subject:Re: [PHP] Help for code to 'sort list' please
refering to my previous mail: I really don't think its a good idea to
store the months as names in the DB (I
did you replace ($TextArea=) with ($TextArea==) ?
($TextArea=) will reassign $TextArea to
Pooya Eslami [EMAIL PROTECTED] 2/2/2004 3:00:32 PM
Well the problem is not that it won't get executed, its that every
thing
will be sent except the message in the textarea! subject, to and from
are
Well the problem is not that it won't get executed, its that every thing
will be sent except the message in the textarea! subject, to and from are
sent fine
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Pooya Eslami wrote:
Hi, I'm new to php and this newsletter. I have a form on my webpage and a
php file to email it to me but the contents of the text area are not emailed
to me. Can anyone help me with this?
here is the code for my html and php files:
html
headtitleTest/title/head
body
form
On Monday 02 February 2004 10:33, Mr. Austin wrote:
$buff = fopen(sample.txt, r+);
^
---+
RTFM to see what other options you can use.
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
*
, 2004 8:43 PM
Subject: Re: [PHP] Help with files
On Monday 02 February 2004 10:33, Mr. Austin wrote:
$buff = fopen(sample.txt, r+);
^
---+
RTFM to see what other options you can use.
--
Jason Wong - Gremlins Associates
Mr. Austin wrote:
Hello all,
I am trying to open a file (successful), then rewrite over the file when it is saved via a form on a website. I have used the following code, yet it simple rewrites from the file pointer, but does not clear the file before writing. Thanks for any help.
?php
$buff
Mr. Austin wrote:
I'm not entirely sure why it is that you assume I did not read the manual or
the online documentation (which is very thorough).
I'm sure Jason has made that assumption because the answer to your
question is right there in the manual...under one of the functions
you're using.
Instead of using r+, use w
This will clear the file for you :)
-Original Message-
From: Mr. Austin [mailto:[EMAIL PROTECTED]
Sent: Monday, 2 February 2004 1:51 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Help with files
I'm not entirely sure why it is that you assume I did
Hello Patrick. Where to start, where to start
Patrick wrote:
Hi,
I have an situation on my hands I have a form that I am stuck using PHP for
thanks to my friends choice of hosting company, I have no idea on how to
setup a form in PHP other than HTML or in Flash, I need some one any one
to
John Nichel wrote:
Hello Patrick. Where to start, where to start
Patrick wrote:
Hi,
I have an situation on my hands I have a form that I am stuck using
PHP for
thanks to my friends choice of hosting company, I have no idea on how to
setup a form in PHP other than HTML or in Flash, I need
Hello Patrick,
I have good news and even better news for you. The good news is that you can make all
your form-related woes disappear in less than a day. The even better news is that
everything you need to know in order to solve your problem can be found in one
convenient location:
Man, you really are a card Erik.
Fellow manual reader,
Jas
[EMAIL PROTECTED] wrote:
Hello Patrick,
I have good news and even better news for you. The good news is that you can make all
your form-related woes disappear in less than a day. The even better news is that
everything you need to
[EMAIL PROTECTED] wrote:
snip
Here's the problem. In ParseFile I call the function:
array_push($this-$includedFiles, $ifName);
Here you have it ending in an 's'
where $ifName is the name of an include file I found in the code. However,
I get an error stating the first argument must be an
From: [EMAIL PROTECTED]
class clsfTreeNode
{
//member variables
var $fName;
var $fData;
var $includedFiles;
//constructor
function clsfTreeNode( $fileName )
{
$this-$fName = $fileName;
$this-$fData = file_get_contents($this-$fName);
$this-ParseFile();
You have an extra $ sign
John W. Holmes wrote:
snip
You have an extra $ sign in your variables names.
$this-fName instead of $this-$fName
Not sure if that'll solve all your problems, but it's a start.
---John Holmes...
Oh, sure. Point out what I missed in my eval. ;)
--
By-Tor.com
It's all about the Rush
On Wed, 28 Jan 2004 [EMAIL PROTECTED] wrote:
in php you have to access a member variable (or methods) with:
$this-varname (without the $)
e.g.: $this-includedFile = array();
hope this helps
AHA! I think that's it. The comment someone sent to me (Sorry, i'm awful
with names) about
901 - 1000 of 1991 matches
Mail list logo