I've searched the archives on this and, while I have turned up some
tips, they don't seem to solve my problem.
I an building a website for an indigenous organisation where jpg images
are uploaded, resized to a standard format, and thumbnails also
generated at the same time (so that is two resizes
* Thus wrote Ninti Systems ([EMAIL PROTECTED]):
I read somewhere that memory limitations could cause this, but still, it
only happens sometimes and not others. We are on a crowded shared server
I think.
A quick sample of sizes of images does back this thoery up. Most
pictures I sampled, the
Hi,
Make sure the charset of your document matches the charset sent by the
server - If you tell the browser the charset is A, and use characters from
charset B, you will get the problem observed.
The charset can be sent from Apache, PHP and the actual charset is set in
the document.
It's a pain
Hi,
I have a little problem with a script I am trying to make.
The main problem is that when I draw something on a translucent png
created with gd, it will still take the color which was set as
transparent color.
For a demo look at
http://www.cranberries-fan.com/images/transparent/test.php
The
hello folks,
I'm having problems setting up ez publish.
do we have an ez publish guru here?
I'm in need of help with how to implement this system.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hello folks,
I'm having problems setting up ez publish.
do we have an ez publish guru here?
I'm in need of help with how to implement this system.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
We heard you the first two times. Please don't re-post. If there's a
ez guru here, they'll respond in their own time.
Of course you could try doing some work yourself first, perhaps
visiting http://ez.no/community/forum -- a forum dedicated purely to
EZ, in which I'm sure you'll find a
thanks mate
I have done my homework first of course.
I was posting to find some one who is an expert.
php-general is a newsgroup that covers all issues related to php.
that's my understanding.
if i am wrong, then i'm sorry.
thanks anyway.
Justin French [EMAIL PROTECTED]
news:[EMAIL
On Friday 23 April 2004 12:21, Ryan A wrote:
But then am getting a 500 error...
What does the webserver log say?
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design Hosting * Internet Intranet Applications Development *
Ryan A wrote:
Hey John,
Thanks for replying.
I cant use strip slashes because there are a number of scripts doing DB
things and searching for all of them and modifying things just for one
client can be a royal PITA.
I tried to use php_flag magic_quotes_gpc off in the *existing* .htaccess
file like
Hi,
I am accepting some SQL via a textarea on a webform and then saving that SQL
in the database for later use
everythings working fine on our test servers but for some reason on our
clients servers its screwing up.
For example this insert statement:
insert into test_ing
Ryan A wrote:
For example this insert statement:
insert into test_ing values('a','a','a','a')
becomes:
insert into test_ing values (\'a\',\'a\',\'a\',\'a\')
I immediatly suspected magic_quotes but checked (via phpinfo) and see that
magic_quotes are off, as a safety precaution I even have
Hey John,
Thanks for replying.
I cant use strip slashes because there are a number of scripts doing DB
things and searching for all of them and modifying things just for one
client can be a royal PITA.
I tried to use php_flag magic_quotes_gpc off in the *existing* .htaccess
file like so:
What kinds of phrases are you looking for? If you want to know whether
an *exact* phrase is going to appear in a block of text, just use
strstr() or strpos(), they tend to be faster than regexes anyway.
http://www.php.net/strpos
function valid_phrase ($phrase, $search = 'text to search for')
Hi all
Can anyone tell me what would cause intermittent problems downloading files
using ftp_get.
I have a php file that regularly connects to a number of servers in turn
using php's (ftp functions) and downloads files using ftp_get(...). This
usually works but often it just fails to download a
Maybe the max number of connections to the FTP server is reached? My
provider allows only up to 3 FTP connections at the same time which causes
similar problems to my scripts :-)
-- red
[...]
Can anyone tell me what would cause intermittent problems downloading files
using ftp_get.
I have a
Keith wrote:
Hi all
Can anyone tell me what would cause intermittent problems downloading files
using ftp_get.
I have a php file that regularly connects to a number of servers in turn
using php's (ftp functions) and downloads files using ftp_get(...). This
usually works but often it just fails
Hi Red
Thanks, I had wondered about connection limitations, but frankly I'd be
surprised if that were the problem.
But as we are on this subject, I use proftpd and the MaxClients value is not
set yet. As I understand it I can set MaxClients to 'none' which removes any
maximum restriction. But what
Well the servers do indeed have firewalls! But why would this be
intermittent and how can I get around this WITHOUT removing the firewall :)
Thanks
K
Raditha Dissanayake [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Keith wrote:
Hi all
Can anyone tell me what would cause
Keith wrote:
Well the servers do indeed have firewalls! But why would this be
intermittent and how can I get around this WITHOUT removing the firewall :)
FTP operates on two ports, the first is for the control connection and
it's on 21, the second one is for data connections and it's chosen
* Thus wrote Keith ([EMAIL PROTECTED]):
Well the servers do indeed have firewalls! But why would this be
intermittent and how can I get around this WITHOUT removing the firewall :)
ftp servers behind firwalls tend to require PASV to be on. check
out http://php.net/ftp_pasv
Curt
--
I used to
But that's just it , I am using ftp_pasv($idconn, true) and yes I have
placed it after the connection and login statement.
Any other ideas?
K
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Thus wrote Keith ([EMAIL PROTECTED]):
Well the servers do indeed have
Keith wrote:
But that's just it , I am using ftp_pasv($idconn, true) and yes I have
placed it after the connection and login statement.
refer my other post about random ports.
--
Raditha Dissanayake.
-
http://www.radinks.com/print/upload.php
SFTP,
Luis Lebron wrote:
I have a development box that uses our company's Exchange server as an smtp
host. All of a sudden, the php mail function has stopped working.
I can, however, send a message using mutt.
Here's the output of the maillog:
Apr 12 10:38:51 localhost sendmail[11879]:
Hello,
On 04/12/2004 12:48 PM, Luis Lebron wrote:
I have a development box that uses our company's Exchange server as an smtp
host. All of a sudden, the php mail function has stopped working.
I can, however, send a message using mutt.
Here's the output of the maillog:
Apr 12 10:38:51
Hi All
I need to display a javascript window with some text displayed in to.
After the execution and displaying of this windows, I have two executable php script
that perform some task for me.
After all this I need the page to direct to another page.
I keep getting this header error.
If
[snip]
I keep getting this header error.
[/snip]
Which header error? Like, the one where it says you can't do it again?
It is because you have caused some output somewhere prior to the
invocation of you header request to the new location.
--
PHP General Mailing List (http://www.php.net/)
To
From: Brent Clark [EMAIL PROTECTED]
I need to display a javascript window with some text displayed in to.
After the execution and displaying of this windows, I have two executable
php script that perform some task for me.
After all this I need the page to direct to another page.
Use a
Having some problems with ereg()
[begin code]
$string=Credit adjusted: $-1.32 to $48.68
ereg(([\\$(\\$-)][0-9]+\.[0-9]+),$data[2],$found);
While(list($index,$hits)=each($found))
{
echo $index , $hitsbr;
}
[end code]
Returns
0 ,
On 19 Mar 2004 at 19:23, Lester Caine wrote:
[EMAIL PROTECTED] wrote:
I'm trying to run PHP5 RC1 on a Windows 2000 test server with Apache 2.0.47.
Mines 2.0.48, but no problem.
Upon installation, when I first started Apache again, I got an error message to
the effect
that
I wrote:
First, cheers to Mike Ward for the quick response to my maiden post this
morning (about floating point vars).
Second, apologies for getting Mike Ford's name wrong in my second-to-maiden
post... :(
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
redirection to test2.php, I see:
''
31e2cab461dc525ea9a8c22e5d997db5
The session ID appears to have changed. Any idea why?
I can use sessions in other situations with any problems...
test1.php
--
?PHP
session_start();
$isRemembered = false;
$rememberedUser = ;
$username = $_GET[ 'name' ];
$password
From: Eric Gorr [EMAIL PROTECTED]
When I visit test1.php with the url:
http://domainpath/test1.php?name=billpwd=henry
I see the output:
user = 'bill'
ID= 41699d4461e8fe3a71243bb3cb1c2298'
You were remembered and are now being redirected to the home page. If
this fails for some reason
[EMAIL PROTECTED] wrote:
I'm trying to run PHP5 RC1 on a Windows 2000 test server with Apache 2.0.47.
Mines 2.0.48, but no problem.
Upon installation, when I first started Apache again, I got an error message to the effect
that php4ts.dll could not be found in the c:\winnt\system32 directory.
At 1:58 PM -0500 3/19/04, John W. Holmes wrote:
From: Eric Gorr [EMAIL PROTECTED]
When I visit test1.php with the url:
http://domainpath/test1.php?name=billpwd=henry
I see the output:
user = 'bill'
ID= 41699d4461e8fe3a71243bb3cb1c2298'
You were remembered and are now being redirected to
I'm running RC1 on Win2k 2.0.47 without any problems. Make sure u updated
your PATH settings as some folders got renamed or moved. Add /path/to/php
and /path/to/php/dlls to your PATH setup. Switch 'extensions' to 'ext' in your
php.ini as well if you still have an old version from an old PHP5 beta
Ah HA! I knew I wasn't crazy...well, pretty sure... ;-)
I figured out why my sessions were behaving so oddly.
I was accessing test1.php via:
http://ericgorr.net/...
In test1.php, I was then redirecting to test2.php via
http://www.ericgorr.net/...
Apparently, with Mozilla and Safari, php
Richard Davey wrote:
unset($type);
$type = $_GET['action'];
(Please note - you don't HAVE to unset each variable, but if you are
working in a Register Globals ON environment, it's a good safety
measure).
I've seen a few people recommending this type of thing. Please explain
how this is any safer
Hi ,
What is the equavilant in PHP to creating a recordset in ASP using a query?
This is what I do in PHP:
..
dim Type
Type = CStr(Request.QueryString(action)) (getting parameter from URL)
Dim cnn ' ADO connection
Dim rst ' ADO recordset
Dim strDBPath ' path to
I don't know ASP but I think this is what you want:
$sql = SELECT * FROM table WHERE Type = \ type \ order by style;;
$resultID = mysql_query($sql, DBlink); // send the query and returns a
pointer to the results
while ($row = mysql_fetch_assoc($resultID)) // while there are results
give
This is what I get when I try to create the recordset
Notice: Use of undefined constant DBlink - assumed 'DBlink' in
D:\Development\Completed\Sealhouse\phpSealTest\ProductSpecs.php on line 24
Warning: mysql_query(): supplied argument is not a valid MySQL-Link
resource in
Alistair Hayward mailto:[EMAIL PROTECTED]
on Wednesday, March 10, 2004 2:46 PM said:
This is what I get when I try to create the recordset
Notice: Use of undefined constant DBlink - assumed 'DBlink' in
D:\Development\Completed\Sealhouse\phpSealTest\ProductSpecs.php on
line 24
well
Thanks Chris,
Believe me, I have been doing research non-stop for a few days now and
this is my last resort.
The problem is the language. I can't find what I'm looking for on the
net because I don't know what it's called.
I have worked out how to create a connection to a mySQL server and
This is what I have:
?php
$connection = mysql_connect(localhost,root,batman);
if (!$connection) {
echo Couldn't make a connection!;
exit;
}
$db = mysql_select_db(sealhouse, $connection);
if (!$db) {
echo Couldn't select database!;
Not trying to sound rude or anything, but have you looked up the mysql
functions at http://php.net/mysql in your research?
I would start with mysql_connect(), mysql_query(), and
mysql_fetch_array()/mysql_result().
There are lots of user notes on each page as well which should be of
Hello Alistair,
Wednesday, March 10, 2004, 10:26:03 PM, you wrote:
AH dim Type
AH Type = CStr(Request.QueryString(action)) (getting parameter from URL)
unset($type);
$type = $_GET['action'];
(Please note - you don't HAVE to unset each variable, but if you are
working in a Register Globals ON
Richard:
Thank you so much!
Richard Davey wrote:
Hello Alistair,
Wednesday, March 10, 2004, 10:26:03 PM, you wrote:
AH dim Type
AH Type = CStr(Request.QueryString(action)) (getting parameter from URL)
unset($type);
$type = $_GET['action'];
(Please note - you don't HAVE to unset each variable,
Since I am assuming Type is a text field, you will want to enclose it
in single quotes. Also, because I am anal retentive, I like to also use
the addslashes() function on any input coming in on the GET string or
via a POST. Also, since all variables are preceded by a $ character,
your call to
Richard Davey wrote:
A few ways to do this:
$total_records = mysql_num_rows($result);
for ($i=0; $i $total_records; $i++)
{
$data = mysql_fetch_assoc($result);
print_r($data);
}
$data will now be an array holding the first set of information. The
print_r line just displays it so you can
Hello Alistair,
Wednesday, March 10, 2004, 11:26:53 PM, you wrote:
AH I get this error: mysql_num_rows(): supplied argument is not a valid
AH MySQL result resource
Then your database connection failed OR the SQL query did. Check those
steps over before anything else.
Maybe post that part of
Hi.
There is an ADO simulator for PHP (i think it's called ADODB PHP but i
can't remember the link). There is also a asp to php converter called
(can you guess? ) asp2php.
Alistair Hayward wrote:
Hi ,
What is the equavilant in PHP to creating a recordset in ASP using a
query?
This is what I
Richard Davey wrote:
Hello Alistair,
Wednesday, March 10, 2004, 11:26:53 PM, you wrote:
AH I get this error: mysql_num_rows(): supplied argument is not a valid
AH MySQL result resource
Then your database connection failed OR the SQL query did. Check those
steps over before anything else.
Maybe
Sorry, was the query!
Richard Davey wrote:
Hello Alistair,
Wednesday, March 10, 2004, 11:26:53 PM, you wrote:
AH I get this error: mysql_num_rows(): supplied argument is not a valid
AH MySQL result resource
Then your database connection failed OR the SQL query did. Check those
steps over
On Wednesday 10 March 2004 18:54, Raditha Dissanayake wrote:
Hi.
There is an ADO simulator for PHP (i think it's called ADODB PHP but i
can't remember the link). There is also a asp to php converter called
(can you guess? ) asp2php.
http://php.weblogs.com/
And
Pear::DB must work too :P
Hello Alistair,
Thursday, March 11, 2004, 1:25:47 AM, you wrote:
AH ?php
AH unset($type);
AH $type = $_GET['type'];
AH $link = mysql_connect('localhost', 'user', 'password');
AH if (!$link) {
AH echo Couldn't make a connection!;
AH exit;
AH }
AH $db =
To everyone, especially Richard,
Thanks a lot for the help. I have accomplished everything I needed to do
with your help, and I have never used PHP before.
Thanks again!
alistair
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi, i have the followin problem, i have a site that use sessions,
sometimes when i want to write on the session i get the followin error:
Warning: Unknown(): The session id contains invalid characters, valid
characters are only a-z, A-Z and 0-9 in Unknown on line 0
Warning: Unknown(): Failed to
Here's a snippet of the code. I'm sending the setcookie header out long
before any of the other headers, but I'm still getting:
Warning: Cannot modify header information - headers already sent by (output
started at C:\wwwroot\index.php:4) in C:\wwwroot\index.php on line 7
-Code--
?
Hello,
I am using php 4.3.0, and am trying to launch the command line
interface for cisco network registrar, and be able to send commands to
it and read the output from those commands. Problem I am having is that
the commands can take some time to actually respond with output. I can
make it
Hi!
Been trying all day to be able to fire off a load data local infile
using php, but haven't yet succeded
The setup is as follows: the client should upload a .csv-file to the
webserver. Here, php shall issue a load data local infile-statement to
load the data into a mysql-database.
The
Helpful, isn't he. If you can't find it in your config file, post again and I'll show
you what i have in mine.
John
Jason Wong wrote:
This has nothing to do with PHP. Please ask on the relevant list/forum.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
John Taylor-Johnston wrote:
Helpful, isn't he. If you can't find it in your config file, post again and I'll show
you what i have in mine.
John
Jason Wong wrote:
This has nothing to do with PHP. Please ask on the relevant list/forum.
Thanks. Actually, I have another question: Can someone
On Wednesday 11 February 2004 16:42, John Taylor-Johnston wrote:
Helpful, isn't he. If you can't find it in your config file, post again and
I'll show you what i have in mine. John
It's hardly helpful asking your tailor about a problem with your leaky roof is
it? Ask the right questions at
Jason Wong wrote:
On Wednesday 11 February 2004 16:42, John Taylor-Johnston wrote:
Helpful, isn't he. If you can't find it in your config file, post again and
I'll show you what i have in mine. John
It's hardly helpful asking your tailor about a problem with your leaky roof is
it?
It is if
Hello Michael,
Wednesday, February 11, 2004, 2:48:00 AM, you wrote:
MTP Again, no are any errors displayed or logged. Any help would be greatly
MTP appreciated.
Your code is fine (well, the code you posted anyway) so I'd bet the
problem is Apache related regarding the config of PHP on your
Hello,
I have a similar problem whereby in the receiving PHP program the variable
$Myname doesn't contain anything (i.e. echo $Myname returns nothing) however
$_GET['Myname'] returns the correct value. How can this be?
I attach the two short files. I'd appreciate it if anyone can tell me why
Hello Tony,
Wednesday, February 11, 2004, 11:18:49 AM, you wrote:
T I have a similar problem whereby in the receiving PHP program the variable
T $Myname doesn't contain anything (i.e. echo $Myname returns nothing) however
T $_GET['Myname'] returns the correct value. How can this be?
Because
Freedomware wrote:
I've been using both phpMyAdmin and EMS MySQL Manager to work with MySQL
tables and PHP. Things are generally going OK, but I'm still ironing out
a few kinks. I suspect some of my problems might be related to an error
message I get when I click on a Database in phpMyAdmin:
Hello Tony,
Wednesday, February 11, 2004, 9:16:18 PM, you wrote:
TDS That was the problem. The PHP book I have doesn't mention $_GET or $_POST.
TDS The exercises right from the beginning use register_globals. I didn't
TDS realise they were turned off by default.
Whoever wrote that book ought
I have a registration form which collects some data then, when the user
clicks the submit button sends the data to a second page (a PHP script).
The problem I'm having is getting my webserver (apache) to invoke the PHP
scrip to process the data. What's so baffling about this is that I've
already
]
Subject: [PHP] [Q] Problems invoking a PHP script - Have no hair left to
pull - Please help [:-)
I have a registration form which collects some data then, when the user
clicks the submit button sends the data to a second page (a PHP script).
The problem I'm having is getting my webserver (apache
I've been using both phpMyAdmin and EMS MySQL Manager to work with MySQL
tables and PHP. Things are generally going OK, but I'm still ironing out
a few kinks. I suspect some of my problems might be related to an error
message I get when I click on a Database in phpMyAdmin:
Error: The
Hi,
perhaps this is best posted on the phpmyadmin list?
Freedomware wrote:
I've been using both phpMyAdmin and EMS MySQL Manager to work with
MySQL tables and PHP. Things are generally going OK, but I'm still
ironing out a few kinks. I suspect some of my problems might be
related to an error
On Wednesday 11 February 2004 12:47, Freedomware wrote:
I've been using both phpMyAdmin and EMS MySQL Manager to work with MySQL
tables and PHP. Things are generally going OK, but I'm still ironing out
a few kinks. I suspect some of my problems might be related to an error
message I get when I
It's because the HTML or HTTP or whateverdoesn't allow them.. :p
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
Piet From South Africa [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
When using ö or ä the hyperlinks or photo references does not work even
though
I am using the below code (kind of sloppy..). I have tried for fopen r+, w,
and w+, but no matter what I do, the file is always truncated, and previously
entered data is erased. I have been unable to fix this.
?php
$filename = 'news.php';
$divhead = 'div style=padding:15;padding-left:0
On Saturday 07 February 2004 07:08, [EMAIL PROTECTED] wrote:
I am using the below code (kind of sloppy..). I have tried for fopen r+,
w, and w+, but no matter what I do, the file is always truncated, and
previously entered data is erased. I have been unable to fix this.
Assuming that you're
Yes, the error I get is a pop-up box saying This is not a valid %PDF file
Here is my code:
$file_two = 'archive/newsletters/Dec03PostPress.pdf';
//now view the PDF file
header(Content-Type: application/pdf);
header(Accept-Ranges: bytes);
header(Content-Length:
Scott Taylor wrote:
$file_two = 'archive/newsletters/Dec03PostPress.pdf';
Try replacing this line with...
$file_two =
$_SERVER['DOCUMENT_ROOT'].'/archive/newsletters/Dec03PostPress.pdf';
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Stuart wrote:
Scott Taylor wrote:
$file_two = 'archive/newsletters/Dec03PostPress.pdf';
Try replacing this line with...
$file_two =
$_SERVER['DOCUMENT_ROOT'].'/archive/newsletters/Dec03PostPress.pdf';
As my first posts states, I've tried that. And no, that doesn't work
either.
And on
I have the following file: http://domain.com/archive/newsletters/Dec03.pdf
For some reason this works: filesize('archive/newsletters/Dec03.pdf');
but this does not: filesize('/archive/newsletters/Dec03.pdf');
nor does this filesize('http://domain.com/archive/newsletters/Dec03.pdf');
For some
Scott Taylor wrote:
I have the following file: http://domain.com/archive/newsletters/Dec03.pdf
Lovely.
For some reason this works: filesize('archive/newsletters/Dec03.pdf');
Relative path from the current directory. Is your script in the web root?
but this does not:
';
readfile($file);
/* example 2 */
$file = 'archive/newsletters/Dec03.pdf';
readfile($file);
Thanks for the help so far,
Best Regards,
Scott
-Original Message-
From: Scott Taylor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 12:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP
On Tue, 27 Jan 2004 20:22:46 -0500
Scott Taylor [EMAIL PROTECTED] wrote:
I understand all of the file size ones. What I really don't
understand is why neither of the following examples work:
/* example 1 */
/* where $_SERVER['DOCUMENT_ROOT'] =
Do you mean using
$file = '/protected/file.pdf';
or using an absolute path on the server?
Best Regards,
Scott
Subject:
Re: [PHP] authentication problems!
From:
Luke [EMAIL PROTECTED]
Date:
Wed, 21 Jan 2004 14:24:11 +1100
To:
[EMAIL PROTECTED]
Yeah, i think i mentioned the same thing
I am about at my wits end trying to find a good solution to this
problem. I've asked various portions of this question to this mail list
and still have not found exactly what it is I am looking for, but here
it goes.
I'm looking for a way to protect my files (this would be pdf files,
image
, 2004 03:17:21 PM -0500
Subject: [PHP] authentication problems!
I am about at my wits end trying to find a good solution to this
problem. I've asked various portions of this question to this mail list
and still have not found exactly what it is I am looking for, but here
it goes.
I'm looking
On Wednesday 21 January 2004 05:49, Scott Taylor wrote:
Please trim your posts!
Of course there is not problem if the user is entering the information
him or her self. But just using this code:
$file = 'http://miningstocks.com/protected/Dec03PostPress.pdf';
//now view the
Yeah, i think i mentioned the same thing(or was going to :/ )
you should be able to use the local filesystem, and reffer to it relatively!
and then you can stream it and you wont need any authentication, and noone
will be able to directly link to the file
--
Luke
Jason Wong [EMAIL PROTECTED]
I asked earlier about filling an image with a pattern.
I have figured out how to do it (or at least how I ought to do it using
imagesettile() and a filled shape or an imagefill.
But it doesn't work.
$tile2 = @imagecreatefrompng (fill1.png);
imagepng ($tile2);
displays the fill I want to use.
Hi,
I have a website where the admin can create entries in a news list and
upload an associated PDF document.
I am storing the document in a MySQL database on another machine on the same
network.
For some reason, occasionaly when loading a PDF document, internet explorer
will lock up, the
Way does this while loop not work.
It does not read anything in the file. If I add ! in front of feof it
will just loop forever but still it will not read the next line in the
file. The file has two lines in it that look like this.
tester3:$1$09BZpdge$b7TQcsYSsAP1hgiCuCWtS1
Hi,
your fgets should be inside the loop. else you are in an infite loop.
ps: are you brute forcing password file ;-)
Richard Kurth wrote:
Way does this while loop not work.
It does not read anything in the file. If I add ! in front of feof it
will just loop forever but still it will not read
Ok I changed it to look this way but it still is not working
$filenum=test;
$fpHt = fopen($filenum, r);
while(feof($fpHt)) {
$fpLine = fgets($fpHt,512);
$fpLine = trim($fpLine);
$fpData = explode(:, $fpLine);
$fpData[0] = trim($fpData[0]);
echo $fpData[0];
}
And no I am just reading a .htpasswd
Hello Richard,
Thursday, January 1, 2004, 5:56:35 PM, you wrote:
RK Ok I changed it to look this way but it still is not working
RK $filenum=test;
RK $fpHt = fopen($filenum, r);
RK while(feof($fpHt)) {
RK $fpLine = fgets($fpHt,512);
RK $fpLine = trim($fpLine);
RK $fpData = explode(:, $fpLine);
Hi,
Friday, January 2, 2004, 3:56:35 AM, you wrote:
RK Ok I changed it to look this way but it still is not working
RK $filenum=test;
RK $fpHt = fopen($filenum, r);
RK while(feof($fpHt)) {
RK $fpLine = fgets($fpHt,512);
RK $fpLine = trim($fpLine);
RK $fpData = explode(:, $fpLine);
RK $fpData[0]
thanks for the help, it definitely saved my from hours of pulling at me
hairs.
however i have a new problem. i can create session variables, but i can't
access them across pages.
for example.
page2.php
Code:
?php
// start the session
session_start();
header(Cache-control: private); //IE 6 Fix
Not a clue what's wrong, anyone?
functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo
Zend/zend_
multibyte.lo Zend/zend_execute.lo sapi/apache/sapi_apache.lo
sapi/apache/mod_php
4.lo sapi/apache/php_apache.lo main/internal_functions.lo -lcrypt
-lc-client -lc
rypt -lmysqlclient
Hello, im testing the php_admin_value disable_functions froma Vhost in my Apache, and
not works, is are set from Master (php.ini) works, but set via Apache vhost not works,
any are using from apache php_admin_value disable_functions bla,bla,bla ?
--
--
Alberto
I call this function it checks a session variable then displays 1 of 3
menus... for some reason it will only display the first menu regardless
of the results of my decoded session var. Any help or just a new pair
of eyes would help. Thanks in advance.
jas
function menu() {
$lvl =
501 - 600 of 1249 matches
Mail list logo