see http://www.php.net/fopen
"Michiel Van Heusden" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> anybody help me please...
>
> how can I open a file from php (something like require, but without
closing
> the php-file)
> and then send some string to that file
anybody help me please...
how can I open a file from php (something like require, but without closing
the php-file)
and then send some string to that file with POST
is thispossible?/?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
> $values[$i]['id'] = $co_id;
you didn't initialize the $i did you?
should put $i =0; before the while loop.
> echo "$id" ; # Doesnt wanna work
what is $id ? i don't see it defined in your code, i see $cid instead.
> list($a,$b,$c,$d) = $values[$i];
sure won't work,
Now i did the following :
My output is only null or blank values!,but my data is there!
while($row=db_range()){
list($co_id,$surname,$init,$ba) = $row;
echo "$co_id $surname"; # This works perfect!
$values[$i]['id'] = $co_id;
$values[$i]['surname'] = $surname;
$val
$ceiling is too big.
try to do this and see:
echo getrandmax();
you might get 32767 as an output!
therefore, $ceiling must be <= getrandmax();
try to scale down your floor and ceiling,
ie:
$max = $ceiling - $floor;
$random = rand(0, $max) + $floor;
"Andrew Duck" <[EMAIL PROTECTED]> wrote in me
go for it...even if someone did a visual tool for that.
my question goes, has anyone made a *nix program to configure php.ini ? ;)
before i
"Jtjohnston" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Has anyone made a Windows executable to configure the
> "$b"=>array("$surname,$init"), // does it work
like
it does work like that, but you're creating an array of one item which is a
string holding to values comma seperated.
you can do this too:
> "$b"=>array($surname,$init), // does it work like
w/o
Please help!
Im have been trying to get a multi-dimentional array for so time now and
dont seems to get a right!
I have the following :
while($row=db_range()){
list($co_id,$surname,$init,$ba) = $row;
$acid[$i] = array("$a"=>array("$co_id"),
"$b"=>array("$sur
On Mon, 29 Oct 2001 14:59, Richard Baskett wrote:
> I've done it before, but I cant remember how to view the commands that
> have been sent to MySQL. I normally try not to ask MySQL questions
> here even though it's pretty much a standard with PHP :) But I have
> exhausted myself in researching
I've done it before, but I cant remember how to view the commands that have
been sent to MySQL. I normally try not to ask MySQL questions here even
though it's pretty much a standard with PHP :) But I have exhausted myself
in researching the problem and I hope one of you might have the answer.
On Sunday 28 October 2001 07:29 pm, you wrote:
> I only fopen my file once...
>
> My program checks if there is a specific session cookie. If not (it's a
> new user that browse the site) I set a cookie and try to store the unique
> ID of this user (other cookie) in a file with a timestamp to trac
On Mon, 29 Oct 2001 13:59, Dave Létourneau wrote:
> I only fopen my file once...
>
> My program checks if there is a specific session cookie. If not (it's
> a new user that browse the site) I set a cookie and try to store the
> unique ID of this user (other cookie) in a file with a timestamp to
>
On Mon, 29 Oct 2001 11:21, Carlos Fernando Scheidecker Antunes wrote:
> Hello all,
>
> Is there any built-in function to determine a valid date?
>
> If there's not I will have to translate one that I've wrote with
> DrScheme to PHP.
>
> I just want to save time :)
Quicker to ask online than look
checkdate();
http://www.php.net/manual/en/function.checkdate.php
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
"Carlos Fernando Scheidecker Antunes" <[EMAIL PROTECTED]> wrote in
message 009e01c16013$d2627ec0$0a505ad1@Nando4">news:009e01c16013$d2627ec0$0a505ad1@
On Sunday 28 October 2001 15:52, Moody wrote:
> > I see all the files are name php3 rather than php. When I access the
> > index.php3 of course it my browser doesn't know what to do so it asks if
> > I want to download it.
>
> Sounds like you need to add ".php3" to your AddType directive in the
>
I only fopen my file once...
My program checks if there is a specific session cookie. If not (it's a new
user that browse the site) I set a cookie and try to store the unique ID of
this user (other cookie) in a file with a timestamp to track which user came
and when (+ nb of times...). That's w
On Sunday 28 October 2001 06:10 pm, Ray Todd Stevens wrote:
> How about
> making the php engine ignore these to. That is any string like is treated as white space.
Um...maybe I don't understand your statement but php already has commenting
built in. Anything between /* and */ is ignored by th
Dear [EMAIL PROTECTED],
Are You A Crazed SEC Football or Sports Fan?
If you are, then go to: http://www.sectraditions.com to find out
about the most comprehensive books on SEC sports ever written.
"A Tailgater's Guide To SEC Football"
and "SEC Baseball History & Tradition"
by sports writer Ch
On Sunday 28 October 2001 06:41 pm, you wrote:
> Is it possible to solve this problem or it's a feature in PHP?
If I understand your problem, you are trying to open the same file twice.
I'm not sure why you would want to do that, but assuming you have a good
reason, you need to make sure you f
I asked for help because I could not compile php 4. I now have this
working thanks to several nifty helpers. Thr problem was that in the
src directory there is a directory for each version of linux, and then
a symlink called linux to the version that is currently running. This
symlink had n
I am able to create the file when it is not already there but I got a "file
exists" error when I try to fopen it in append mode the second time. I
wrote this to store a log of the traffic on my site (userid in a
cookie+timestamp) in a file. Don't know if i'm using the good technique but
it's ver
A lot of visually based editors support embeded java scripts. This
can easily be used to make the system support php with one
problem. Most of these system use the concept that these scripts
ignore html comments to help them ignore the code. How about
making the php engine ignore these to.
Hello all,
Is there any built-in function to determine a valid date?
If there's not I will have to translate one that I've wrote with DrScheme to PHP.
I just want to save time :)
thanks again,
Carlos Fernando.
Linux User #207984
Yes I do, it is to run a pre-exiting program. I figured it out. I was
uing double quotes in the ssi and excaping them when echoing. I should
of been using single quotes.
Thanks
Gary
Christian Dechery wrote:
> At 19:04 28/10/01 -0500, Gary wrote:
>
>> How do you get a SSI to work on a php pag
At 19:04 28/10/01 -0500, Gary wrote:
>How do you get a SSI to work on a php page?
you don't need SSI if you're running PHP... just use include()...
_
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http://www.webstyle.com.br
. . http://www.tanamesa.com.br
> The *nix version of php expects to find a functional mail transport agent
> on the local host
Hrm.
Yeah. I think that's kind've umm, I dunno silly.
Regards,
[ lucas ]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
On Sat, 27 Oct 2001 18:51, Lucas Chan wrote:
> Hi,
>
> I have PHP running on my Debian (unstable distribution) box. I'm
> trying to generate an email via the mail() function.
>
> It keeps failing because I do not have a properly installed/configured
> SMTP daemon on my machine. This is despite t
On Sat, 27 Oct 2001 03:23, JSheble wrote:
> A while ago an email came through here about how to parse out email
> message from a php script. The thing that was mostly of interest to me
> is the ability to send an email to a php script, I guess through a
> sendmail alias? I asked how to accomplis
On Fri, 26 Oct 2001 23:27, Gerard Onorato wrote:
> Hello,
>
> I am a recent return to the list. Wow has the traffic grown! This is
> awesome.
>
> I have a couple of questions and one may be a RTFM but I can't find the
> answer.
>
> #1) While I thought I was extremely familiar with the MYSQL functi
> I was looking to take a string like Dan or Dan is great and return it
> like
>
> D
> a
> n...
http://www.php.net/manual/en/function.wordwrap.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To c
How do you get a SSI to work on a php page?
TIA
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> I see all the files are name php3 rather than php. When I access the
> index.php3 of course it my browser doesn't know what to do so it asks if I
> want to download it.
Sounds like you need to add ".php3" to your AddType directive in the
httpd.conf file
i.e.the line in httpd.conf that says:
> ImageJpeg: No JPG support in this PHP build in
No jpeg support. Isn't it obvious?
Recompile php --with-jpeg-dir=/usr/local
For more information:
http://database.sourceforge.net/documentation/installing_apache_with_gd_zlib_png_jpg_tiff_pdf_support.html
--
PHP General Mailing List (http://w
On Fri, 26 Oct 2001 22:36, Dan McCullough wrote:
> I was looking to take a string like Dan or Dan is great and return it
> like
>
> D
> a
> n
>
> or
>
> D
> a
> n
>
> i
> s
>
> g
> r
> e
> a
> t
>
> is it the str function that does that and if so does someone have an
> example?
>
> thanks
You can
Hi All
I have installed package GD, I am creating images with imagejpeg, but when I
load the browser a messager error appear:
ImageJpeg: No JPG support in this PHP build in
I read the GD readme and say:
gd 1.8.3 creates PNG, JPEG and WBMP images, not
GIF images. This is a good thing.
Unsecured Visa or Mastercard with credit line up to $1000,
Guaranteed!
GO HERE! -->
http://creditcardnow.com0to=4&u=6@1089728774/-ci58MM4/
::: To be removed please write,
::: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
Has anyone made a Windows executable to configure the php.ini? ... just
asking, before I find myself doing it myself.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrator
Henrik Hudson wrote:
> Inside your function define:
>
> global $server;
> global $pass;
> global $user;
> etc
>
> It is using variables insides it's own scope and unless you have use
> GLOBAL_VARIABLES defined in your php.config file, it won't go outside of it's
> scope to look for values, he
Dl Neil wrote:
> The global array is being defined in the mainline, but not populated. What happens
>if you set element 0 to some
> value (to take up some storage space first) and then try the switched function calls?
This did not produce the desired result, unfortunately. The array is filled c
On Saturday 27 October 2001 23:47, Peter wrote:
> Very easy.
>
> After I expanded the PhpMyAdmin files in the appropriate directory,
which is...?
I installed it into /usr/local/apache/htdocs/phpMyAdmin/
is that okay? It doesn't want to work correctly.
> I just
> set the appropriate server name,
Imar,
The global array is being defined in the mainline, but not populated. What happens if
you set element 0 to some
value (to take up some storage space first) and then try the switched function calls?
When you say "Alas, this also emptied the array each time I went from one function to
anothe
> Jokes aside, I still don't get it.
=the word "it" is part of the difficulty everyone faces in thinking about whether they
could help or not - what
"it" is, is not apparent
1 there is a problem with a mysql_pconnect() call, and
2 there is a problem with a mysql_query() call.
Which one is "it"?
Try this: (see http://www.php.net/manual/en/ref.outcontrol.php for more
info)
> > My problem is.. that when I do something like
> >
> > -
> > $content = show_source("/path/to/file");
> > // or
> > $content = "Blah.. blah.. ".include("/some/file").".. s
On Sunday 28 October 2001 12:57 pm, you wrote:
> It seems that when I try to connect to my database inside "function
> Table_Title()", my function cannot read the values of $server, $user,
> $pass, "$db or $table ???
you need to declare the variables as global. See below and also see the
manua
Inside your function define:
global $server;
global $pass;
global $user;
etc
It is using variables insides it's own scope and unless you have use
GLOBAL_VARIABLES defined in your php.config file, it won't go outside of it's
scope to look for values, hence they are getting asigned NULL and
Well, the switch statement will only run ONE of the functions, never both.
The default runs and then you break out of the switch, also: shouldn't
default be at the bottom of the switch? or is that just convention? Anyways,
there is no way for main() to ever "pass" anything to test_one(), since
Sigh ...
I have "functions.inc" in which I have Table_Title().
As soon as I put my database connection inside my function called
Table_Title(), my database connection fails. (See second example below.)
My database connection works fine whenever IT IS NOT inside "function
Table_Title()". (See fi
Henrik Hudson wrote:
> I would think you would need to define $array_test outside in a "global"
> environment rather then inside the function since I think/thought it will
> just stay scoped in there and that "global" was used to access variables
> which weren't defined inside a functions scope
Hey-
I would think you would need to define $array_test outside in a "global"
environment rather then inside the function since I think/thought it will
just stay scoped in there and that "global" was used to access variables
which weren't defined inside a functions scope and make it look outs
[EMAIL PROTECTED] (Christian Dechery) wrote:
> I have a script that generates quite a complex report...
>
> at this script I call several times another script that generates
> images (of course based on the main report script)...
>
> I'd like some ideas on how I can measure the WHOLE time
Hi all,
a very frustrating problem. For some reason I am not able to pass on an
array between two functions, although I declare it global in both of
them. I suspect my use of a switch statement to control the flow of the
functions is causing some trouble, but I'm not sure. Changing the order
in w
Jokes aside, I still don't get it.
$host = "localhost";
$MyAccount = "AccountName";
$MyTable = "Table1";
$MyPassword = "beep";
This works:
mysql_pconnect($host,"AccountName","beep");
$news = mysql_query("SHOW TABLE STATUS FROM AccountName LIKE 'Table1'");
Why doesn;'
Don't forget to enctype yer form
...
Mike
Olexandr Vynnychenko wrote:
>Hello Ben,
>
>Sunday, October 28, 2001, 10:04:21 PM, you wrote:
>
>BC> I am trying to let a person attach a file to my form. Can anyone help?
>
>
>Just read http://www.php.net/manual/en/features.file-upload.php.
>That's
I have a script that generates quite a complex report...
at this script I call several times another script that generates images
(of course based on the main report script)...
I'd like some ideas on how I can measure the WHOLE time it took the build
the entire page... because the images are n
Just a refresher.. I never got any feedback on this, and would
appreciate any input anyone has.
Thanks!
Ryan
> -Original Message-
> From: Ryan Christensen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 26, 2001 6:03 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Trying to create a site
Hello Ben,
Sunday, October 28, 2001, 10:04:21 PM, you wrote:
BC> I am trying to let a person attach a file to my form. Can anyone help?
Just read http://www.php.net/manual/en/features.file-upload.php.
That's quite simple.
--
Best regards,
Olexandrmailto:[EMAIL P
I am trying to let a person attach a file to my form. Can anyone help?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hello. I found this on the web after a couple of people who answered my
original request pointed me to it. It is a document that tells you how
to prevento people from inserting files directly from your site,
stealing your bandwidth.
I hope it is useful to you.
http://apachetoday.com/news_story.p
With Apache this goes in the block.
# Turn on the rewrite engine
RewriteEngine on
# The next line means ignore lines without a referrer
RewriteCond %{HTTP_REFERER} !^$
# Then ignore lines that the referrer was any host at "our_domain.com"
(the good guys).
RewriteCond %{HTTP_REFERER} !^http://.
Andrew,
Thanks for your reply. There still is something I don't understand.
I understand that my derived class inherits all the member variables and
functions of the base class. I would expect however that upon redeclaring a
variable in a derived class, the variable in the derived class "shadows
I'm not sure if you can add functionality using ./config.status, but
inside that file is the command line you used to originally compile it,
so what you can do is copy that ./configure line, then add your
--enable-ftp, and go.
Might wanna run make clean first (not distclean!)
Mike
Jeff Ganna
On Sunday 28 October 2001 10:26 am, you wrote:
> So, the question is, how do I prevent this remoting loading from
> happening.
Well, since the users are linking directly to your image, then you can't use
PHP commands to prevent it. (since that would requuire the user loading a
PHP page that th
On Sun, 28 Oct 2001, rodrigo wrote:
> So, the question is, how do I prevent this remoting loading from
> happening.
Go to the Apache site (assuming you use apache) and look at the
rewriting and so on. You'll find your answer in there.
--
Sapere aude
My mind not only wanders, it sometimes le
Hello. I run a site that has lots of pictures (jpegs). It is pretty
popular, but some visitors have gotten into the habit of going to forums
and bulletin boards on other sites and making direct links (you know,
http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
I actually have never compiled or re-compiled PHP, but if you are so
concerned about not crashing PHP, how about you set up a test server first,
play with that for a while, and then once you are happy with the results
apply them to the real server...
If you don't have a spare machine to do this o
John,
Netscape! Differences between servers AND differences between browsers AND differences
between in-browser and
command-line operations!
Isn't life fun?
Like you I'm messing around with some of these differences as part of a bid to
'convert' an existing set of
scripts from browser i/f to c
So is this a monthly thing like Lug meetings?
If it is, then count me in!
-Original Message-
From: Dariush [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 28, 2001 2:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Toronto PHP user group active.
Toronto PHP user group active.
Welcoming all
I've always had PHP set up on a shared server before. Now that I'm leasing
a server that had it installed, I can change the configuration of it.
I need to enable the FTP commands. I found the command in the FTP section
of the PHP manual, but I'm not sure hwo to actually use it.
I've tried look
Hi all,
I am trying to find out what the mime type is for files that are stored on
my webserver, so I can convert the contents into a database.
Basically, if it is in 'text/richtext' format I want to run one routine, if
it's in 'application/msword' format another routine, and everything else
ano
I use to save my access data to a dbf file and then use the dbf2mysql (see
www.mysql.com site).
dbf2mysql will create proper tables and export data to the mysql really
faster than odbc.
Very easy.
I have exported someting like 5.000.000 records into 8 differents tables in
4 hours (3 cdroms of acce
php-general Digest 28 Oct 2001 11:52:35 - Issue 961
Topics (messages 72595 through 72619):
Re: I'm not , log me out
72595 by: Matthew Loff
Re: FTP or Telnet files/directories with PHP?
72596 by: CC Zona
Re: Replace text
72597 by: DL Neil
Re: command line optio
"$host" :)
- Original Message -
From: Christian Reiniger <[EMAIL PROTECTED]>
To: jtjohnston <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: 28. listopad 2001 11:15
Subject: Re: [PHP] HELP: Still Learning
On Sunday 28 October 2001 07:18, jtjohnston wrote:
> Still learning! But need synta
> > Still learning! But need syntax help. This works:
>
> Notice something? :)
Yep, you forgot to paste the error message into the email.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact th
On Sunday 28 October 2001 07:18, jtjohnston wrote:
> Still learning! But need syntax help. This works:
> mysql_pconnect($host,"MyAccount","MyPassword");
> ...
> This does not:
> mysql_pconnect($host,"$MyTable","$MyPassword");
Notice something? :)
--
Christian Reiniger
LGDC Webma
You have to put Header( "Location:http://www.mydomain.com/mypage.html"); on
top of your php code
- Original Message -
From: Justin Garrett <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 28. listopad 2001 07:00
Subject: [PHP] Re: Problem redirecting
> From the manual:
>
> Remember t
On Friday 26 October 2001 22:32, Daelic wrote:
> I was debating perl Vs. PHP with a friend, and he came up with this:
>
> "Perl can include compiled C binaries without backprocessing them,
> which is a pretty useful trick."
Ask him what he means with "backprocessing"
--
Christian Reiniger
LGDC
On Friday 26 October 2001 10:17, Ashley M. Kirchner wrote:
> I'd like to create an array of "available resources", and be able
> to check it every time. What I'd like to do is something like;
>
> $site = array( "section1" => #, "section2" => #, etc.. )
>
> where "section*" is a STRING
Toronto PHP user group active.
Welcoming all php developers with questions and answers.
If we get enough people we will be setting up meetings but again based
on how many people we can have.
www.realsoftstudio.com
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubs
78 matches
Mail list logo