I hadn't checked the php news servers since the mailing list went back
online. At least to me, at this moment, the news servers seem to be
missing in action. Anyone know what the scoop is on this?
Michael Simcich
AccessTools
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-
On Mon, 25 Jun 2001 16:56, muttaqin wrote:
> Hello David,
>
> I have did reconfigure with command :
> ./configure -prefix=/usr/local/php --with-mysql --enable-ftp \
> -with-apache=/usr/local/downloads/apache_1.3.17
>
> And I have restart apache.
> but the problem is the same.
>
> Thank's
>
> -
off the top of my head, you could try using a
"lookup table" to define the extra options...
ford_spec table:
id desc
--- ---
1 air conditioning
2 whatever
ford_cars table:
car extra1 extra2
-- --- -
'contour' 1
mktime can be pretty useful :
$year = 2001;
$month = 6;
$day = 1;
print date('l',mktime(0,0,0,$month,$day,$year));
as it creates a unix timestamp, and date() appreciates that.
Regards,
Philip
On Mon, 25 Jun 2001, Tyler Longren wrote:
> Hello,
>
> I have something like this:
>
Hello all,
I have a slight problem that someone out there might be able to help me
with. I recently installed Windows 2000 with Internet Information Server 5.0
and php 4.0.7-dev. When configuring the IIS 5.0 default webserver, I did the
following
=> Properties
=> Directory Security
=> Edit
=> An
I'm developing a web application and would like to be able to store the state
of the application in an Oracle table by serializing a bunch of variables and
storing them in the database. Has anyone done this? What datatype would be
best to use here? I'm not serializing too much data now, but oth
In article <030a01c0fd4a$0f797840$6401a8c0@Lynchux100>,
[EMAIL PROTECTED] ("Richard Lynch") wrote:
> > argument, so don't I *have* to fopen the file before going to flock()? Or
> > should I fopen first in "r" mode, acquire the lock, then re-open in "w"
> > mode, counting on the lock to stay in
Thanks to all who replied.
I've downloaded all the likely candidates and will have a play with them and
report back. So far I've had very good results with wvHtml which has coped
admirably with all the word docs I have to hand.
If anyone else has already evaluated any of the converters I (and
I had EXACTLY the same problem about a month a go, but using IIS on Win2k.
The session file contains only ":foo|", so it's just the same.
There are a couple of things to check:
1. Make sure the browser is receiving the cookie.
2. Make sure the browser is returning the cookie (shoul
sure. install PHP as a binary and run the script just
like you'd run any other script
;)
> -Original Message-
> From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 25, 2001 4:43 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] a standalone PHP script to update MySql serve
> http://php.net/manual/en/language.types.array.php
> there is written:
> "To change a certain value, just assign a new value to it. If you want to
> remove a key/value pair, you need to unset() it."
Damn, I looked for that and didn't find it =). Anyway, thanks for the heads
up. I was pretty sure
> > That's because POSIX is greedy. Or Perl is greedy. Whatever.
>
> Perl is greedy. It *should* have worked with eregi...
>
> > >
Yes, Perl is greedy (there has to be some kind of default behaviour)!
BUT it is SO easy to make it decent:
//
that's it!!!
michi
--
GMX - Die Kommunikations
Dave,
I did something similar and I came up with an interesting way of
approaching it:
Assign IDs to each car (obviously).
Assign an ID to each option.
Match up your car IDs and option IDs in a seperate table.
Here's some table defs:
create table cars (
carid int auto_incremen
Hello.
I'm new to this list, and I once looked over the archives,
but the problem like this might not have been proposed, so I ask...
please see the code below
sorry to be too long.
(the result of this code is supposed to be seen with HTML browser)
--
How can I get an Enter typed in a HTML textfield to be inerpreted as a BR or
a P tag?
Someone sugested I use the split() function, but I wouldn't know how...
Joeri Vankelst
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Gunther E. Biernat") wrote:
> I'm trying to read a plain text file where I embedded some variables. E.g.
>
> abc $a def
>
> Sucking this file in a string and setting $a to "whatever" results in "abc $a
> def" rather than "abc whatever def".
Hi all,
I have a big array (nearly 1000 lines) that I would like to pass to a C
program. I don't want to create a temporary file to pass my array (If
possible ?!?), and I don't think the command line will fit my needs.
Is there a way to execute a program with a php string as the standard
input.
another way to match this that works with preg or ereg is to go like
this:
]*>
On Mon, 25 Jun 2001 15:31:29 -0400, scott [gts]
([EMAIL PROTECTED]) wrote:
>exactly. use the non-greedy "?" with the perl regex's
>to have perl match the least amount of characters it can.
>
>preg_match('//', $text, $
All,
This ought to be simple, but I can't crack it...
I'm trying to read a plain text file where I embedded some variables. E.g.
abc $a def
Sucking this file in a string and setting $a to "whatever" results in "abc $a def"
rather than "abc whatever def". Where's the difference to directly doi
"Thies C. Arntzen" wrote:
>
> On Sun, Jun 24, 2001 at 09:50:05PM +0300, Rouvas Stathis wrote:
> > "Thies C. Arntzen" wrote:
> > >
> > > On Fri, Jun 22, 2001 at 09:16:08PM +0300, Rouvas Stathis wrote:
> > > > Do you experience any other sort of problems other than those warnings?
> > > > I mean, i
Hi,
Is there any easy way to copy a "template" mysql table to enable data to
processed in batches?
I would prefer to just copy a table rather than hard-code a table create
query, if possible.
Regards
Ray
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
Hello
I am trying to access a Berkeley database V1.85 using PHP V4.0.5 (on Windows
2000) without success.
I have tried the dbmopen() routines and dba_open(..., ..., "dbm") routines.
dbmopen() etc. are successful but the results suggest that they do not
support this database
format. The dba_open
Hello,
I have something like this:
$Month = "6";
$Year = "2001";
$Date = "1";
Is there any relatively simple way to get the day out of that? For example,
the day for 6-1-2001 would be Friday.
Thanks,
Tyler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROT
> > Hello,
> > how can I complete remove an item out of an array ?
> > I tried unset() as well as setting the value to null.
> >
> > Both result in the value being null but not the item being deleted.
>
> As far as I know, this is not possible. You can, however, create a new
> array
> and copy al
Hi,
I am just starting with PHP, I installed the new version on my Suse 7.1
with apache 1.3.14, because I need a tool for accessing databases
(Informix/Oracle).
Everything seemed fine, until I tried to start apache, it told me:
Cannot load /usr/lib/apache/libphp4.so into server: shared object n
Hi,
I know it doesn't have a lot to do with PHP, and then again...
I'm trying to get PHP authentication to work on an IIS 5.0 server.
The thing is, the server is not sending my desired headers. The script, I'm
using, works perfectly. I've tested that, on an Apache server online. Works
brilliantl
Here's an example :
a [2] => c
$bar = array('a','b','c');
$piece = array_splice ($bar, 1 ,1);
print_r($piece); // [0] => b
print_r($bar);// [0] => a [1] => c
?>
http://www.php.net/manual/function.array-splice.php
regards,
philip
On Mon, 25 Jun 2001, Bret R.
Please excuse me if you consider this to be off-topic, but this is the best
place I can think of to ask the (slightly long-winded) question.
Imagine you have a car database (MySQL driven). Different models have
different optional extras (air-con, central locking, immobiliser etc). I
need to store
Hello,
Can anyone please help me with MySQL installation?
I am installing MYSQL on Windows 2000 version 3.23.38-win.zip
But when I try to run it in the command line I receive the following
statements:
C:\mysql>cd bin
C:\mysql\bin>mysql -p
Enter password:
ERROR 2003: Can't connect to MySQL
How about staroffice ? It reads *.doc files and you can save them as *.rtf
files.
>
> Phil Driscoll wrote:
> > I have to build a web site for a local government education authority in
> > the UK which will allow them to make available a large range of documents
> > to schools. They INSIST on subm
exactly. use the non-greedy "?" with the perl regex's
to have perl match the least amount of characters it can.
preg_match('//', $text, $matches)
in the case of perl regexp's, you have to specifically
tell the regexp not to be greedy. the "?" regexp modifier
is how you do this. (otherwise, th
always check permissions
make sure the web server can read/execute what it needs to.
also, have you tried running the program from a
shell and seeing if it generated any errors?
> -Original Message-
> From: Richard Lynch [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 25, 2001 3:12
here's my apache config i use at home
(where i have the binary version, *not* server module)
ScriptAlias /pbin/ /usr/local/php-bin/
AddType application/x-httpd-php .php
Action application/x-httpd-php /pbin/php
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> What do we require to use the MySQLGUI with our MYSQL server.
>
> We are looking to manage the users and tables over the web
> from an NT
> machine. Can you please advise us.
>
> I think that you may have a very large market out there is
> it works in the
> way that i have been lead to bel
It's pretty easy to use PHP to update MySql server through the web sever. Is there an
easy way to use PHP scripts to update the MySql sever in a standalone mode (without
the web sever)? Any sample scripts?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAI
Hi,
Unfortunately that won`t work for me because I don`t have access to setting
up a Cronjob on this account, thanks for the suggestion though.
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
T
Dunno,...
Maybe you should specify the full file path, ie:
file(http://www.163.com/index.htm) ?
""atan"" <[EMAIL PROTECTED]> wrote in message
9h0s59$l4h$[EMAIL PROTECTED]">news:9h0s59$l4h$[EMAIL PROTECTED]...
> file("http://www.163.com";) error?
> this is a test:
>
> $fc
Mathias,
Welcome and we hope you'll have fun.
At 12:53 PM 6/25/01 +0200, you wrote:
>Hello NG,
>it's the first time I use this NG and I'm not sure whether I'm I right here
>or not.
>The problem: I'm a beginner in php (just started to read the first
>introductions). I created a "guestbook" with F
$HTTP_HOST
Run a page with on your server & you'll see all sorts of
goodies in there.
- Tim
http://www.phptemplates.org
- Original Message -
From: "Peter Van Dijck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 7:10 AM
Subject: [PHP] damn $REQUEST_URI
> $R
hi,
try
$SERVER_NAME
http://www.php.net/manual/en/ref.http.php
regards
attila strauss
> $REQUEST_URI gets me home/dir/index.php
> but I need to get the domain name.
>
> Can't seem to find it anywhere, what's the environment variable for the
> domain name again? Thanks!
> Peter
>
--
PH
$url = sprintf("http://%s/%s";, $HTTP_HOST, $REQUEST_URI);
Cheers,
Maxim Maletsky
-Original Message-
From: Peter Van Dijck [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 8:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] damn $REQUEST_URI
$REQUEST_URI gets me home/dir/index.php
but
Hi,
I do the following in a similar case:
- I have a table with the emails to send (the addresses)
- I run a PHP script as a cronjob every X minutes (15 in my case)
- the script sends up to 1000 e-mail and delete the corresponding entry from the
table for each e-mail sent (you may want to simply
i lowered the config parameter
MaxRequestsPerChild 30
so at least it keeps running, but i think that can't be the solution...
as soon as i increase it the memory consumtion increases linear
here is the info :
top:
1:39pm up 24 days, 20:55, 1 user, load average: 0.00, 0.00, 0.00
57 proce
> Hello,
> how can I complete remove an item out of an array ?
> I tried unset() as well as setting the value to null.
>
> Both result in the value being null but not the item being deleted.
As far as I know, this is not possible. You can, however, create a new array
and copy all values except th
$REQUEST_URI gets me home/dir/index.php
but I need to get the domain name.
Can't seem to find it anywhere, what's the environment variable for the
domain name again? Thanks!
Peter
~~
http://liga1.com building multiple language/culture websites
http://poorb
Do you restart Apache after making changes to httpd.conf?
You can use 'path/to/apache/bin/apachectl restart' to do this.
Just a thought.
Mick
On Mon, 25 Jun 2001, brent wrote:
> Trying a re-post from yesterday...
>
> My setup is as follows:
>
> RH Linux 7.0
> PHP 4.0.5
> Apache 1.3.20
>
>
Hi,
I am building a custom e-mailer for one of my websites using PHP and MySQL, I
know there are loads out there already but my goal here is to learn this
coding myself so I can modify it to my needs as and when they change.
My list only has around 5000 subscribers at the moment and I have h
Check the permissions on the files in /proc, which is where uptime gets its
info from, most likely.
You could probably even read the pseudo-file '/proc/loadavg' as 'nobody'
directly from PHP given the appropriate file permissions.
- Tim
http://www.phptemplates.org
> Richard Lynch's advice wa
Does anyone know if it's possible to capture TCP_TIMESTAMP using a socket.
If you could do that you wouldn't need to execute /usr/bin/uptime
Andy.
---
Need a DHTML Menu?
Try www.milonic.com/menu it's free
---
- Original Message -
From: "R
Hi
Can comeone reccomend me PHP script for Web Mail , which
can create mail accounts on mail server?
Thanks,
Rosen Marinov
--
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 admi
Trying a re-post from yesterday...
My setup is as follows:
RH Linux 7.0
PHP 4.0.5
Apache 1.3.20
I've either added or uncommented the following lines from httpd.conf:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
and to mime.types:
application/x
On Monday 25 June 2001 09:27, Richard Lynch wrote:
> That's because POSIX is greedy. Or Perl is greedy. Whatever.
Perl is greedy. It *should* have worked with eregi...
> >
> >
> > Unfortunately it matches everything from the body tag onwards and
> > doesn't stop at the greater-than sign. It s
> > Is postfix more efficient than sendmail?
I don't know about efficient but it is certainly more secure and *way*
easier to configure.
> > Can you give me the url which describes how to use it or write here ?
> www.google.com/linux >> "postfix"
> and you get:
> http://www.redhat.com/support/do
Hello,
how can I complete remove an item out of an array ?
I tried unset() as well as setting the value to null.
Both result in the value being null but not the item being deleted.
Any help is appreciated
Heiko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
On Sun, Jun 24, 2001 at 09:50:05PM +0300, Rouvas Stathis wrote:
> "Thies C. Arntzen" wrote:
> >
> > On Fri, Jun 22, 2001 at 09:16:08PM +0300, Rouvas Stathis wrote:
> > > Do you experience any other sort of problems other than those warnings?
> > > I mean, is anything wrong with the data? Normally
Oh yeah: I forgot:
*AFTER* the loop, you need to add another spurious .
You'll have an empty row with no TD's in it, and the browser won't even put
in a blank line or anything.
Just spew out an extra at the end and call it done.
--
WARNING [EMAIL PROTECTED] address is an endangered species -
> I have a PHP script with the following code in it;
>
> $uptime = passthru ("/usr/bin/uptime");
>
> but when I load the PHP page I get the following;
>
> 8:26pm up 0 min, 0 users, load average: 0.00, 0.00, 0.00
>
> which is wrong (I have checked the uptime via telnet). Can anybody please
> help
>Warning: Unable to fork [cscript d:\temp\rgroup.vbs -t a -g new.group.01]
in >d:\inetpub\wwwroot\nntpadm\creategroup.php on line 3
>
>What am I doing wrong?
Using Microsoft :-)
IIRC, the deal is this -- When PHP went to version 4, the threading stuff
got real, but MS doesn't have real threads,
Is PHP timing out after 30 seconds?...
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: "Gar
> I even tried the LoadModule trick, but since I didn't compile as a
> module, that just gave me an error when I restarted the server.
And therein lies the rub.
If you compiled as a stand-alone binary (aka CGI) you don't want AddHandler,
you want "Action".
Something not unlike:
Action applica
> I need to create a document that confirms to certain formatting criteria
> and then be able to give the surfer the ability to download the
> completed document preferrable, pdf. In other words, the document is a
> "legal" document and has some dynamic fields. Can this be done in php
> and if s
> 1.)
> I see from www.php.net , people said they will generate a Session ID by
> themselves
> srand((double)microtime()*100);
> $unique_str = md5(rand(0,999));
> why not to generate by ourself ?
> PHP will create itself .
Once upon a time, a long time ago, there was no built-in PHP sessi
> Sorry for this stupid question but I'm a newby trying to install php on my
> win98 computer and find that neither netscape nor IE 5.5 won't open php
> files that are located on my c: drive but will access php files on the
net.
> There must be a simple explanation.
PHP only kicks in because the
> I always use "InputImageName_x > 0" to know if a button was clicked.
>
> How can I get the value on my input type=image?
You can't.
> Like:
>
> how can I get "002545645" with "$contatc"?
Well, okay, what you *COULD* do is something like this:
--
WARNING [EMAIL P
> how can i install the gd library for php on win2k using iis5?
The IIS5 part is irrelevant, I think...
Dig around for a file++ whose name is composed of "GD", "PHP", and ".DLL".
Put it next to all your other PHP DLL files.
Alter your php.ini to refer to it the way it refers to other PHP DLLs.
> argument, so don't I *have* to fopen the file before going to flock()? Or
> should I fopen first in "r" mode, acquire the lock, then re-open in "w"
> mode, counting on the lock to stay in effect even though it's a different
> file pointer?
Yup. You are holding the lock, and it's yours
> I'd
If you are running PHP as a Module (you should be) try the
http://php.net/virtual function.
If not, you can use exec(), but pass any vars the thing needs:
# Your CGI may be expecting command-line args or flags or...
# I presumed it was URL-style input.
exec("./cgi-bin/txtcounter.cgi?foo=$foo&bar
> > i have a mysql table with approx. 30 entries.
> >
> > I wanna get them(i know how to do that) and list them in a 2-column
table.
For those minimalist-typists among us... :-)
$rowcount = 0;
echo "\n";
while (list($whatever) = mysql_fetch_row($result)){
echo "$whatever\n";
$rowcount++;
> I have a .htaccess file with the following in it
> order allow,deny
> allow from all
> require user pilot
> Authname MySite
> Authtype Basic
>
> The page itselfs prompts for and accepts username/password correctly,
> however on that page are a number of included files.. The included files
are
>
> I was wondering what happens if you call the readfile function to output a
> large binary file to a client with a slow connection.
> Does the script run until the whole file is sent to the client (leading to
> timeout errors on servers with a low max execution time) or does it fill
> some sort o
> > Do I mysql_free_result the $Query or the $Result? If it's $Result, would
> > this be the same as just going unset($Result)?
>
> mysql_free_result() frees the ressources that the MySQL server allocated
for
> the results of your query. This is in the memory space of the MySQL
server,
> while if
> $fp = fsockopen('secure.aaa.com',443,&$err_num,&$err_msg);
Talking to an SSL server on port 443 is a bit more complicated than chatting
up an HTTP server on port 80.
You have to pre-negotiate your encryption algorithms and send some public
keys back and forth to generate some more public/priva
> Is postfix more efficient than sendmail?
> Can you give me the url which describes how to use it or write here ?
www.google.com/linux >> "postfix"
and you get:
http://www.redhat.com/support/docs/faqs/RH-postfix-FAQ/book1.html
Which seems pretty much like what you want.
(PS: this took me 15
73 matches
Mail list logo