Steve!
Could you be more specific and send some code you are using (even if it doesn't
work). It may give some insight as to your specific need.
That said, as far as I can tell, what you are trying to accomplish is this:
$sql = UPDATE tablename SET 1column = '$newvariable' WHERE 1column =
On Monday 27 January 2003 15:34, Max Tappenden wrote:
Basically I'm trying to make a file manager with PHP.
Here's what I need to do
Ok I have artists and coders working for my site
No FTP
I want them to be able to upload/download files from me as and when they
please without having to
I am attempting to create an extension to php.. The only problem is, whenever
I run buildconf after creating a skeletion with
./ext_skel --extname=my_module
I receive the following output from buildconf
./buildconf
using default Zend directory
buildconf: checking installation...
buildconf:
php-general Digest 27 Jan 2003 09:31:45 - Issue 1847
Topics (messages 133193 through 133228):
can't write and read on/from a file - Apache.exe access error
133193 by: phplam
Re: Java call on object causes segfault.
133194 by: Philip Olson
133195 by: John Wells
Re:
Hi,
I originally had a link #1, #2, and #3. I obviously deleted them.
I was wondering if there is a way to use PHP/MySQL to get the indexed
numbers to re-assign so that the first link
you see is always #1 the second link you see is always #2 and so on?
Thanks in advance,
Roger
PS
The
Hi,
I originally had a link #1, #2, and #3. I obviously deleted them.
I was wondering if there is a way to use PHP/MySQL to get the
indexed numbers to re-assign so that the first link you see is
always #1 the second link you see is always #2 and so on?
(apologies for previous incomplete
Hi all,
I've been playing with this for a few hours now (over the course of a
couple of days) and it's getting frustrating!
All I want to do is to be able to make one row in the database set the
order that my categories appear on my website. Now I can do this fine
simply by using ORDER_BY but I
your query needs to be inside the foreach loop
so that it runs for every item, at the moment it
just runs after you've scanned through all the items
so just does the last one.
Tim Ward
http://www.chessish.com
mailto:[EMAIL PROTECTED]
- Original Message -
From: Steve Jackson [EMAIL
Hello,
Has anyone noticed strange behaviour in strap_tags @ php 4.3?
We did upgrade to the latest snap yet the problem remains. For some reason
strip_tags acts weird..
-- georgep
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mantas --
...and then Mantas Kriauciunas said...
%
...
% And what I need this script for, is, not everyone knows how to use ssh
% and I don't want to give access to 50 users that can run their
% processes, my server will freeze. That's why I need to change it somehow
Either your users plan to
I'm processing on a different page so what would I use instead of
$_POST?
print_r($_POST)
Didn't display anything or diagnose anything.
Steve Jackson
Web Developer
Viola Systems Ltd.
http://www.violasystems.com
[EMAIL PROTECTED]
Mobile +358 50 343 5159
-Original Message-
From: Tim
I originally had a link #1, #2, and #3. I obviously deleted them.
I was wondering if there is a way to use PHP/MySQL to get the
indexed
numbers to re-assign so that the first link
you see is always #1 the second link you see is always #2 and so on?
Keep your own count variable when you
Nicole, et al --
BellSouth, eh? I'm in Atlanta :-)
...and then Nicole said...
%
% Thanks. But I would think if you can run cron jobs as certain users, you
% could create cron jobs for those users only. I mean, if you can do it with
% CPanel or these other Control Panels, then why not? It
what version of PHP? try $HTTP_POST_VARS instead.
Tim Ward
http://www.chessish.com
mailto:[EMAIL PROTECTED]
- Original Message -
From: Steve Jackson [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 1:14 PM
Subject: RE: [PHP] Update row problems
I'm
Lee --
...and then Lee Herron said...
%
% I'm interested in how most would create a transition page..
%
% One thing you might consider is using flush() to output
% what you have so far to the browser rather than sending
%
% The problem I'm having is that the uploading of the file takes
Thanks.
That was the problem. Im using 4.0.6 so it's a bit out of date.
Cheers,
Steve Jackson
Web Developer
Viola Systems Ltd.
http://www.violasystems.com
[EMAIL PROTECTED]
Mobile +358 50 343 5159
-Original Message-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: 27. tammikuuta
Thank you Sean ,
your comment was useful for me, I was having that problem and what I was
doing is changing every record in my database that have an or ' on it
Thank you again
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sean,
could you please send me how do you will do the function to convert a
recordset into an XML string?
Thank You
OCTAVIO HERRERA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No , it's not sessions, it's files with php545382
and into these files , there are piece of html of my sites
Nico
Max Tappenden [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Are they things like
php45a45s879a787g54a21s3a12g3a21s31a3a?
If so, yup i know
Hello,
I would like to make use of the function ftp_ssl_connect.
Can anyone tell me an appropriate server for this function?
WU-FTP with ssl-support does not exist anymore (I read);
the openssl.9.6.g port 22 (of the default config) does not seem to work.
Which server-deamon is the right one?
Or
Hallo,
does anybody knows where can I find a set of presentation
sildes of the PHP language base(or PHP toghether with mysql)? .
May be coming from any tutorial or previous course.
Thank you very much
Ornella
On Mon, 2003-01-27 at 10:20, Ornella Fasolo wrote:
Hallo,
does anybody knows where can I find a set of presentation
sildes of the PHP language base(or PHP toghether with mysql)? .
May be coming from any tutorial or previous course.
Thank you very much
http://talks.php.net/
Ornella
--
It's include files.
Ex : in index.php i call index2.php , the content of index2.php 'll be
written in /tmp
Nico
Max Tappenden [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Are they things like
php45a45s879a787g54a21s3a12g3a21s31a3a?
If so, yup i know the
Hi!
I have protected a folder on my apache server with a username and password.
When I browse to this folder I get a popup to type my name and password
in( automatic popup by internet explorer or something ).
My question is, how do I log out? I tried to destroy the session, but it
didn't help.
-Original Message-
From: Tommy Jensehaugen [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 10:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] apache webprotect logout
When I browse to this folder I get a popup to type my name
and password
in( automatic popup by internet
--- Tommy Jensehaugen [EMAIL PROTECTED] wrote:
I have protected a folder on my apache server with a
username and password. When I browse to this folder
I get a popup to type my name and password in(
automatic popup by internet explorer or something ).
My question is, how do I log out? I tried
Hi, I have a form with an IFRAME nested in it. When the form is submitted,
I can't get the values of the checkboxes in the IFRAME, is there any way to
do this? Thanks!
-Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
With this script under, I get resized image in only 16 colors. with an old
version of gd, I got 16 million colors images. Has someone a response ?
?PHP
/***
file [string] - filename jpg
w [int] - width
/
header(Content-type: image/png);
$file =
--- Greg [EMAIL PROTECTED] wrote:
Hi, I have a form with an IFRAME nested in it. When
the form is submitted, I can't get the values of the
checkboxes in the IFRAME, is there any way to do
this?
Well, I think (I could be wrong) you're looking at this
wrong.
Forms submit to resources
Hi experienced the same problem with the new
bundled version of GD.
regards,
philipp
- Original Message -
From: Jean-François Marseaut [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 5:15 PM
Subject: [PHP] question about GD and colors
With this script under, I
Hi,
I've managed to get Windows IE to pick up on most of my $_SESSION variables
once a user clicks the 'Back' button using the following code in the base
form:
'value=?php if(!empty($_SESSION['rfname'])) echo $_SESSION['rfname']; ?'
However, when I try this approach for a muliple SELECT
I've managed to get Windows IE to pick up on most of my $_SESSION
variables
once a user clicks the 'Back' button using the following code in the base
form:
'value=?php if(!empty($_SESSION['rfname'])) echo $_SESSION['rfname']; ?'
However, when I try this approach for a muliple SELECT
On Monday 27 January 2003 11:46 am, 1LT John W. Holmes wrote:
I've managed to get Windows IE to pick up on most of my $_SESSION
variables
once a user clicks the 'Back' button using the following code in the base
form:
'value=?php if(!empty($_SESSION['rfname'])) echo
Here's the basic layout of my html page, this isn't the real html, just the
basic idea.
html
form action=test.php method=post
input type=text name=test1
iframe src = iframetest.php/iframe
input type=button label=Submit
/form
/html
Now inside iframetest.php I have a few check boxes that I want
try imagecreatetruecolor() instead of imagecreate()
- Original Message -
From: Philipp [EMAIL PROTECTED]
To: Jean-François Marseaut [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, January 27, 2003 4:21 PM
Subject: Re: [PHP] question about GD and colors
Hi experienced the same
Is there any environment/Global variable in PHP that indicates whether the
server port you connect to is SSL port?
Thanks!
Wei
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 27 Jan 2003, Wei Weng wrote:
Is there any environment/Global variable in PHP that indicates whether the
server port you connect to is SSL port?
$_SERVER['HTTPS']
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 27 Jan 2003, George E. Papadakis wrote:
Hello,
Has anyone noticed strange behaviour in strap_tags @ php 4.3?
We did upgrade to the latest snap yet the problem remains. For some reason
strip_tags acts weird..
Please be specific with a short self-contained example
that demonstrates
Greg wrote:
Here's the basic layout of my html page, this isn't the real html, just the
basic idea.
html
form action=test.php method=post
input type=text name=test1
iframe src = iframetest.php/iframe
input type=button label=Submit
/form
/html
Now inside iframetest.php I have a few check boxes
Here's the basic layout of my html page, this isn't the real html,
just
the
basic idea.
html
form action=test.php method=post
input type=text name=test1
iframe src = iframetest.php/iframe
input type=button label=Submit
/form
/html
Now inside iframetest.php I have a few check
I tried to pick up the values from $_POST (as above). In Linux, it
works:
(i.e. I can pick them up, display them, and manipulate them using the
code
above), but in IE something like $_POST['bday'] never shows up. Any
idea
why
there's such a difference between OS behavior?
No.
Unfortunatly, that gets rid of the reason I have the iframe in there to
begin with. I need a scrollable iframe with a set of buttons that perform
certain actions at the top, that have to always be at the top.
-Greg
Sean Burlington [EMAIL PROTECTED] wrote in message
[EMAIL
It's probably an HTML thing. I don't know how iframes are interpreted,
but it's probably not really a part of your form, even though it looks
like it is when you view it.
The contents of an IFRAME, by definition, is a totally different document.
It behaves for all intents and purposes as a
Unfortunatly, that gets rid of the reason I have the iframe in there
to
begin with. I need a scrollable iframe with a set of buttons that
perform
certain actions at the top, that have to always be at the top.
-Greg
Then put the entire form into the iframe.
---John W. Holmes...
PHP
Thanks for the prompt reply!
One more question, do you know how PHP implements this variable? In other words,
how does PHP detect whether the connection is SSLed or not? (Specific to apache)
Thanks!
Wei
- Original Message -
From: Philip Olson [EMAIL PROTECTED]
To: Wei Weng [EMAIL
But the buttons are outside of the iframe, so that no matter how large the
frame gets, the buttons are always in the same place :/
-Greg
John W. Holmes [EMAIL PROTECTED] wrote in message
000501c2c629$f98c8590$7c02a8c0@coconut">news:000501c2c629$f98c8590$7c02a8c0@coconut...
Unfortunatly, that
Greg wrote:
Unfortunatly, that gets rid of the reason I have the iframe in there to
begin with. I need a scrollable iframe with a set of buttons that perform
certain actions at the top, that have to always be at the top.
-Greg
in that case you either need to try getting some javascript to
Hi Adrian,
thank you very much, that solved my problem.
Regards,
Philipp
- Original Message -
From: adrian [EMAIL PROTECTED] [EMAIL PROTECTED]
To: Philipp [EMAIL PROTECTED]; Jean-François Marseaut
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 6:10 PM
Subject:
Hi Greg,
But the buttons are outside of the iframe, so that no matter how
large the frame gets, the buttons are always in the same place :/
So stick an image of the button outside the iframe, wrap it in an a, and
use the onclick handler to call a javascript function that submits the form.
Of
Do php extension need to be thread-safe? I am running php on apache2. I
would guess that since it's compiled in as a module, it would need to be
thread-safe correct?
Josh.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hmm.. it'll get real ugly with javascript,but this works with newer
browsers.
...iframe has a name
...main page has a hidden form field with id checkbox in the iframe has id
also
iframe.php
html
head
script
function submit_form(){
if(frames[myiframe].document.getElementById(one).checked ==
Hi guys, I am looking for a very simple login script that logs a person
in with a unique login username/password and then logs them into a very
basic control panel where they can upload image files and delete them.
Can anybody help me out that would be much appreciated.
Cheers, Ian.
--
PHP
Hi guys, I am looking for a very simple login script that logs a person
in with a unique login username/password and then logs them into a very
basic control panel where they can upload image files and delete them.
Can anybody help me out that would be much appreciated.
www.hotscripts.com
Thank you guys for all the help, I'll try a few of these things, if not I'll
just redesign the page.
-Greg
Adrian [EMAIL PROTECTED] [EMAIL PROTECTED] wrote in
message 00e001c2c631$b402e160$1a8f43d9@ADE2">news:00e001c2c631$b402e160$1a8f43d9@ADE2...
hmm.. it'll get real ugly with javascript,but
Thanks John,
I sort of thought that it should work. Will do as you suggest.
Regards,
Andre
On Monday 27 January 2003 12:28 pm, John W. Holmes wrote:
I tried to pick up the values from $_POST (as above). In Linux, it
works:
(i.e. I can pick them up, display them, and manipulate them using
Found a PHP bug, I'm using PHP version 4.2.3. I have been struggling with
why PHP code failed to work with the month is August or September, so I have
been playing around it and found the problem. I recently wrote a demo
script for you all to play around with. Let me know which PHP version does
On Tuesday 28 January 2003 03:56, Scott Fletcher wrote:
Found a PHP bug, I'm using PHP version 4.2.3. I have been struggling with
why PHP code failed to work with the month is August or September, so I
have been playing around it and found the problem. I recently wrote a demo
script for you
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Found a PHP bug, I'm using PHP version 4.2.3. I have been
struggling with
why PHP code failed to work with the month is August or
September
I stumbled into this one a short while ago myself. It is not a bug,
I don't see why a string wouldn't work when I use 08 (string) and match it
against the integer 8, or 08.
Kirk Johnson [EMAIL PROTECTED] wrote in message
B11731D518B5D61183C700A0C98BE0D9FFBE5D@chef">news:B11731D518B5D61183C700A0C98BE0D9FFBE5D@chef...
-Original Message-
From: Scott
--- Scott Fletcher [EMAIL PROTECTED] wrote:
Found a PHP bug
...
if ($month == 01)
I guess you mean:
if ($month == '01')
If so, this is not a bug. Otherwise, please explain what
you think is wrong.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Scott,
Because 8 != 8. 8 (and 08) is a string with the numerals representing
the number eight. It is not the number eight. (think back to basic math, the
difference between a number and a numeral)
PHP does some conversions for you automatically but that just saves you from
yourself. (Personally,
Re: [PHP] Found a PHP bug!
uh oh...
I don't see why a string wouldn't work when I use 08 (string) and match it
against the integer 8, or 08.
They're just different types. Normally PHP is veeery flexible with
types, like javascript, but it just can't be flexible for you here because
I'm referring to '08' and '09' that don't work
Chris Shiflett [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
--- Scott Fletcher [EMAIL PROTECTED] wrote:
Found a PHP bug
...
if ($month == 01)
I guess you mean:
if ($month == '01')
If so, this is not
I do know that integer, string, double, float, etc are different.. I
have been using hte appropriate method like in javascript and c programming,
like converting it to integer and so on But when I start using PHP, I
find no such document of it and I have been using it for 3 years
Hey all,
Does any body know of anything similar to phpMyAdmin for MS SQL? I have been doing
some googling and haven't come across anything that would help me out. I have also
checked out www.sourceforge.net and can't seem to come across anything either. I am
looking for something that will
Whoop! FOund it, it is doubleval()...
What does settype() do exactly
Scott Fletcher [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I do know that integer, string, double, float, etc are different.. I
have been using hte appropriate method like in
I would need to use intval() to solve this problem
Scott Fletcher [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm referring to '08' and '09' that don't work
Chris Shiflett [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
U might want to do a type cast to integer from string...
http://www.php.net/manual/en/language.types.type-juggling.php
On Mon, 2003-01-27 at 13:47, Scott Fletcher wrote:
I would need to use intval() to solve this problem
Scott Fletcher [EMAIL PROTECTED] wrote in message
[EMAIL
Because 8 != 8. 8 (and 08) is a string with the numerals
representing
the number eight. It is not the number eight. (think back to basic math,
the
difference between a number and a numeral)
Actually, 08 is equal to 8 in PHP. PHP will convert the string to an
integer and the two will compare as
No, it's floatval. Doubleval is an alias left over from hwen floats
were called doubles...
Scott Fletcher wrote:
Whoop! FOund it, it is doubleval()...
What does settype() do exactly
Scott Fletcher [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I do
Even doing a type cast won't make a difference for the original problem.
Even if you cast 08 to an integer and compare it to 08 (invalid octal
number), it'll still fail.
The original solution was the best, remove the leading zero from the
comparisons and let PHP handle the type casting.
---John
How do i use the function filesize, because i´m using like:
I just want associate the variable $body with a html file
$file_name = 'c:/templates/resp_rep_efetiva_contrato.php';
$fd = fopen($file_name,r);
line 27 $size = filesize($file_name); / Dá erro aqui
John.
Actually, 08 is equal to 8 in PHP. PHP will convert the string to an
integer and the two will compare as equal.
No they are not equal. Yes, PHP will do the conversion so that they are
equal. That does not refute the fact that logically '08' != 8.
Someone already posted why the problem
Yea, it's too bad that not many people know about it. I first asked and
they told me it is done automatically. That was 3 years ago. I never had a
problem for 3 years until now. So, I'm going back to the old way as I did
in Javascript and C programming. I first started PHP 3 years ago, so
Double and Float are not exactly the same thing.
Double is --- 11.123
Float is -- .00238823993
Leif K-Brooks [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
No, it's floatval. Doubleval is an alias left over from hwen floats
were called doubles...
Scott
Aw nut!!! The intval() doesn't work.. I had enough, I'm going to do
what Kirk Johnson recommend. That one work better.
Scott Fletcher [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Yea, it's too bad that not many people know about it. I first asked
Another workaround to this problem is as an addition to Kirk Johnson's
suggestion
--clip--
$month = 08;
if (trim($month) == 8) {
echo You got it!!!;
}
--clip--
Scott Fletcher [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
doubleval
doubleval -- Alias of floatval()
http://www.php.net/manual/en/function.floatval.php
Description
This function is an alias of floatval()
http://www.php.net/manual/en/function.floatval.php.
Note: This alias is a left-over from a function-renaming. In older
versions of PHP
--- Scott Fletcher [EMAIL PROTECTED] wrote:
Double and Float are not exactly the same thing.
Double is --- 11.123
Float is -- .00238823993
They are the same thing. Please, read this:
http://www.php.net/manual/en/language.types.php
and this:
Scott Fletcher wrote:
Double and Float are not exactly the same thing.
Double is --- 11.123
Float is -- .00238823993
I am absolutely new to PHP but what is above (since PHP seems to take most
of its low-level terminology from C) is a fixed point number and the next
is a floating point
Okay, correction...
Double -- 11.1237
Float -- 0.
Cheers! It's the way it work in C Programming... Double won't be as long
or as infinite as the floating point.
White Wolf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
hello,
I am making use of sessions in my PHp/MySQL Database application. When
the user is successfully authenticated against the database, a session
is created in following manner:
session_register(valid_user,firstname,lastname);
$valid_user = $login;
$firstname = $first_name;
Hi,
I new to the php world ant the image too, and I need modify the header information
in a JPEG image file, is that possibly? How?
I need put some information in the image at the instant when the user download
this from the web site.
Thanks in Advance.
Saludos,
Patricio
Scott Fletcher:
Okay, correction...
Double -- 11.1237
Float -- 0.
Cheers! It's the way it work in C Programming... Double won't be as
long
or as infinite as the floating point.
Absolutely wrong (if you would be in a C newsgroup you
Are you sure $first_name and $last_name have a value? Double check...
---John Holmes...
- Original Message -
From: Pushpinder Singh Garcha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 4:44 PM
Subject: [PHP] help needed with session variables
hello,
I am
--- Patricio Vera S. [EMAIL PROTECTED] wrote:
I new to the php world ant the image too, and I need
modify the header information in a JPEG image file,
is that possibly? How?
Those are EXIF headers. I am not sure if there is support
for modifying them (aside from doing it manually yourself),
--- Chris Shiflett [EMAIL PROTECTED] wrote:
--- Patricio Vera S. [EMAIL PROTECTED] wrote:
I new to the php world ant the image too, and I need
modify the header information in a JPEG image file,
is that possibly? How?
Those are EXIF headers. I am not sure if there is
support for
hi
looking for some advice
I have a site in progress. user to it have to enter a LOT of information (it
will contain a club directory)
in order to try and make it a less unpleasant experience for the user, I
want to give them 7 smaller input forms, each one following the other
what would be
Hello,
I'm a recent convert from CGI/Perl and so am still getting my feet wet
in PHP.
Here's my code:
$filename = http://www.myserver.com/include/sometext.txt;;
$handle = fopen ($filename, rb);
$contents = fread ($handle, filesize ($filename));
fclose ($handle);
echo $contents;
exit;
The
Use several smaller forms and store the results of each into a session
variable.
Also store a got-results-for-form-1 (through 7) that gets set for each
of the 7 forms. Once all 7 are set you can do the final processing.
Set the action of each form to say save.php and pass in a saving_what
Hello,
The PHP manual page for filesize
(http://www.php.net/manual/en/function.filesize.php) mentions that it
will not work on remote files. fread will stop once n number of bytes
are read or EOF is received so you could set this to the maximum file
size (in bytes) that you want to download.
I could be wrong, but I'd guess that filesize fails for remote files.
If all you're doing is spitting out the text, why not use readfile()?
-philip
On Mon, 27 Jan 2003, Guru Geek wrote:
Hello,
I'm a recent convert from CGI/Perl and so am still getting my feet wet
in PHP.
Here's my code:
On Mon, 27 Jan 2003, Guru Geek wrote:
Hello,
I'm a recent convert from CGI/Perl and so am still getting my feet wet
in PHP.
Here's my code:
$filename = http://www.myserver.com/include/sometext.txt;;
$handle = fopen ($filename, rb);
$contents = fread ($handle, filesize ($filename));
Hi all.
Last try -- I know there's a lot of noise in this group, but could someone please
offer an opinion?
Is the following possible to work around, or is it a bug that I should be reporting?
I'm having issues uploading files whose names don't necessarily end with the correct
extension, in
I have a number of field entries that I am trying to send through to the
body of an email.
How can I format the mail() command to send these multiple fields.
EG $name, $address, $comments. All to go into the body of an email.
Cheers
--
PHP General Mailing List (http://www.php.net/)
To
Something like...
$body = blah blah blah\n;
$body .= Name = $name\n;
$body .= Address = $address\n;
$body .= Comments = $comments\n;
mail([EMAIL PROTECTED], subject, $body);
would do it.
On Tue, 28 Jan 2003, Bruce Levick wrote:
I have a number of field entries that I am trying to send
Here's my code now:
$filename =
/usr/local/plesk/apache/vhosts/myserver.com/httpdocs/include/text.txt;
$handle = fopen ($filename, r);
$contents = fread ($handle, filesize ($filename));
fclose ($handle);
echo readfile($filename);
exit;
now it displays the contents of the text.txt file. I
I have to write a swath of code to manage system-related stuff based on
database content. Scripts will be run as root by cron, and determine
what they have to do via user interaction and SQL lookups. Functions
will include manipulation of system configuration files, legacy text
file configs,
Sorry, here is the code now ( I need a nap )
$filename
=/usr/local/plesk/apache/vhosts/myserver.com/httpdocs/include/text.txt;
$handle = fopen ($filename, r);
$contents = fread ($handle, filesize ($filename));
fclose ($handle);
echo $contents;
exit;
Guru Geek wrote:
Here's my code now:
I dont know where this came from. The site was working fine, unless someone
else on my team made a fix in this file.
Any thoughts on this error?
Warning: Cannot send session cache limiter - headers already sent (output
started at /home/sisource/public_html/stage/administration/config.php:19)
1 - 100 of 126 matches
Mail list logo