fwrite()?
Niklas
-Original Message-
From: Harphajan Singh [mailto:[EMAIL PROTECTED]]
Sent: 22. tammikuuta 2002 9:51
To: [EMAIL PROTECTED]
Subject: [PHP] Writing to text file from Radio Buttons
Greeting dudes ! I`m a fresh user of PHP and need some technical
assistance from you
Hi,
Use intval(2.05);
I hope this will do the needful for you.
with regards,
Sukumar .S
On Mon, 21 Jan 2002, Jerry wrote:
Date: Mon, 21 Jan 2002 13:35:34 -
From: Jerry [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Integer in PHP
Hi,
I'm new in PHP, coming from
[EMAIL PROTECTED] (Justin French) wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]:
Hi all,
I've got into the habbit of pulling data out of a table something like
this:
$sql = SELECT * FROM cd_review WHERE publish='yes' ORDER BY id DESC
LIMIT 3;
$sql_result = mysql_query($sql);
Hi,
I'm using sessions extremely to do that.
with regards
Sukumar .S
On Tue, 22 Jan 2002, Floyd Baker wrote:
Date: Tue, 22 Jan 2002 01:17:18 -0500
From: Floyd Baker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Passing. Which method to use?
Hi once again.
What's the
Hi All
In all my sessions sites when I had to move from the primary domain using
session to a secondary domain (like from www.domain.com to
secure.domain.com) I added the PHPSESID to the URL and the session in the
new site continued from the previous Domain.
in 4.1.1 when I move from the
Garth,
my two cents...
=thank you for the description - it is worth more than a figurative two cents!
I used to work at a newspaper we used a very elaborate
caching system, it used to function at the at the
page subcomponent level (i.e. header, footer, left nav, articles
were all stored
Use html form for user input with text field for user name and password
filed for password. Hold password encrypted using MySQL password() function
and check login by SELECT * FROM users WHERE user='$user' AND
pass=PASSWORD($password). If (mysql_num_rows($result)) login = true;
Tim
I found everything I needed to upload images here:
http://www.php.net/manual/en/features.file-upload.php
http://www.php.net/manual/en/features.file-upload.php
Tim
www.chessish.com http://www.chessish.com
--
From: will hives [SMTP:[EMAIL PROTECTED]]
Sent: 21
Hello! Is there a PHP-function to split binary files into pieces of a
several size and glue them together later?
Martin
--
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
Why would you expect these functions to do anything on the client machine?
These are for printers attached to the server.
Tim
www.chessish.com http://www.chessish.com
--
From: James Mclean [SMTP:[EMAIL PROTECTED]]
Sent: 21 January 2002 23:48
To:
This generates a parse error if Draw_Table() doesn't exist rather than
returning false, unless there's something in my set up that's different to
yours.
Tim
www.chessish.com http://www.chessish.com
--
From: val petruchek [SMTP:[EMAIL PROTECTED]]
Sent: 21
Michael
the Why PHP on zend.com is a great place to go for this sort of
stuff...
Honestly, it doesn't seem all that professional a resource paper...
I would tend to agree - not something you could show to a hard-headed
corporate purchasing committee with any confidence.
I believe Java
Hi there,
First off this may be more of a javascript question than PHP question
but I was wondering if anyone else has attempted something similar (and
it does involve the deletion of PHP sessions).
Here's the scenario: I have a 'stand alone' website on our intranet
which creates a PHP session
I need to build a php-chat (online support system), but in realtime.
I've develope a system that refresh in browser client in 5 seconds. But
i need a system that works in realtime, what i meen is when a client or
the server send a message, the browser refresh when a message was sent.
All this
I've been following this discussion and has anyone tried smarty? smarty is
a template but also does caching. haven't tried it but i think you can set
the cache to be like 30 seconds and it will display a cached html page
instead of hitting your database. i think you can also cach only
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 22-01-02 at 11:30
* Neil Freeman said
Does anyone have any suggestions as to how I could achieve the
following:
a) Browser window closed by user clicking on [X]
No but I'm sure someone will.
b) 'Logging out' page opened (which
OK I agree with you there :) But as I haven't called the session_destroy()
function the session file still resides in the session.save_path directory.
Over time the number of these files will obviously increase so isn't it
better to implement a method which calls the session_destroy() function
The server can controll the Refresh and the cache expiry through headers
sent when the page is requested by the client.
add this to expire client content every time a request for the same page is
sent.
header(Pragma: no-cache);
add this to refresh client content every 5 sec
meta
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 22-01-02 at 11:46
* Neil Freeman said
OK I agree with you there :) But as I haven't called the session_destroy()
function the session file still resides in the session.save_path directory.
Over time the number of these files will
That was not the problem, i need something that keep the conection
between client and server.
On Tue, 2002-01-22 at 10:51, Ben-Nes Michael wrote:
The server can controll the Refresh and the cache expiry through headers
sent when the page is requested by the client.
add this to expire client
Hi all,
Can anyone tell me why, when I run this
$number = rand (1,12);
The only number that ever appears is 5?
Not really a random number...
Thanks
Sam
OK I'll have a look around. Thanks for your time Nick.
Nick Wilson wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 22-01-02 at 11:46
* Neil Freeman said
OK I agree with you there :) But as I haven't called the session_destroy()
function the session file still resides in
On Tuesday 22 January 2002 18:52, Sam wrote:
Hi all,
Can anyone tell me why, when I run this
$number = rand (1,12);
The only number that ever appears is 5?
Not really a random number...
You need to seed the random number generator using srand(). Best to read the
online annotated manual
Can anyone tell me why, when I run this
$number = rand (1,12);
The only number that ever appears is 5?
Not really a random number...
You need to seed the random number generator first.
http://www.php.net/srand
HTH
Jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Josepablo,
Hey guys guess what.. the problem is fixed the was that at mailaddr.txt sense
the e-mails are each on one line each line has \n that crashed when asigning it
at mail() , ill make a note of this on the manul.. I have included below the
script iam now using.. what do you guys think?
Uhhh? Closing a browser window, does definetly NOT delete the session.
Closing a Browser Window simply does nothing on the Server-Side, so there's
no command to delete a session executed. If someone manages to grab the
sessionid (or the cookie) and opens the Page again, the session is still
Actually PHP has a garbage collector that periodically it cleans deletes
all those old session files. I believe you can set the time it cleans these
files up in the php.ini file. Now that you know where to look a search
should be able to answer this question more fully than I can and with more
hey, i thought about this problem last time, i figured out that there's NO WAY to do
this in php, (the auto refresh does not count). somebody pls prove me wrong.
intrested to continue this discussion
David
I need to build a php-chat (online support system), but in realtime.
I've develope a
u used password() to encrypt the value in mysql?
u can get back a encrypted value of a value by doing a select password('secret'); in
mysql, it will return u the encrypted value, check this value against the encrypted
password in mysql.
is this what you're asking? :)
I've asked this several
here is a piece o fcode that looks up user ip from env vars recursively
?php
if($HTTP_X_FORWARDED_FOR)
{
$ip = $HTTP_X_FORWARDED_FOR;
}
elseif($HTTP_VIA)
{
$ip = $HTTP_VIA;
}
elseif($REMOTE_ADDR)
{
$ip = $REMOTE_ADDR;
}
else
{
$ip = unknown;
}
?
I dont think its possible without Java programing.
If there is other solutions ill be glad to hear.
--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il
--
- Original Message
Hy - i hope someone can help me - please
i need an url for downloading the swflib or another swflibarie for use with
php (and some information about it). I dont find it under the url given in
the phpmanual. Have someone informations or expirience ??
Please Help
Thanks
--
PHP General
Hi everybody!
I'm a bit lost. The original problem was (and still is) to get the Euro
symbol from a iso-8859-15 string into the HTML code output by a PHP-script
(4.0.6 by the way).
At first it worked fine using htmlentities(¤,ENT_QUOTES,iso-8859-15).
However, this is a bit long, I would have
Hy - i hope someone can help me - please
i need an url for downloading the swflib or
another swflibarie for use with
php (and some information about it). I dont find
it under the url given in
the phpmanual. Have someone informations or
expirience ??
Please Help
Thanks
--
PHP General Mailing
Use this:
function debugPrint($mVar, $bHtml) {
if ($bHtml){
echo pre;
print_r ($mVar);
echo /pre;
} else {
print_r ($mVar);
}
}
call it like this:
debugPrint($yourVariable,1);
This will print out any type (object,array,ressource,string...)
- Original Message -
From:
Where can I find some information about Authentication Pages, login, pass,
using php, apache and mysql?
Thanks.
Nicolas Llamosas
_
MSN Photos es la manera más sencilla de compartir, editar e imprimir sus
fotos favoritas.
Hi guys,
I've an index script which views the contents of a directory on a unix
server. This unix server has also got file with windows naming convesion,
which makes a file with spaces look like this /this\ is\ an\ example/.
The file name itself appears fine but there is also a link to the
hi,
Thnx for the info but this is what I am using right now... It prints the
contents of array one below the other... is not showing the format of the
contents as i want...:(
any more suggestions??
thnx,
sands
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent:
how about ...
function ShowArray($array)
{ echo(ul);
foreach ($array as $key=$value)
{ echo(li$key)
if (is_array($value))
{ ShowArray($value);
} else
{ echo(=$value);
}
Hi,
Simply... test for HTTP_X_FORWARDED_FOR if it exists, then your client
are behind a proxy server, the REMOTE_ADDR is the proxy IP, and
HTTP_X_FORWARDED_FOR is the client IP (if not faked by the proxy).
hope this helps,
Hi
is there a recommendable site where I can find a .rpm (PHP 4.06 or higher) working on
a Cobalt RaQ4? (I found some for RH6.x 7.x but they didn't work. I got the message
only packages with major numbers = 3 are supported by this version of RPM)
Any hints are appreciated!
TIA best regards
I dont think its possible without Java programing.
its posible to keep a http connection open and trust on flush() to send some
data to the client, if this data contains javascript you could update a
window or something... if you want to make this safe: make sure you use a
combination of a open
I've been kidding around with a chat experiment of my own a few weeks ago and
stumbled in the same problem with refresh, so I'm quite interested in this
discussion. So, ok, I didn't know about flush() at all, but how do you keep the
http connection open in the first place? Just keep looping in
rawurlencode() is the answer to your question.
Bogdan
Kevin Garrett wrote:
Hi guys,
I've an index script which views the contents of a directory on a unix
server. This unix server has also got file with windows naming convesion,
which makes a file with spaces look like this /this\ is\
if you are using it for debugging try
print_r()
OR
var_dump()
--
Wolfram
function debugPrint($mVar, $bHtml) {
global $HTTP_REFERER;
if (is_array($mVar)){
$sTemp = Array;
}
if (is_bool($mVar)){
$sTemp = Bool;
}
[snip]
...
$sFunction = debugPrint$sTemp;
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 22-01-02 at 13:49
* Nicolas Llamosas said
Where can I find some information about Authentication Pages, login, pass,
using php, apache and mysql?
All the usuall places. Have you not seen these sites:
www.phpbuilder.com
www.devshed.com
Dear Gyozo
You have sent me the following solution thru php mailing list.
I have also asked you a doubt about the syntax.
I want to explain this syntax to my colleagues, could
u
pls point me to any documentation of this syntax or any article.
if possible pls explain
Hi,
i have create a simple php class to learn how to oop programming, like this:
class mysqldb {
var $dbconn;
function OpenCon($DBHOST,$DBUSER,$DBPASS){
$this-dbconn = mysql_connect($DBHOST,$DBUSER,$DBPASS);
}
}
this is a simple example...
but when i inherit the class,
php
I dont think its possible without Java programing.
its posible to keep a http connection open and trust on flush() to send
some
data to the client, if this data contains javascript you could update a
window or something... if you want to make this safe: make sure you use
a
combination
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 22-01-02 at 15:08
* Charles said
php give me a error,
call to undefined function: mysql_connect()
php think that mysql_connect is my private function ?
obvious question
Have you used mysql functions in that enviornment (without a
i forgot to mention in my last code sniplet:
just run the script (maybe touch a new file in /tmp and give it readwrite
rights)... you will have a run for 30 seconds (the php timeout)
if you want to add a line edit the file manualy or use the sniplet:
sniplet.php?new=mynewline
:)
--
PHP
nope...
It continues to print in a single column indexed from 0 to It does not
print the sub elements as sub elements.
any more ideas???
regards,
sands
-Original Message-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: terça-feira, 22 de Janeiro de 2002 12:56
To: Sandeep
I may have lost the original problem, but I thought you wanted a way of
displaying the structure of an array hierarchy,
e.g.
$fred[0][0] = array(length=10, width=20);
$fred[0][1] = array(length=20, width=30);
$fred[0][2] = array(length=30, width=20);
$fred[0][3] = Hello world;
$fred[1] = another
how about:
?
$a = array(dit = array(zus, zo, bla), nog = array(wat, van,
dit = array(is, dat)), bla);
function displayarr($arr)
{
$c = ;
echo array(;
foreach($arr as $key = $val)
{
if($c)
echo , ;
if(is_array($key))
displayarr($key);
else
echo \.$key.\
Hi there!
It sounds like you do not have mysql support compiled into PHP. You didn't
say if you were using PHP on Windows or Linux so you might want to read the
documentation for the respective version that you have downloaded to find
out how to compile MySQL support into your PHP
the 'smarter' way would be having a client side programming language open a
socket to the server (read: the php script running). the only realy useful
language is javascript becouse flash and java are not portable on some
platforms. the next problem is javascript isnt able (for security
I have not done it, but i can be done by using a form and
calling the shell script that does the job.
Of course shell script has to be executable by everybody.
It may be a security concern.
or, you can add the shell script to your cron tab.
and keep the password change requests in a file and
send us the code that inherits your mysqldb class...
--- Charles [EMAIL PROTECTED] wrote:
Hi,
i have create a simple php class to learn how to oop
programming, like this:
class mysqldb {
var $dbconn;
function OpenCon($DBHOST,$DBUSER,$DBPASS){
$this-dbconn =
Hey!
No need to apologise!!! If it werent for guys like u newbies like us would
hv a head full of grey hair!! honestly, methinks u guys rock!!
well, coming bak to the problem, I guess I have the posted the same problem
a few times in this list and receiving none or different answers
may i
How cam I make Prev Next Buttons with
ODBC+ACCESS XP by PHP :(
i haven't been following this, but have you guys thought of ircg?
http://php.net/ircg
ircg is a lot of fun and could be used as the server system for message
management, the real problem is how to get the data to the client without
use of a socket
ircg also needs an ircd which is a little to
phpbuilder has a good article on prevnext buttons, the code is based on
mysql but take a look at the mysql odbc functions... view, compare and
adjust to your needs:
http://www.phpbuilder.com/columns/rod20001214.php3
with kind regards,
Joffrey van Wageningen
ne2000.nl
- Original Message
it's kinda impossible since HTTP is a STATELESS PROTOCOL
Nuno Mariz [EMAIL PROTECTED] wrote in message
1011695546.3467.5.camel@sputnik">news:1011695546.3467.5.camel@sputnik...
I need to build a php-chat (online support system), but in realtime.
I've develope a system that refresh in browser
I need to build a php-chat (online support system), but in realtime.
I've develope a system that refresh in browser client in 5 seconds. But
i need a system that works in realtime, what i meen is when a client or
the server send a message, the browser refresh when a message was sent.
All
I understand now, your problem is not how display the array but how to get
it in a meaningful structure in the first place
i.e.
$app[0][name] = san;
$app[0][age] = 23;
$app[0][app][name] = san;
$app[0][app][age] = 23;
etc.
is that valid XML? (I'm not that up on XML and can't find anything in the
exactly!
fancier regular expression is what I am looking for here:)
thnx anyway...
if anyone else has any suggestions.. welcome...
regards,
sands
-Original Message-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: terça-feira, 22 de Janeiro de 2002 16:13
To: Sandeep Murphy; Tim
Hi list,
I do a small test on mysql_connect() and mysql_pconnect(),
and discover a strange behaviour.
?
$cid1 = mysql_pconnect($host,$user,$pass) or die(cant connect1);
$cid2 = mysql_pconnect($host,$user,$pass) or die(cant connect2);
echo $cid1, $cid2;
?
the output if using mysql_connect():
Actually, I'd be interested to know why the same connection is used for two
connections to the same database?
I'm guessing people could fall over this trying to do, say, unbuffered
queries through one to fetch a huge result set, and normal queries through
another to make changes
Of
Thanks Bogdan,
From: Bogdan Stancescu [EMAIL PROTECTED]
To: Kevin Garrett [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] How to get php to accept spaces in a file name?
Date: Tue, 22 Jan 2002 15:30:39 +0200
rawurlencode() is the answer to your question.
Bogdan
Kevin Garrett
Hi Shane,
Actually, I'd be interested to know why the same connection is used for two
connections to the same database?
I'm guessing people could fall over this trying to do, say, unbuffered
queries through one to fetch a huge result set, and normal queries through
another to make
just to announce that SimpleTemplate is also capable now of
configuring each template individually
you either write a block like this:
SimpleTemplate
options override=yes
delimiter begin=[ end=]/
autoBraces value=true/
locale value=en/
/options
/SimpleTemplate
Hi,
so for all who care:
I will begin pearifying Metabase starting next week.
Obviously this will take a fair amount of time. Also I am fairly busy
with work so any help is greatly appreciated.
This is also my first stab at reworking such a huge amount of code that
was originally written by
Hi,
I'm having a little trouble with this join statement I'm working on. What I
*think* is happening is that PHP is getting confused with the ID field
that is the same for the three different tables. When I go through the
result set, you can see that the field ID gets used a couple of times.
You need to either alias the columns i.e. career.id as careerid or rename your columns
i.e. change the id to careerid calendarid. The second option would be best because
that way your columns are descriptive.
HTH
Clint
-- Original Message --
From:
Can anyone tell me why this script doesn't work properly. I've coded it
several others ways including using is_dir pointing to the full path.
Nothing works reliably, it works sometimes/sometimes not.
One interesting thing is that my PHP ecommerce app (osCommrce) is run and
then my script is run
On Tue, 22 Jan 2002, Joffrey van Wageningen wrote:
socket to the server (read: the php script running). the only realy useful
language is javascript becouse flash and java are not portable on some
platforms. the next problem is javascript isnt able (for security reasons)
to open a socket to
Hi list,
again with my question, but now a bit different: I guess the current
version of PHP doesn't support the connection to a MySQL server using the
SSL features provided by the 4.x series of MySQL for an encrypted
connection (correct me if I'm wrong, please). Is it planned to include
this
Sorry for bringing this topic up yet again, but I'm having a real problem
with the details of implementing a templates system. I'm read all the
tutorials, articles, emails etc, but was hoping others on this list with the
same problems could share how they solved them.
Now I understand the basic
Hi all. Never mind my previous post. I fixed my SQL statements by using
AS statements.
For example:
SELECT calendar.ID AS calendar_ID,calendar.Calendar_Title AS
Calendar_Title,calendar.Add_To_Scroller AS calendar_Add_To_Scroller...
That worked like I wanted it to.
Thanks!
mto
--
I use cachedFastTemplate for caching Dynamic content.
http://px.sklar.com/code.html?code_id=312
Used in conjection with FastTemplate class. Very useful.
Also see:
http://www.php.net/manual/en/function.ob-start.php
Output buffering in php can be used to cache dynamic content.
Robert V. Zwink
This may be a silly question . . . where is the information that sessions
hold actually kept? Are cookies generated? Do sessions just simplify the
process of generating those cookies and keeping track of that information?
I have access to PHP3 as an apache module, and PHP4 as a cgi...I'm
We use iPlanet on Windows for a number of our servers, and have succesfully
installed PHP 4.0.6 on NES 4 on NT, with the NSAPI install. There was one
step that we had to do, which wasn't in the manual, however - which was
making sure that the domain field in the server's TCP/IP Settings was
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Johnson, Kirk blurted
By default, session data is stored in a file in /tmp, but you can specify
another place, like a database. PHP generates a session id, which is part of
the filename of the session file. PHP passes a cookie
On Tue, 22 Jan 2002 14:21:56 +0530 (IST), you wrote:
Hi,
I'm using sessions extremely to do that.
with regards
Sukumar .S
On Tue, 22 Jan 2002, Floyd Baker wrote:
Date: Tue, 22 Jan 2002 01:17:18 -0500
From: Floyd Baker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Passing.
* Manuel Lemos wrote:
I think that the greatest point of the merger is to have one and only
one abstraction layer in PEAR,
I think consensus was that there shouldn't be the one and
only XYZ PEAR class but more than one XYZ PEAR class (like
IT[X] and the PEAR rewrite of PHPLib's Template
I will first focus on the functional aspects, then step by step making
the necessary changes to make that final code compliant to the PEAR
coding standard.
This makes no sense for PEAR.
I propose this way:
1. pearize Metabase (functionNames, using PEAR_Error)
2. commit the stuff to PEAR
* Manuel Lemos wrote:
I think that the greatest point of the merger is to have one and only
one abstraction layer in PEAR,
I think consensus was that there shouldn't be the one and
only XYZ PEAR class but more than one XYZ PEAR class (like
IT[X] and the PEAR rewrite of PHPLib's Template
87 matches
Mail list logo