Second actually. Thanks for the answer Jason,
John
Raditha Dissanayake wrote:
> Hi John,
> This is the third or fourth thread on this topic that you have started.
> As jason has pointed out you need to start reading. While people in
> this list will be happy to help you overcome specific problem
Hi John,
This is the third or fourth thread on this topic that you have started.
As jason has pointed out you need to start reading. While people in
this list will be happy to help you overcome specific problems no one
has the time to code for you.
John Taylor-Johnston wrote:
Can anyone give
What is the best way to pull two fields from a mysql database and add
the two fields to an array for each record in the table
field_name user_id
I need it so iI can access the array with $key and $value
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
On Monday 02 February 2004 13:07, John Taylor-Johnston wrote:
> Can anyone give me a heads up on how to recurse for sub-directories please?
> What function can I use? I'm still kind of new at this,
The user comments in the online manual for the chapter "Directory functions"
should prove useful.
Can anyone give me a heads up on how to recurse for sub-directories please? What
function can I use?
I'm still kind of new at this,
John
> 1) set $which_one to the directory you want to search.
> 2) create a recursive funtion (many on php.net) to get all subdirectories
> under it and build an ar
If your on IIS, you need to set the session.save_path option in php.ini
file. Then make sure that IIS can actually write to the directory.
"Jeff McKeon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Pulling my hair out here.
I've got an IIS5 webserver running a php website just fine
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
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.
I
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.
$buff = fo
Hey,
Thanks for replying.
I did find an easier way, but only after going through what you sent
me...the way i found was using substr.
I do read the manual, but not the online one, I have a downloaded windows
helpfile copy, its much faster
and easier to access but one disadvantage is...it does not
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'll find my answers
elsewhere.
Thank you,
Mr. Austin
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February
On Sun, 2004-02-01 at 21:26, Richard Kurth wrote:
> each time it looks at a new record it list all the languages that that
> person speaks with a double pipe in between each language.
>
> What I need to do is find all the unique languages so I can generate a
> list of languages that do not have an
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 Integrato
Here's some skeleton code showing one way (untested, no error checking shown):
$query = 'SELECT Language FROM whatever';
$result = mysql_query($query);
$languages = array();
while ($row=mysql_fetch_object($result))
$languages = array_merge($languages
Hello Richard,
Normally the distinct calause in sql serves this purpose but it seems
that the way your DB is designed you cannot make use of it. The bad news
is that you might have to read all the rows split them by the pipe
symbol and insert them into a list manually. ouch!
Richard Kurth w
On Monday 02 February 2004 10:26, Richard Kurth wrote:
> What I need to do is find all the unique languages so I can generate a
> list of languages that do not have any repeats in it. so the list above
> would be English,Portuguese,Finnish,Japanese,German,Spanish in any
> order
explode() and arr
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.
I am pulling data from a database that list the Language a person
speaks. It is in a format like this.
English||Spanish
English
English||Portuguese||Finnish
English||Japanese||German
English
English
German
each time it looks at a new record it list all the languages that that
person speaks with
On Monday 02 February 2004 04:01, Ryan A wrote:
> GREAT! The last time I went for the millions, my turn is over...so whose
> turn is it now?
Please do not respond to spam -- and trim your posts!
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* W
On Monday 02 February 2004 08:03, Phillip Jackson wrote:
> i don't use register_globals - i have a function that massages data that
> mimics register globals' behaivior via dynamically named variables.
>
> which one should i set it to - E_NOTICE?
error_reporting = E_ALL
display_errors = Off
log_er
S Gex wrote:
I'm trying to install PHP on my system. I know absolutely nothing about it.
I installed MySQL and PHP, (PHP said that it configured IIS) When I attempt
to write a PHP statement and an HTML statement, the HTML statement runs, but
the PHP does not...Any suggestions?
If you embed the php
Liam wrote:
I've been trying to make this error logger for hours now,
I get my webserver to forward all errors to error.php?message=404 etc..
The source can be found here
http://the-bronze.me.uk/ID/error.txt
Now Im at my wits end, I want all errors that come internaly eg from the-bronze.me.uk to
Robby Russell wrote:
Russell Shaw wrote:
Hi,
I have php code embedded in html, that is read by apache.
Is nested php code allowable such as:
\" ?>";
?>
...
...
Not sure what you're trying to do there.
I am generating dozens of rows of a table with entries from
a database. Each row ha
Once on every page... I include one file once, on each page, and in that one
I have session_start()...
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Phillip Jackson" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> That's great advice... the only questions i h
php-general Digest 2 Feb 2004 01:12:52 - Issue 2565
Topics (messages 176501 through 176538):
HTTP request parameters do not populate variables
176501 by: Slava Zinkovski
176502 by: DvDmanDT
176503 by: BAO RuiXian
176505 by: Slava Zinkovski
176506 by: D
That's great advice... the only questions i have then:
I only need to call session_start ONCE in my entire application per instance
of a session? when i published the application months ago to my production
server i had errors on every page notifying me that a session had not been
started so i cou
>Are Problems of colisions with a script writing in a file possible?
Absolutely.
>For exemple for a PHP script reading a file, and rewriting it with
>modifications, when it is called a lot of times simultaneously, are
>conflicts possible? (over-writing the modifications) or does each session
>of
On Monday, February 2, 2004, at 10:14 AM, Phillip Jackson wrote:
these errors are foreign to me as i have combed my code 100's of times
before i deployed my app online 3 months ago. do i NEED this
newer,stricter
version or can i install a deprecated one?
It's not newer and stricter, and it's not
Decapode Azur wrote:
What is the best one for large files? (something about 8Mo)
Parse with SAX, use printf to produce output.
Ok, it seems this method is defenitly a good one.
I was wondering if it was a good one too, to read the XML file with fgets,
and using ereg fonctions to make t
On Monday, February 2, 2004, at 10:04 AM, Ryan A wrote:
which gives me two 14 numberic characters strings like:
20040202091212
20040201070500
How do I compare it to display something like this to the visitor:
You have $xdays day/s, $xhours hours and $xmins minutes before your
account
expires
Be
i don't use register_globals - i have a function that massages data that
mimics register globals' behaivior via dynamically named variables.
which one should i set it to - E_NOTICE?
~Phillip Jackson
"Dvdmandt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Yes..
> error_reporting
Is it possible to pull that dates out as unix time stamps?
Then all you need to do is subtract one from the other, convert the results
to days/hours/minutes and Bob's your uncle.
If not, then you'll need to do some string manipulation to get the string
into a format that strtotime() understands a
Yes..
error_reporting=E_ALL & ~E_NOTICE
in php.ini is most likely what your server uses.. :p
Also, register_globals might give you problems.. :p
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Phillip Jackson" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hi
Hi all,
It seems that the version on my local apache installation is more strict
than the version on my production server. How can i counteract this without
potentially having to upgrade 300+ pages in my entire app? is there a
setting in php.ini that i could locally kill some of this debugging inf
Hi,
Am a bit confused as to how to do this, I have some dates in the database as
"expire_login timestamp(14)".
I am entering dates 1 day,11 hours,59 minutes in advance.
The user can sign in anytime and it should display how many days, hours and
mins before his account expires...
I am selecting the
I'm trying to install PHP on my system. I know absolutely nothing about it.
I installed MySQL and PHP, (PHP said that it configured IIS) When I attempt
to write a PHP statement and an HTML statement, the HTML statement runs, but
the PHP does not...Any suggestions?
Thank You
--
PHP General Mailin
Ooo! Ooo! Me, Me! Can I be scammed this time? :/
> -Original Message-
> From: Ryan A [mailto:[EMAIL PROTECTED]
> Sent: Monday, 2 February 2004 7:02 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] VERY URGENT.
>
>
> GREAT! The last time I went for the millions, my turn is
> over...so
Hello,
Are Problems of colisions with a script writing in a file possible?
For exemple for a PHP script reading a file, and rewriting it with
modifications, when it is called a lot of times simultaneously, are conflicts
possible? (over-writing the modifications)
or does each session of this scri
Can anyone fathom out why I can't get the setcookie function to delete
a cookie?
I'm calling it with the same arguments as I used to set it originally,
but with a null string value & an expiry time in the past but the
cookie persistently remains in the browser.
This how I set it:
setcookie ("
The php installer doesn't do everything for a windows installation.
You'll need to edit php.ini & httpd.config for apache, as described in
the installation guide.
Raditha Dissanayake wrote:
Yes sounds like you have not read the installation guide.
Mark Mark wrote:
I am running Apache 1.3.29 a
I'm beginning to learn PHP to rebuild my web site in such a way that I
can update it more easily (...and add some other dynamic features ...and
utilize a database). I like the idea of a simple directory structure and
it's a sensible way to organize my various projects and topics. So what
I want
GREAT! The last time I went for the millions, my turn is over...so whose
turn is it now?
Cheers,
-Ryan
> Mr JAMES OKORO
> Bank Of The North,
> Victoria Island Branch,
> Lagos, Nigeria.
> ATTN: MD/CEO
> I am Mr JAMES OKORO , Branch Manager with Bank of
> the North, Victoria Island Branch, Lagos,
Decapode Azur wrote:
What is the best one for large files? (something about 8Mo)
Parse with SAX, use printf to produce output.
Ok, it seems this method is defenitly a good one.
I was wondering if it was a good one too, to read the XML file with fgets,
and using ereg fonctions to make the modifica
Where or what recursive function would I need to get all sub-directories?
If not, can someone suggest another script?
Much appreciated,
John Taylor-Johnston
-
Université de Sherbrooke
http://compcanlit.ca/
Mike Brum wrot
The variable is infact created, but rather than being $id
the variable will be $_GET['id']
because it is part of the $_GET array,
so if you had output2.php?name=fred
the variable to acsses the word fred would be $_GET['name']
Hope that helps
Liam
- Original Message -
From: "Ryan Francis
Hi,
I am new to php and trying to learn it for some university work. The
problem I am having is this:
I have read on a webmonkey tutorial that when you call a php file and
name-value querystrings are automatically created into variables in your
script.
I have a example url : http://localhost/o
I think you are looking for the function eval()... Or
preg_replace('!e!e',$phpcode,'e');
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Russell Shaw" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hi,
> I have php code embedded in html, that is read by apache
Mr JAMES OKORO
Bank Of The North,
Victoria Island Branch,
Lagos, Nigeria.
ATTN: MD/CEO
I am Mr JAMES OKORO , Branch Manager with Bank of
the North, Victoria Island Branch, Lagos, Nigeria.
I have an urgent and very profitable business
proposition for you that should be handled with
extreme confide
Russell Shaw wrote:
Hi,
I have php code embedded in html, that is read by apache.
Is nested php code allowable such as:
\" ?>";
?>
...
...
Not sure what you're trying to do there.
You can do this:
hello world!\n";
?>
--
Robby Russell, | Sr. Administrator / Lead Progr
I've been trying to make this error logger for hours now,
I get my webserver to forward all errors to error.php?message=404 etc..
The source can be found here
http://the-bronze.me.uk/ID/error.txt
Now Im at my wits end, I want all errors that come internaly eg from the-bronze.me.uk
to be put in
OK! Thanks!
Dvdmandt wrote:
Yes, I know what you mean.. :)
If you use windows (or some other msn client), feel free to add me on MSN
and I'll be glad to help you out if you get problems.. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Russell Shaw wrote:
Hi,
I have php code embedded in html, that is read by apache.
Is nested php code allowable such as:
\" ?>";
?>
...
...
Yes.
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
Yes, I know what you mean.. :)
If you use windows (or some other msn client), feel free to add me on MSN
and I'll be glad to help you out if you get problems.. :)
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Slava Zinkovski" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMA
> >What is the best one for large files? (something about 8Mo)
>
> Parse with SAX, use printf to produce output.
Ok, it seems this method is defenitly a good one.
I was wondering if it was a good one too, to read the XML file with fgets,
and using ereg fonctions to make the modifications?
--
Th
Hi,
I have php code embedded in html, that is read by apache.
Is nested php code allowable such as:
\" ?>";
?>
...
...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I will follow, sure. The problem is that until last week i knew nothing
about PHP (I used to practice java). And in a few weeks i have to be
ready with a PHP application and possibly it should utilize fusebox
framework. There are so many stuff to get to know in short time that
sometimes it is e
Decapode Azur wrote:
hello!
Hi there.
What is the best solution to modify an XML file?
depends
(Modification such as change the content of a tag or of an attribute)
I think there would be several methods.
you said it.
What is the best one for small files? (something about 20Ko)
DOM (if y
lol, I'm not upset.. But follow this group a month and you'll understand..
I've been following 8 months or so... Just about everyone asks... Many ppl
on php.windows as well.. Ppl in forums.. I'm thinking about suggesting the
solution to this problem should be posted on the mailing-lists.php page..
Many thanks, man. You are very helpful!
I did try searching this news group. Nothing found.
Will try to do my best next time to not upset you.
Anyway, thanks for help.
Dvdmandt wrote:
And once again, someone didn't search the archives before posting like you
are told to do on the mailing list page
hello!
What is the best solution to modify an XML file?
(Modification such as change the content of a tag or of an attribute)
I think there would be several methods.
What is the best one for small files? (something about 20Ko)
What is the best one for large files? (something about 8Mo)
What shoul
Slava Zinkovski wrote:
[snip...]
I run it with URL like this http://localhost/myApp/test.php?param=qqq:
I expect it to print 'param=qqq' string, though it does not! :(((
Here is the output:
Array ( [param] => qqq )
Notice: Undefined variable: param in d:\phptest\test.php on line 4
pa
And once again, someone didn't search the archives before posting like you
are told to do on the mailing list page (this question is answered several
times daily)..
The bug is called register_globals being on on you production server and off
onn you development server.. Learn not to use register g
Hi, everybody!
I've just installed PHP on my workstation and it seems as I have some
trouble. The simplest code does not work! Here it is:
I run it with URL like this http://localhost/myApp/test.php?param=qqq:
I expect it to print 'param=qqq' string, though it does not! :(((
Here is the output:
php-general Digest 1 Feb 2004 13:10:08 - Issue 2564
Topics (messages 176469 through 176500):
Perl script using Inline-octave doesn't run.
176469 by: Paulo Lagrotta
Re: formated text after Submit in MySQL/PHP
176470 by: Burhan Khalid
176478 by: Matt Hedges
176
On 30-Jan-2004 Dan Joseph wrote:
> Hi Everyone,
>
> Hoping someone can shed a light on this. I have to send a "file
> separator"
> in a string that I piece together to a remote system. I've been told
> this
> is x'1C' ASCII or x'22' HEX. I have no idea what to really send.
> I've
> trie
65 matches
Mail list logo