i would like to better understand pear. is there some ver basic doc that
you know of?
---
Jason Wydro
voice: 727 489 2684
fax: 727 489 7422
email: [EMAIL PROTECTED]
web: http://www.jasonwydro.com/ www.jasonwydro.com
All right.
I know that it exactly does what it is, and can't be really caught directly
since this happens before the script gets control.
After display_errors = off, I can pick it up from error logs.
Thanks all.
--
: M. Sokolewicz [mailto:[EMAIL PROTECTED]
: 20041217 14:48
: [EMAIL
Hi there!
Can someone explain the major difference between fgets and fopen? Which is
the best together with plain textfiles? and why?
eof and feof. What's the difF? *don't get it*
When using fget. Is it something special you should think when taking care
of line-breaks? (/n, /r/n ...)
/G
--
fgets uses the resource created by fopen.
Read the manual:
http://it.php.net/fopen
http://it.php.net/fgets
look at the example:
?php
$handle = fopen(/tmp/inputfile.txt, r);
while (!feof($handle)) {
$buffer = fgets($handle, 4096);
echo $buffer;
}
fclose($handle);
?
Ian
On Fri,
Hello all,
Has anyone had an experience with storing sessions in mysql (or sqlite)?
If so, what if any are the performance benefits? Obviously, there
would have to be an extra db query per page... but would that be faster
then opening a text file?
Also, I was trying to post to the php news
Hi, I have a form which when submitted adds a record to a DB. However if
the user clicks back it resubmits the same record.
I have tried using cache control to no avail :
header (Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header (Last-Modified: . gmdate(D, d M Y H:i:s). GMT);
header
Jason Morehouse wrote:
Hello all,
Has anyone had an experience with storing sessions in mysql (or
sqlite)? If so, what if any are the performance benefits? Obviously,
there would have to be an extra db query per page... but would that be
faster then opening a text file?
Speed depends on
Hi...
I am looking for a FREE PHP IDE that uses syntax highlighting and
code completion amongst other features...
Do any of you have any recommendations... again I am looking for FREE
(not much budget for me)?
I use BOTH Linux and Windows
Thanks
Gary
--
PHP General Mailing List
GH wrote:
Hi...
I am looking for a FREE PHP IDE that uses syntax highlighting and
code completion amongst other features...
Do any of you have any recommendations... again I am looking for FREE
(not much budget for me)?
I use BOTH Linux and Windows
Thanks
Gary
Yeah, search the archives and/or
On Fri, Dec 17, 2004 at 08:20:36 -0500, GH wrote:
Hi...
I am looking for a FREE PHP IDE that uses syntax highlighting and
code completion amongst other features...
Do any of you have any recommendations... again I am looking for FREE
(not much budget for me)?
I use BOTH Linux and
Mat Harris wrote:
On Fri, Dec 17, 2004 at 08:20:36 -0500, GH wrote:
Hi...
I am looking for a FREE PHP IDE that uses syntax highlighting and
code completion amongst other features...
Do any of you have any recommendations... again I am looking for FREE
(not much budget for me)?
I use BOTH Linux
Would something like this work
If($_POST['submit']){//add error checking for whatever critical fields
echo Thank you for filling out my form.\n;
} else {
//display form with a input type=submit name=submit value=Save
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi, I'm trying to make a little script to edit arrays.
For example, i have an array file named config.php, and it holds this:
?php
$config = array(
'email' = 'E-mail',
'meta_author' = 'Author',
?
I wish to edit this file, through another file, named edit.php, or
admin.php, i
Gerard Samuel wrote:
Im talking about file locking during deleting, and moving
files.
Is it possible to perform file locking for these file operations?
If so, can you provide psuedo code.
Thanks
Sure... just acquire the exclusive lock like you would for writing to a
file, but do the delete / move
Gerard Samuel wrote:
Im talking about file locking during deleting, and moving
files.
Is it possible to perform file locking for these file operations?
Yes, have your scripts attempt to lock a separate lock file before performing
deleting or moving operations.
--
PHP General Mailing List
I assume by edit you mean change the value to something completely new.
If you are having the user input the new value you 1) must make sure
it is valid input and 2)move it into the array value (maybe set the
array as a session variable so it crosses over to the next page instead
of being re
All I know of is the PEAR documentation
(http://pear.php.net/manual/en/introduction.php) and a couple of books
on the market. I have Essential PHP Tools... by David Sklar
Hi David --
When I do that, it creates a problem because it displays a at the bottom
of my screen. It is making me crazy! I think it has to do with all the
quotes in the HTML, but I don't know how to deal with it. I have listed the
code below. Do you have any ideas? Thank you for you help.
http://www.php.net/support.php -- and follow the links under user groups
Respectfully,
Ligaya Turmelle
---
Life is a game... so have fun.
---
www.PHPCommunity.org
Open Source, Open Community
Visit for more information or to join the movement
Josh wrote:
Any computer groups or resources for
Consider the following:
function test() {
static $i = 0;
$i++;
$retval = ( $i = 10 ) ? $i : '';
return $retval;
}
while( $bob = test()) {
echo $bob . 'br';
}
You would expect the while loop to go on forever just looking
at the above code. However, what's
You need to http://php.net/urlencode anything you echo into a HIDDEN INPUT
so that the HTML tags in it don't get used by the browser display
rendering engine.
Monique Verrier wrote:
Hi David --
When I do that, it creates a problem because it displays a at the
bottom
of my screen. It is
S.D.Price wrote:
Hi, I have a form which when submitted adds a record to a DB. However if
the user clicks back it resubmits the same record.
When you send out the FORM the first time, create a random unique value:
$token = md5(uniqid());
Store that token in your database in a table.
Include
Chris Boget wrote:
Consider the following:
function test() {
static $i = 0;
$i++;
$retval = ( $i = 10 ) ? $i : '';
return $retval;
}
while( $bob = test()) {
echo $bob . 'br';
}
while(false !== ($bob = test())) {
echo $bob . 'br';
}
You would expect the while
Chris Boget wrote:
function test() {
static $i = 0;
$i++;
$retval = ( $i = 10 ) ? $i : '';
return $retval;
}
while( $bob = test()) {
echo $bob . 'br';
}
You would expect the while loop to go on forever just looking
at the above code.
I wouldn't,
Hi! I'm now stuck on how to verify the file after the FTP transfer. I'm
writing a script that do the files and database backup and verifying them.
I'm using the Unix machine. Since I'm using the tar utility via the shell
environment in PHP, like PassThru() or Exec(). I'm using the tar utility
On Saturday 18 December 2004 00:02, Chris Boget wrote:
Is there any way that I can force this not to happen? That the
while loop resolves as FALSE only when the function actually
returns a (boolean) FALSE value?
Make the test more explicit:
while (TRUE === ($bob = test())) { ... }
--
Thanks this was the best solution I used this code as part of form
validation.
// query to check record has not already been added by comparing
submitted title with title of last record
$query_gnewsid_unique = SELECT MAX(newsid) AS newsid FROM
tblnews;
// execute query
You would expect the while loop to go on forever just looking
at the above code. However, what's happening is that when the
empty string is getting returned due to $i being 10, the while
loop is resolving FALSE when $bob is set to the value of the
empty string.
Is there any way that I can
So I populated a mySQL database but forgot to create random ids for each
record.
I have used phpmyadmin to add a varchar(15) column named id at the end
of the database for each record, but now am wondering if there is an easy
way to get random ID's into each of these...
The column values for
Hi,
Has anyone else had any success with this?
MySQL-client-4.1.7-0
php 5.0.3
/usr/local/imap-2004a/lib/libc-client.a(misc.o)(.text+0x8a4): In function
`hash_reset':
/build/imap-2004a/c-client/misc.c:278: multiple definition of `hash_reset'
[EMAIL PROTECTED] wrote:
Hi there!
Can someone explain the major difference between fgets and fopen? Which is
the best together with plain textfiles? and why?
fgets can be handy to read a large file one LINE at a time.
This is most useful in files that are line-based, such as SQL data dumps,
Josh wrote:
Any computer groups or resources for learning PHP in the Miami area? I am
new here ... trying to learn PHP... would like to meet other people doing
the same.
I can't believe you tried to Google and didn't find it... :-)
http://phpusergroups.org/groups.phtml?id=311menu=groups
--
Michael Sims wrote:
Yes, have your scripts attempt to lock a separate lock file before performing
deleting or moving operations.
Jason Barnett wrote:
Sure... just acquire the exclusive lock like you would for writing to
a file, but do the delete / move instead. Your apps must actually try
to
Is there any interest in a PHP mailing list for User Groups?
I'm thinking topics along the lines of:
Forming a User Group
Promoting a User Group
TipsTricks for increasing attendance and the quality of meetings
Perhaps sharing/swapping resources, recommending speakers.
Posts by experts who are
On Fri, 2004-12-17 at 11:34, Richard Lynch wrote:
Granted, this assumes you've got a good clean working SQL-based session
setup in the first place, which is several days, perhaps even weeks of
work for the beginner, before they really understand all the bits and
pieces and ins and outs of the
Hello Scott,
Friday, December 17, 2004, 4:26:46 PM, you wrote:
SF As for the FTP, I decided to do the Exec() for transfering and
SF verifying. Now the only thing left is to verify it. I welcome your
SF suggestion and thought on this...
Perform an ls/dir on the FTP server once it has completed -
php wrote:
A phpinfo() command shows that I have php4.3.10 with pspell enabled.
However, when I run the command pspell_check($pspell_link, testt) in my
web scripts, the page appears to header redirect on itself indefinitely.
Try to use wget or the MS-DOS equivalent to find out exactly what the
Malcolm Mill wrote:
Create a web page that allows me to create files with basic formating
tags in them (i.e for html htmlbody./body/html: for shell
#!/usr/bin/php: for php ?php.?).
You can use PHP to http://php.net/echo out any kind of content you want,
including HTML if you use
Tomas Tintera wrote:
Thanks for your answers (you probably don't understand me).
I am looking for some construct (or statement or function) which allows
to do this:
?php (True==False) or (construct_i_am_looking_for(unset($a))); ?
Note that the unset() has no return value (and so it can't
Steve Marquez wrote:
I have uploaded some pictures and thumbnails using a PHP form into a
particular directory. I would like to be able to select the name of the
picture and then chose to delete that picture and its thumbnail from the
server using another form.
The name of the picture is in
Yao, Minghua wrote:
Yes. I did modify the original since I need to send data to a program
which takes only form-data.
content-disposition: came from RFC 2388. I don't think the program can
take application/x-www-form-urlencoded content. Further help needed.
Try it the old way -- I suspect
Jason Morehouse wrote:
Has anyone had an experience with storing sessions in mysql (or sqlite)?
Yes, in MySQL.
If so, what if any are the performance benefits?
This depends on *SO* many factors...
Is your MySQL database pretty small?
Is your site heavy traffic?
Are most of your sessions
On Saturday 18 December 2004 00:39, Russell P Jones wrote:
I have used phpmyadmin to add a varchar(15) column named id at the end
of the database for each record, but now am wondering if there is an easy
way to get random ID's into each of these...
Why? What are these random ID's used for?
Russell P Jones wrote:
So I populated a mySQL database but forgot to create random ids for each
record.
I have used phpmyadmin to add a varchar(15) column named id at the end
of the database for each record, but now am wondering if there is an easy
way to get random ID's into each of these...
The
Greg Donald wrote:
On Thu, 16 Dec 2004 12:27:27 -0700, Vail, Warren [EMAIL PROTECTED]
wrote:
I believe that is the nature of GIF images, I seem to recall they were
very
compact but limited to a maximum of 16 colors (or 32 or some number like
that[maybe 64]), fewer colors that JPEG. Anyone
Juan Nin wrote:
I'm adding text to images using the native gd in PHP 4.3.9
I have no problems with jpg images, but with gif ones, the colour of
the text added to the image always results a dark grey
The image itself and text are fine, but not the colour, which should be
white..
Has anyone
Chris Boget wrote:
Consider the following:
function test() {
static $i = 0;
$i++;
$retval = ( $i = 10 ) ? $i : '';
return $retval;
}
while( $bob = test()) {
echo $bob . 'br';
}
You would expect the while loop to go on forever just looking
at the above
Robert Cummings wrote:
On Fri, 2004-12-17 at 11:34, Richard Lynch wrote:
Granted, this assumes you've got a good clean working SQL-based session
setup in the first place, which is several days, perhaps even weeks of
work for the beginner, before they really understand all the bits and
--- Richard Lynch [EMAIL PROTECTED] wrote:
Is there any interest in a PHP mailing list for User Groups?
Yep. :-)
http://lists.nyphp.org/mailman/listinfo/phpm
That list consists of several user group leaders, company representatives
(mainly book and magazine publishers), and other notable
Thanks for the help already. I am still struggling. I didn't have any luck
with urlencode(), but I used htmlentities() and the variable did get passed
as a section of HTML code. When I sent the mail, however, it displayed as
text within the e-mail message and not as a table. I was using these
Scott Fletcher wrote:
Hi! I'm now stuck on how to verify the file after the FTP transfer. I'm
writing a script that do the files and database backup and verifying them.
I'm using the Unix machine. Since I'm using the tar utility via the shell
environment in PHP, like PassThru() or Exec().
if you don't mind it being an int - try something like...
ALTER TABLE table
ADD ID INT NOT NULL INTEGER UNIQUE AUTO_INCREMENT,
ADD PRIMARY KEY (ID);
Reference:
http://dev.mysql.com/doc/mysql/en/ALTER_TABLE.html
Respectfully,
Ligaya Turmelle
---
Life is a game... so have fun.
---
I'm sure this is easy and I'll feel silly when I see how it's done,
but, my mnd is a blank,
this structure prints out a table with a new row for each item
table
?
While ( $results = mysql_fetch_array($pointer)) {
print trtd $results[1] /td/tr ;
}
?
http://www.meetup.com is a website that has been around a couple of years at
least, and provides lots of organization tips for groups interested in most
subject and yes there is a whole series of them oriented around PHP, and I
believe another around MySQL. Promote, promote, promote, seems to be
I would like to know what this problem is.
PHP has encountered an Access Violation at 01650AFD
Thank You
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thank you for the comments. I've run my script command line and found the
following:
Unhandled Error: C:\Aspell\dict/en-only.rws: The file
C:\Aspell\data/iso8859-1.
dat is not in the proper format.
abnormal program termination
It looks like the directory aspell is looking for is being
Monique Verrier wrote:
Thanks for the help already. I am still struggling. I didn't have any
luck
with urlencode(), but I used htmlentities() and the variable did get
passed
as a section of HTML code. When I sent the mail, however, it displayed as
text within the e-mail message and not as
Vail, Warren wrote:
http://www.meetup.com is a website that has been around a couple of years
at
least, and provides lots of organization tips for groups interested in
most
subject and yes there is a whole series of them oriented around PHP, and I
believe another around MySQL. Promote,
I would like to know what this mean`s.
PHP has encountered an Access Violation at 01650AFD
Thank You
Mike harrell
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry for the lame question... but I prefer to read and reply to
messages via the news server. However, I can't seem to post to
news.php.net. I'm using thunderbird, and have tried a few different
outgoing servers, including news.php.net. Is the news server read only?
I thought for sure I
On Fri, 17 Dec 2004 09:57:56 -0800 (PST), Richard Lynch [EMAIL PROTECTED]
wrote:
Yeah, a beginner trying to write an OOP MySQL session based system would
take MONTHS, and still get it all wrong with nasty snarled code.
Months? Come on.. it's just six functions and a call to
[snip]
this structure prints out a table with a new row for each item
table
?
While ( $results = mysql_fetch_array($pointer)) {
print trtd $results[1] /td/tr ;
}
?
/table
what I want to do is print out a table 4 columns wide and however many
rows
high needed to run through the data
HOW
Jason Morehouse wrote:
Sorry for the lame question... but I prefer to read and reply to
messages via the news server. However, I can't seem to post to
news.php.net. I'm using thunderbird, and have tried a few different
outgoing servers, including news.php.net. Is the news server read only?
Thank you for your reply. I tried the original code. It worked well. But the
site I am trying to send the data to only takes form-data. That is why I
modified the code. I tried $name= and urlencode. It didn't help.
-Minghua
-Original Message-
From: Richard Lynch [mailto:[EMAIL
Jason Morehouse wrote:
Sorry for the lame question... but I prefer to read and reply to
messages via the news server. However, I can't seem to post to
news.php.net. I'm using thunderbird, and have tried a few different
outgoing servers, including news.php.net. Is the news server read only?
How about this -
Tell us the OS, version of PHP, the portion of the code it's dying on
(enable some logfile writing if you don't know) and any other *useful*
information and we might be able to help you.
Did you do any Google searching? I searched for 01650AFD and came up with
a number of
Hi,
Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52
Recent PHP installation. I created a phpinfo() page. When I display it in
my browser, it says:
Configuration File (php.ini) Path/etc
Yet when I log on to my server and look for it in /etc, it is not there.
How can I find it???
[snip]
I would like to know what this mean`s.
PHP has encountered an Access Violation at 01650AFD
Thank You
Mike harrell
[/snip]
If you ask the question over and over no one will answer you. You must
be patient. Have you searched for the answer on the web?
An access violation
[snip]
Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52
Recent PHP installation. I created a phpinfo() page. When I display it
in
my browser, it says:
Configuration File (php.ini) Path/etc
Yet when I log on to my server and look for it in /etc, it is not there.
How can I find it???
Hi,
Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52
Recent PHP installation. I created a phpinfo() page. When I display it
in
my browser, it says:
Configuration File (php.ini) Path/etc
Yet when I log on to my server and look for it in /etc, it is not there.
How can I find
Don wrote:
Hi,
Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52
Recent PHP installation. I created a phpinfo() page. When I display it in
my browser, it says:
Configuration File (php.ini) Path/etc
Yet when I log on to my server and look for it in /etc, it is not there.
How can I find
Hi All,
I just upgraded to 4.3.10 and have found a number of scripts have broken
including:
phpMyAdmin-2.6.1-rc1
squirrelmail-1.4.3a + the xss patch
Both of these worked just fine with php 4.3.9 with the switch to 4.3.10
being the only change that has been made.
In addition pdflib functions
Don wrote:
Hi,
Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52
Recent PHP installation. I created a phpinfo() page. When I display it in
my browser, it says:
Configuration File (php.ini) Path/etc
Yet when I log on to my server and look for it in /etc, it is not there.
How can I find
Richard Lynch wrote:
Perhaps something like this:
function my_unset($var){
global $$var;
$wasset = isset($$var);
unset($$var);
return $wasset;
}
my_unset(a); //unset($a);
Or, in a more general way:
function forcereturn ($php){
return eval($php);
}
Damned if I understand *why* you want
Ben wrote:
Hi All,
I just upgraded to 4.3.10 and have found a number of scripts have broken
including:
phpMyAdmin-2.6.1-rc1
squirrelmail-1.4.3a + the xss patch
I know, bad form replying to one's own message...
Reverting back to 4.3.9 with the same build configuration options used
in 4.3.10 has
Hi I am having an issue with I think it is the scope of variables:
I have a file that I am including which has the following
?php
// +--
// | PHP Source
//
Ben wrote:
Reverting back to 4.3.9 with the same build configuration options used
in 4.3.10 has fixed the problems with the various scripts.
Do you use Zend Optimizer?
If so you should upgrade to the latest version:
http://bugs.php.net/bug.php?id=31134
http://bugs.php.net/bug.php?id=31108
I
Anybody out there who know the PHP script that can use to detect an IP address
of a PC?
If u dont know, maybe some sites address which have related with this topic,
might be point me little.
Many your help very appreciate.
Thanks so much for ur respone
In my main file, I am attempting to from with in a function
call $language['project_name'] and i am failing... can you
offer any advice?
Are there any specific reasons that you need to set the variable to global
scope?
It's typically recommended that unless you need to, to pass the
hmmm, perhaps you are not clear about how IP addresses are used (assigned
and reassigned), if your interest is the ip address of a PC connected to
your website or the ip of the website, probably depends on your web server,
for my apache server;
$_SERVER[SERVER_ADDR] (apache server IP address, at
print table\n;
print tr\n;
$counter = 0;
while ($result = mysql_fetch_array($pointer)) {
$counter++;
if ($counter % 4 === 0) {
print td.$result[1]./td\n;
print /tr\n;
print tr\n;
} else {
print td.$result[1]./td\n;
}
}
// add blank cells if number of
use phpinfo() function
and look for Configuration File (php.ini) Path. for example of php
5.0x, it is normally /etc/php.5.ini
good luck.
Jay Blanchard wrote:
[snip]
Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52
Recent PHP installation. I created a phpinfo() page. When I display it
in
my
On Fri, Dec 17, 2004 at 06:47:23PM -0600, Michael Sims wrote:
Ben wrote:
Reverting back to 4.3.9 with the same build configuration options used
in 4.3.10 has fixed the problems with the various scripts.
Do you use Zend Optimizer?
If so you should upgrade to the latest version:
83 matches
Mail list logo