Hi,
Tuesday, December 31, 2002, 5:14:18 PM, you wrote:
LKB Thanks... thing is, it can be anything from c:\whatever.exe to
LKB c:\program files\program name\bin\program.exe. I'll write a function
LKB that goes to each directory in a string and does a dir /x if I have to,
LKB but isn't there a
Hi,
Tuesday, December 31, 2002, 4:54:36 PM, you wrote:
e hi i've just started a job and they are sadly using php3 , what is the work
e around for the session handling limitation ? i have an authentication class
e which will not work now beause it cant handles sessions :|
Have a look at phplib
Hello friends.
Happy New Year to you all.
Our school holds many seminars of varying durations and dates. I want to make a page
which says What's on today which will show all the seminars that are on today.
However the entry in the database will show two fields Commencing Date and Ending
date.
Am working through document to collect pieces that match and then insert
them into an array so they can be used to construct another file.
Looking in my doc for lines like this:
{\*\cs43 \additive \sbasedon10 db_edition;}
{\*\cs44 \additive \sbasedon10 db_editor;}
{\*\cs45 \additive \sbasedon10
Edward Peloke [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Thanks,
I tried it and don't get a blank line but it still shows all the code when
opened in word. Forgive how lengthy it is but here is the actual code: I
tried escaping the special characters in
Leif K-Brooks [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I need a way to keep the script running on the server, but control to
the user. I'm doing some lengthy processes on the server, and it seems
stupid to keep the user waiting pointlessly. I'm trying
I was able to successfully install the php on my win2k server. I am,
however, getting an error any time I try to initialize a variable. This is
the error I am getting:
Notice: Undefined index: adv_auth in ...\mysql\lib.inc.php on line 132
I am not sure as to whether I forgot to do something when
Dale [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I was able to successfully install the php on my win2k server. I am,
however, getting an error any time I try to initialize a variable. This is
the error I am getting:
Notice: Undefined index: adv_auth in
At 05:23 PM 12/31/02 +0800, Denis L. Menezes wrote:
Hello friends.
Is there a routine in PHP I can use to find if today's date fits between
the commencing date and the ending date?
SELECT * FROM Table WHERE NOW() = StartDate AND NOW() = EndDate
Rick
--
PHP General Mailing List
You forgot global $adb; at the beginning of your function, or use
$sth = $GLOBALS['adb']-prepare($query);
Martin S wrote:
NOW what am I doing wrong??
function setCurrentDevGroup($devID)
{
$query = SELECT dev_group FROM tracking WHERE (computer = $devID);
$sth =
You could do
UPDATE table SET blob_field = CONCAT(blob_field, '$next_chunk')
but I'm not sure if your sql server will not read the whole field into
memory anyway.
Mike Brancato wrote:
if I wanted to read a very large object into a blob field, is there a way i
could do it in 1MB chunks. using
This is just a notice, somewhere in the code is something like this
if($array['index']=='something') do_something();
but $array['index'] is undefined. Should be
if(is_array($array) array_key_exists('index',$array)
$array['index']=='something') ...
(which is quite long). Another option is to set
Marek Kilimajer wrote:
You forgot global $adb; at the beginning of your function, or use
$sth = $GLOBALS['adb']-prepare($query);
Nope sorry, I've just edited it from my post here. It is in the function.
/Martin S.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
David Pratt wrote:
Am working through document to collect pieces that match and then insert
them into an array so they can be used to construct another file.
Looking in my doc for lines like this:
{\*\cs43 \additive \sbasedon10 db_edition;}
{\*\cs44 \additive \sbasedon10 db_editor;}
Hi All,
I'm trying to run a parameterised query in MS Access using odbc_prepare and
odbc_execute but to no avail.
The error message I'm getting is:
Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] Too few
parameters. Expected 1., SQL state 07001 in SQLExecute in c:
On Tuesday 31 December 2002 20:02, Martin S wrote:
Marek Kilimajer wrote:
You forgot global $adb; at the beginning of your function, or use
$sth = $GLOBALS['adb']-prepare($query);
Nope sorry, I've just edited it from my post here. It is in the function.
Hmm, whenever you post code to the
escape $ with \,
input type='text' name='nom$i' value='\$nom$i'
Alexander Guevara wrote:
hi.. i have this and i cant get it work!!..
HERES THE CODE
---
for ($i=1;$i11;$i++){
Jason Wong wrote:
On Tuesday 31 December 2002 20:02, Martin S wrote:
Marek Kilimajer wrote:
You forgot global $adb; at the beginning of your function, or use
$sth = $GLOBALS['adb']-prepare($query);
Nope sorry, I've just edited it from my post here. It is in the function.
Hmm,
On Tuesday 31 December 2002 20:48, Martin S wrote:
This is the function which should return e.g. printers for $lookuptable.
But doesn't.
function setCurrentDevGroup($devID)
{
global $adb;
$query = SELECT dev_group FROM tracking WHERE (computer =
$devID);
Have fun reading!
Indeed a funny reading!
The only thing i missed was the december diberauschendenscussion Quoting
behaviour exposed.
Reference:
http://news.php.net/article.php?group=php.devarticle=%3CPine.LNX.4.50.0212281820140.1306-10%40eco.foo%3E
Happy new year and hopefully an
On Tue, 31 Dec 2002 02:14:18 -0500, you wrote:
Thanks... thing is, it can be anything from c:\whatever.exe to
c:\program files\program name\bin\program.exe. I'll write a function
that goes to each directory in a string and does a dir /x if I have to,
but isn't there a simpler way?
I don't
Jason Wong wrote:
On Tuesday 31 December 2002 20:48, Martin S wrote:
This is the function which should return e.g. printers for
$lookuptable. But doesn't.
function setCurrentDevGroup($devID)
{
global $adb;
$query = SELECT dev_group FROM tracking WHERE
On Tuesday 31 December 2002 21:44, Martin S wrote:
But something like:
echo setCurrentDevGroup($devID);
That gives the correct value as well. But I wanted it as a variable
($lookuptable) ...
What I am trying to do is:
setCurrentDevGroup($this-Computer); // call function and get a
Jason Wong wrote:
If you want it so that the value of $lookuptable (in the global scope) is
changed when you call your function then you have to do something like:
?php
function doo($dah, $dee, $etc) {
global $lookuptable;
$lookuptable = Hello world;
}
doo(1, 2, 3);
so you want
$lookuptable=setCurrentDevGroup($devID);
switch($lookuptable) { ...
Martin S wrote:
Jason Wong wrote:
On Tuesday 31 December 2002 20:48, Martin S wrote:
This is the function which should return e.g. printers for
$lookuptable. But doesn't.
function
Hello all,
For some reason, I have one computer running php that I can't get the mail function to
work on. I get this error:
Warning: Failed to Receive in c:\program files\apache group\apache\htdocs\mailtest.php
on line 2
The machine is running windows and apache as the web server. In my
Our school holds many seminars of varying durations and dates. I want
to
make a page which says What's on today which will show all the
seminars
that are on today. However the entry in the database will show two
fields
Commencing Date and Ending date.
Is there a routine in PHP I can use to
Now I tried this on the Windows list but didn't get any replies. I also found an old
thread on another site that Rasmus had replied to and I tried that suggestion but no
luck.
I just ran the PHP installer and it set it up as a cgi I guess. I'd do the other way
if I could find complete
I just upgraded to php 4.3.0 and all by bulletin board are now returning
error about the mail function:
Fatal error: Call to undefined function: mail() in
/var/wwwx/htdocs/forum/private.php on line 687
I've checked in the pear list of installed packages and I have the
latest mail (1.0.2).
I'm running the following sql query which outputs a repeat value for each
field in the html cell box.
Like this:
..
3.3 3.3 78 78 2002-06-11 2002-06-11
...
which is not what I would like.
I was trying to get:
.
3.3 78 2002-06-11
Wondering if anyone else has run into the following problem (or if I'm missing
something totally obvious). I've got a program that basically generates a key
and certificate for a user who enters all the associated information (common
name, passphrase, etc). So I've created a dummy CA cert and key
php-general Digest 31 Dec 2002 15:58:36 - Issue 1795
Topics (messages 129728 through 129779):
Re: SQL Error
129728 by: John W. Holmes
Re: PHP Look Back 2002
129729 by: John W. Holmes
Making tr with $values!!!
129730 by: Alexander Guevara
129732 by: Maciek
Hi,
I think changing
while(list (,$value) = each ($line)) {
to
foreach ($line as $value) {
might help but I'm unsure, either way foreach is easier to read :)
Andrew
- Original Message -
From: Anthony Ritter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 31, 2002 4:47 PM
Stuck on this join temp
From one table I need to
mysql_query(CREATE TEMPORARY TABLE temp TYPE=HEAP SELECT DISTINCT
field1, field2 FROM $table);
both field1 and field2 have various repeating data and I need to return
only the first occurance of the distinct data along with the rest of the
data
Hi,
Wednesday, January 1, 2003, 2:47:57 AM, you wrote:
AR I'm running the following sql query which outputs a repeat value for each
AR field in the html cell box.
AR Like this:
AR ..
AR 3.3 3.3 78 78 2002-06-11 2002-06-11
AR ...
AR which is not what I would
On Tue, 31 Dec 2002 10:47:57 -0600 [EMAIL PROTECTED] (Anthony Ritter)
wrote:
while($line = mysql_fetch_array($result)){
print \ttrtd bgcolor=\#FF\Font Face=\arial\ size =2\n;
while(list (,$value) = each ($line)) {
Thats just wrong, mysql_fetch_array returns an array with all the
Um where is $lookuptable set? Seems like you should have:
$lookuptable = setCurrentDevGroup($this-ComputerID);
$query = SELECT name FROM $lookuptable WHERE (ID=$this-ComputerID);
echo $lookuptable; // gives an empty string.
andy
Martin S wrote:
NOW what am I doing wrong??
function
Hello Everyone,
I want to DELETE multiple items of multiple TABLES in a MySQL database. My
version of MySQL is 3.23, which means this version doesn't support the
DELETE functionality on multiple tables. The following is my PHP code, where
$item_id is a multi-dimensional array containing the ids
I think I was once able to assign to the $this reference in the
constructor of a php class. I don't seem to be able to do this anymore.
Is this new in 4.3?
Is there anyway to alter what object is returned from a php class
constructor?
For instance, there might have been an error so you would
Hi, all --
I'm so far about knee-deep in my project where I'll be using php to talk
to the mysql database and spit out my web pages. I wonder if I should be
making individual calls to the database or loading a table into an array
so that I can walk it without those calls.
For instance, I have
From experience, I don't think you can run more then one SQL statement at
once in a single time. Try assigning each variable with delete, then query
them all seperately. I also don't think you need the ; in the SQL
statement...
- Original Message -
From: @ Nilaab [EMAIL PROTECTED]
To:
Try encoding like this:
$retval = base64_encode(serialize( domxml_open_mem( $xml )));
and on the next page:
$xml = unserialize(base64_decode($xml));
It works via html but don't know enough about soap
Well, you don't have to use soap - you can use sessions and get the
same result.
As for your
What you could do is put your 'lengthy process' in a shutdow function
(register_shutdown_function()), and just do the header.
There is actually even a simpler way to do this, but it's not advised:
-
first
?php
@set_time_limit(0); // Make sure there is no limit
Usually,
using mysql to handle your tables is *way* faster than letting php
handle it.
That's what it was made for, speed...!
In your case, you could just do a complex join I think. That would give
all results in one table, and you could just order that on scheduletime,
and voila, you'd
Hi,
obviously, I don't if this is the right newsgroup to ask such questions, but
here it goes...
what has happened with FastCGI support on the 4.3 version of PHP?
On changelog I saw that SAPI/FastCGI was discontinued.
But when I do phpinfo() it reports Server API : CGI/FastCGI
and when I go
Tularis, et al --
...and then Tularis said...
%
% Usually,
% using mysql to handle your tables is *way* faster than letting php
% handle it.
Hmmm... OK. But that's so many queries... Or is it?, he asks,
reading farther.
%
% That's what it was made for, speed...!
Well, yeah, I figured
I'm using exec().
Frank M. Kromann wrote:
PHP should not have any problems with long file names. I use it often on
both WIndows 2000 and Windows XP without anu problems.
What is it you are trying to do ?
- Frank
Thanks... thing is, it can be anything from c:\whatever.exe to
c:\program
Could somebody please tell me what I'm doing wrong here?
The code is:
?php $filename= tables/contacts.txt;
$fd=fopen($filename, a);
fwrite($filename, xyz);
fclose($fd); ?
And I get the following error message:
Warning: fwrite(): supplied argument is not a valid File-Handle resource in
The $fd is the file handler now not the $filename.
Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]
HiTCHO | Open Platform Web Development
Consutling - Outsourcing - Training - Support
- Original Message -
From: Alberto Brea [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January
Tularis, et al --
...and then David T-G said...
%
% ...and then Tularis said...
% %
% % Usually,
% % using mysql to handle your tables is *way* faster than letting php
% % handle it.
...
% %
% % In your case, you could just do a complex join I think. That would give
%
% Ahhh... A new term.
Try
?php
$filename= tables/contacts.txt;
$fd=fopen($filename, a);
if(!($fd)){
die(Unable to open file);
}
fwrite($fd, xyz);
fclose($fd);
?
*** REPLY SEPARATOR ***
On 31/12/2002 at 5:27 PM Alberto Brea wrote:
Could somebody please tell me what I'm doing wrong
I am having a problem getting Apache to load the php4apache.dll.
I have tried putting the / and \ in every way I can think of and I
get an error that Apache cannot find
c:/active_php/sapi/php4apache.dll (and it IS there).
LoadModule php4_module c:/active_php/sapi/php4apache.dll
I have even
On Mon, 2002-12-30 at 06:59, Sridhar Moparthy wrote:
Hi Jimmy,
Thank You for the your reply. Here is the example.
If
1. Jobs 'B' and 'C' starts immediately after Completion of job'A'
2. Job 'D' starts after completion of both Jobs 'B' and 'C'.
3. Job 'E' starts after completion of job
Hi,
Using PHP with cURL, I am currently able to dynamically create XML
documents and HTTP POST to a remote server, receive an XML response, and
parse XML as needed.
What I am having trouble finding information on is doing the reverse.
Basically, I am trying to create a PHP script that acts as
I have just installed 4.3.0 with apache2.0.43.
Running a standard test.php file consisting solely of:
?phpinfo(); ?
results in incorrect html with the image sources of the logo incorrectly
formed. See below. The src=d/public_html/test.php?=PHP... should, I
think be
- Original Message -
From: Richard A Downing [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 31, 2002 5:54 AM
Subject: [PHP] Missing logos
I have just installed 4.3.0 with apache2.0.43.
Running a standard test.php file consisting solely of:
?phpinfo(); ?
results in
I don't do Windows all that often, so I'm not sure this will work, but I
seem to remember this problem a while back. You may want to try putting
the php4apache.dll in the same directory as all the dll's that came with
Apache, and load it like this
LoadModule php4_module php4apache.dll
Sorry to bug, but any ideas?
David J. Johnson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is there any way to use strtotime on dates earlier than the Unix epoch?
I'm
using strtotime to reformat the date information for insertion into MySQL.
I know that if
The variables will created (as of 4.x) in the $_POST and $_GET global arrays
and you
can then access them using what ever functions you need to use.
As for XML if it is posted as raw you will get an error from Apache saying
Bad Request.
I have just setup an example to see what is possible to get
I have just installed 4.3.0 with apache-2.0.43.
I did not have this problem with 4.3.0RC4 which this build overwrote.
My system is Linux-2.4.21pre1, gcc-3.2.1, glibc-2.3.1.
Running a standard test.php file consisting solely of:
?phpinfo(); ?
results in incorrect html with the image sources of
I was hoping for better news. Thanks for the suggestion, but it will put a
very big strain on my application since every DELETE query will open and
close the mysql connection everytime. Think about deleting 100s of records
one at a time. Surely someone has thought of a better way to do this with
You can post to your server with a mimetype of text/xml
and in your script pickup the raw post as:
$HTTP_RAW_POST_DATA
Then just process this string as XML and return to buffer or not.
Have fun.
Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]
HiTCHO | Open Platform Web Development
Consutling -
On Tuesday 31 December 2002 22:05, Edward Peloke wrote:
Hello all,
For some reason, I have one computer running php that I can't get the mail
function to work on. I get this error: Warning: Failed to Receive in
c:\program files\apache group\apache\htdocs\mailtest.php on line 2
The machine
On Wednesday 01 January 2003 00:21, John Hinton wrote:
Stuck on this join temp
From one table I need to
mysql_query(CREATE TEMPORARY TABLE temp TYPE=HEAP SELECT DISTINCT
field1, field2 FROM $table);
both field1 and field2 have various repeating data and I need to return
only the first
On Wednesday 01 January 2003 06:30, [EMAIL PROTECTED] wrote:
I was hoping for better news. Thanks for the suggestion, but it will put a
very big strain on my application since every DELETE query will open and
close the mysql connection everytime. Think about deleting 100s of records
one at a
Using PHP with cURL, I am currently able to dynamically
create XML documents and HTTP POST to a remote server,
receive an XML response, and parse XML as needed.
What I am having trouble finding information on is doing
the reverse. Basically, I am trying to create a PHP script
that acts
After wasting a day on trying to get Apache to load PHP, I discovered
what I believe to be the probllem, but no solution: M$!!!
I have another box that has Win 2K running on it *AND* it does not have
SP 3! Apache loads like a dream and so does PHP
So, there is something in the new
Are there any settings I need to change in order to get the
HTTP_IF_MODIFIED_SINCE variable set when applicable? I saw some threads on
google about session_cache_limiter() but even after following that, I still
don't get access to the HTTP_IF_MODIFIED_SINCE variable when revisiting a
page with the
So, there is something in the new security of XP and Win 2K
SP 3 that
does not let the dll load and run. Ever since I loaded SP 3
I have had
problems - like many others!
Don't know about Win2k as I haven't tried it but Apache/PHP/MySQL is
working perfectly well on my Win XP laptop.
Hi list,
What is better to use? The included GD library or the external (
Boutell.com ) GD library?
On the Boutell.com site I found that the included GD version is alike to
2.0.2 from their site.
But sins 2.0.9 is out, I would like to know witch version to use.
Thanks in advance, and a happy
At 10:11 AM 12/31/02 -0500, Carl Bélanger wrote:
I just upgraded to php 4.3.0 and all by bulletin board are now returning
error about the mail function:
Fatal error: Call to undefined function: mail() in
/var/wwwx/htdocs/forum/private.php on line 687
What could be missing?
./configure
At 02:57 PM 12/31/02 -0500, David T-G wrote:
...and then Tularis said...
%
% Usually,
% using mysql to handle your tables is *way* faster than letting php
% handle it.
Yes, do as much as you can in the database. The people who wrote it spent
a lot of time trying to optimize it.
%
% In your
Hi PHP-lovers! Happy new year!
I just downloaded the PHP 4.3.0 binaries (Win32, zip) and saw,
that no PEAR related stuff is included... is that right or is
there a mistake in it? I thought, PEAR would be integral part
of PHP since some versions...
Regards!
Toby
--
At 03:13 AM 1/1/03 +0100, Richard Pijnenburg wrote:
Hi list,
What is better to use? The included GD library or the external (
Boutell.com ) GD library?
Unless you have to use the external library because other things are
sharing it, just use the GD that comes with PHP.
We are talking about
Yeah, I want to install 4.3.0
And I only want to use GD with php.
But isn't it so that the external GD version is more advanced then the
internal?
I've got this from the GD site:
php 4.3.0 is available, and it includes a version of gd as standard
equipment. I have only taken a brief preliminary
Can someone help me make an array ...
I have $foo amount of loops to preform (1-20), and would like to make the
veriable work for me like $comment_1, $comment_2 etc etc.
http://nz.php.net/manual/en/function.array.php makes no sence to me after i
read it and read it ...
help me please
---
php-general Digest 1 Jan 2003 04:58:08 - Issue 1796
Topics (messages 129780 through 129823):
Re: Repeats of values
129780 by: Andrew Brampton
129782 by: Tom Rogers
129783 by: Thomas Seifert
MySQL Join
129781 by: John Hinton
129811 by: Jason Wong
Re:
Example of an Array:
$my_first_array = array(1 = 'first', 2 = 'second', 3 = 'third');
You can now access these like so:
echo $my_first_array[1]; etc etc
of if you had this: $my_first_array = array('first_name' = 'Philip',
'last_name' = 'Newman');
You could do this:
echo
Hi,
Wednesday, January 1, 2003, 5:28:43 AM, you wrote:
Try encoding like this:
$retval = base64_encode(serialize( domxml_open_mem( $xml )));
and on the next page:
$xml = unserialize(base64_decode($xml));
It works via html but don't know enough about soap
BC Well, you don't have to use soap
So in saything that I could do this ...
$s = 10
$comment[1] = '$comment_1';
$comment[2] = '$comment_2';
$comment[3] = '$comment_2';
for($i = 0; $i = $s; $i++) {
echo $comment[$i].br;
}
- Original Message -
From: Timothy Hitchens (HiTCHO) [EMAIL PROTECTED]
To: Philip J. Newman
Use the count like following inside to ensure that you don't
call on a non existent index.
for ($i = 0, $x = count($comment); $i $x; $i++)
{
echo $comment[$i].'br /';
}
Why do you want to echo out $comment_1 ???
Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]
HiTCHO | Open Platform Web
yes sorry to be vague i've started to try and implement this , but is
tedious to get going, plus it has the pear db like functions so upgrading
shouldnt be a problem then when it comes round to it
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 31,
oh have you got an example proper usage of it ? i had it working then
suddenly i didnt :|
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 31, 2002 7:57 PM
To: electroteque
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] RE: PHP3 + session handling
Hi,
Wednesday, January 1, 2003, 4:01:35 PM, you wrote:
DR oh have you got an example proper usage of it ? i had it working then
DR suddenly i didnt :|
DR -Original Message-
DR From: Tom Rogers [mailto:[EMAIL PROTECTED]]
DR Sent: Tuesday, December 31, 2002 7:57 PM
DR To: electroteque
DR
on 31/12/02 5:54 PM, electroteque ([EMAIL PROTECTED]) wrote:
hi i've just started a job and they are sadly using php3 , what is the work
around for the session handling limitation ? i have an authentication class
which will not work now beause it cant handles sessions :|
I don't think
on 31/12/02 2:48 AM, Stephen ([EMAIL PROTECTED]) wrote:
I'm writing a PHP chat script and I'm rather stumped on this. I either want
the chat window to refresh when there's a new message or refresh every few
seconds but not with meta refresh, rather something with less noise (the
infamous IE
Let me give you a direction with this one.
You can use a http/1.1 stream and keep flushing the buffer with an script
timeout set to 0.
Simply open the page then just add something to the buffer and flush and
then
wait a little while then flush... just like a database would do.
I do have a
87 matches
Mail list logo