Re: [PHP] PHP Mail (SMTP)

2001-05-23 Thread Dan Lowe

Previously, Jason Caldwell said:
 There's a setting in the PHP.INI file called [Mail Function] - SMTP
 Can I programmatically set this? Or, am I for now restricted to this .INI
 entry?

ini_set(SMTP, smtp.server.name);
ini_set(sendmail_from, [EMAIL PROTECTED]);

 -d

-- 
What was the best thing before sliced bread?  -George Carlin 

-- 
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]




[PHP] Funky PHP Stuff

2001-05-23 Thread Chris Aitken

Just wondering if anyone has come across a collection of weird and 
wonderful stuff done with PHP. I have a site which people have the option 
to display strange things whenever they log in, and currently I have a 
random quote generated from the fortune script on FreeBSD, plus a weird 
script which tells the time in plain engligh (It's almost half past eight) 
etc. But im looking for some other bizarre things which really dont do much 
except entertain and make people wonder but why ? :)


Cheers


Chris


--
   Chris Aitken - Webmaster/Database Designer - IDEAL Internet
email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628 8890
 

 If the foo shits, call your sysadmin


-- 
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]




Re: [PHP] ssh

2001-05-23 Thread Dan Lowe

Previously, Dennis Gearon said:
 
 ***AND*** getting the certificate to work for it?
 My provider that runs php/mysql/etc only lets people use SSH connections
 for telnet, which I agree with. 

As others have mentioned, PuTTY is the way to go.  You can use key files
with it, or passwords (or both, using phrase-coded keys).  You can also use
pscp, an scp clone for Windows (although it doesn't use keys AFAIK).

For file transfer needs, check out WinSCP:  http://winscp.vse.cz/eng/
It's quite nice for copying files, and uses the familiar two-pane file
manager format that many FTP clients such as WS_FTP use.  Users of Windows
Explorer will be able to pick it up easily.  It's freeware, and quite
nicely done.  However, I don't think it supports the use of keyfiles for
authentication.

 -dan

-- 
If one synchronized swimmer drowns, do the rest have to drown too?
 -George Carlin

-- 
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]




Re: [PHP] installing PHP on a sun box

2001-05-23 Thread Dan Lowe

Previously, Joseph Bannon said:
 I'm installing PHP on a sun box and when type in make and i get not
 found. How can I run make if it's not found?

make is usually in /usr/ccs/bin/

However, you probably have no compiler (unless you bought one from Sun).
Try typing cc - if you get the software package not installed error,
download GCC from www.sunfreeware.com to get a compiler.

That has nothing to do with make itself; that's still in /usr/ccs/bin/.
You can get GNU make if you want, also at www.sunfreeware.com, but Sun's
make will work for most things.

You might want to add /usr/ccs/bin to your $PATH somewhere because ld is
also sitting in there and you'll need that at some point too.

 -dan

-- 
Viagra: Strong enough for a man, but made for a woman.

-- 
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]




[PHP] ff

2001-05-23 Thread Jon Yaggie

f



[PHP] cookies

2001-05-23 Thread Jon Yaggie

Sorry.  My emails is acting wierd.  This is a repost.  The suggestion was there is a 
clock problem.  My clock is right.  Could it be cause by a time zone difference?




original message -


I have set up a user login so that it will assign a cookie for one hour -
setcookie(cookie_id, $id, time()+3600);

The manner in which i suse the expiration is copied form the manual but i have 
actually tried several alteratives.  The problem is the expiration works perfectly 
locally (i am running apache 1.3 for windows)  but once i upload it (linux red hat 5.2 
(why so old i dont know)/ apache 1.3.19.)  The expiration will not work on my 
browser(s) unless i increase the expiration to +5000 or above.  My client tests it 
using the same version of IE i have and it will not set the cookie still at +5000 for 
him.  

Now i understand from browser to browser there can be differences but why can i set a 
cookie for +200 locally but not for less than +5000 uploaded when i am most certainly 
checking it with the same browser (IE 5.5)



Re: [PHP] cookies

2001-05-23 Thread Zak Greant

Hi Jon,

Dealing with expiry dates and cookies is often a PITA!

Rasmus suggested a way around this a few weeks ago - here is a rehash of
what he said:

Do this:
setcookie ('expiry', time ());

This call will have created a session cookie - this means that the session
will expire when the browser closes the client.

Now you have a cookie var called expiry that has the unix timestamp of when
the user first accessed the site.  Check this value when deciding to expire
the user's session.

ie.

$timeout = 3600;// Set an expiry date of an hour

if ($expiry + $timeout  time ()) {

// handle that the cookie has expired

}

(Actually, you easily do this with sessions too.)

HTH,

--zak

Jon Yaggie wrote:
[...]
 I have set up a user login so that it will assign a cookie for one
 hour - setcookie(cookie_id, $id, time()+3600);

 The manner in which i suse the expiration is copied form the manual but
 i have actually tried several alteratives.  The problem is the
 expiration works perfectly locally (i am running apache 1.3 for windows)
 but once i upload it (linux red hat 5.2 (why so old i dont know)/ apache
 1.3.19.)  The expiration will not work on my browser(s) unless i
 increase the expiration to +5000 or above.  My client tests it using the
 same version of IE i have and it will not set the cookie still at +5000
 for him.

 Now i understand from browser to browser there can be differences but
 why can i set a cookie for +200 locally but not for less than +5000
 uploaded when i am most certainly checking it with the same browser (IE
 5.5)




-- 
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]




Re: [PHP] still not friends with RegExps..

2001-05-23 Thread Dan Lowe

Previously, Zef Hemel said:
 $string = preg_replace(/[\\\*\+\-;]/s,,$string);
 
 I think, you might have to escape the ; too

You don't need to escape * or + inside a character class since they don't
have a special meaning inside a character class.

You will need to use '' to match a backslash, however.  And if you move
the hypen to the last position in the character class, it loses its magic
property as a range specifier and no longer needs to be quoted either.

This should do what you want:

$string = preg_replace(/[;*+-]/s, , $string);

 -dan

-- 
The process for understanding customers primarily involves sitting around
with other marketing people and talking about what you would to if you were
dumb enough to be a customer.  -Scott Adams, The Dilbert Principle

-- 
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]




Re: [PHP] OT PHP Manuals

2001-05-23 Thread Joseph Blythe


Jason Lotito wrote:

 Joseph,
 
 I was actually about to type back in response explaining to everyone
 that you asked WHAT was use to make the .chm files.  You must forgive my
 colleagues, they sometimes forget to actually read the email, rather
 than just scan the email for common key words and phrases signifying a
 newbie with a RTFM type question.
 
 While I don't know what was used to create the PHP .chm files, here is a
 listing of a set of freeware programs that can be used:
 
 http://www.webattack.com/freeware/webpublish/fwhtmlhelp.shtml
 
 I have not, however, used any personally.

Jason,

Thankyou very mutch for such a kind response, I think people see my name 
then just assume I am being daft ;-)

Regards,

Joseph




-- 
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]




[PHP] file download

2001-05-23 Thread Aleksey Yarilovets

Hi everyone!

I need user to dowload a file from my server ( Apache ), what i do is:
?
   header(Content-Type: application/download);
   header(Content-Disposition: attachment; filename='report.txt');
echo file contents;
?

It was working till now but sudenly i start recieve the message from
iexplorer:

IE can not download ScriptName.php file from the server.
IE was not able to open this site. The requested site either unavailable or
can not be found.

:(

Does somebody knows what is going on?

Thanks, Alexey.

Email: [EMAIL PROTECTED]
ICQ# 101975252





-- 
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]




[PHP] Inoltra: Re2: [PHP] problem getting oracle to work with php4

2001-05-23 Thread louigi600

  Starting httpd: Syntax error on line 872 of
 /etc/httpd/conf/httpd.conf:
  Cannot load /etc/httpd/lib/apache/libphp4.so into server:
 libclntsh.so.1.0:
  cannot open shared object file: No such file or directory
  [FAILED]

 libclntsh.so.1.0 is not in your library path /etc/ld.so.conf

 btw, make sure you linked both apache  php against libpthread
 like libclntsh.so.1.0 is

 - Markus


I fixed /etc/ld.so.conf
I laso had a look at what you meant by that stuff about libpthread
I'm not compiling apache coz I'm building DSO modules
In PHP it looks like this library is linked by default:
[root@linux php-4.0.5]# ./configure -help | grep pthreads   
--with-tsrm-pthreadsUse POSIX threads (default)

So I didn't put that in my config options ... I used:
[root@linux php-4.0.5]# ./configure --with-mysql --with-apxs --enable-sockets --
with-oracle=/mnt/ora_syb/ora/app/oracle/product/8.0.5

I'm still getting the same error (see above).
I even tried giving that lib 777 perms ... and linked it to where libphp4.so
is 
but nothing ... still get the same error.
What now ?


Bye
Dave


-
Questo messaggio è stato inviato utilizzando http://it.my.gsmbox.com 

-- 
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]




Re: [PHP] sessions without trans_id

2001-05-23 Thread Dalyyla

hi,

 You could use an .htaccess file to disable the session.use_trans_sid flag in
 the php.ini file, like this:

 php_flag session.use_trans_sid off

 Kirk


*** what I meant if i publish it on another server and which is used by lots of
clients
I suppose that some of them made their application with trans-id and other
without
so I would have to choose the good server the one where trans-id is not enabled
...??? SO that's why I was asking I would like to build an application that
could work everywhere...
By the way is there a way to hide the SID , when it is not done by the method
POST, for example in header(location:...) or manually bu the calling of the
page??

Thanks

Dalyyla


-- 
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]




[PHP] Apache+suEXEC+php+dbase

2001-05-23 Thread JUANG

hi...
how do i use dbf_open() function or other dbf functions in php with apache+suexec? my 
php script is
?
$dbfile=kasbon.dbf;
$db =dbase_open($dbfile, 0);
$rec = dbase_get_record($db, 2);
$nf  = dbase_numfields($db);
for ($i=0; $i  $nf; $i++) {
print $rec[$i].br\n;
}
?

it worked if i changed mode to 777 *.dbf but.. if mode is 700 it couldn't work. i 
use apache+suexec with virtual host .
i.e:
VirtualHost 192.168.1.100
DocumentRoot /home/httpd/html
ServerName master.mydomain.com
/VirtualHost
VirtualHost 192.168.1.101
DocumentRoot /home/hosting/dev1
ServerName dev1.mydomain.com
User dev1
Group hosting
/VirtualHost
--

for domain master: master.mydomain.com
in directory /home/httpd/html/dbf 
==all *.dbf files are 700 
==all *.dbf files i was change the owner to chown dev1:hosting *.dbf
http://master.mydomain.com/masterdbf/dbf_open.php it work if user=dev1 and 
group=hosting in my httpd.conf


for domain dev1: dev1.mydomain.com
in directory /home/hosting/dev1/dbf 
==all *.dbf files are 700 == chmod 700 *.dbf
==all *.dbf files was changed to  dev1:hosting  == chown dev1:hosting *.dbf
http://dev1.mydomain.com/index.php -- it work returned info of php
http://dev1.mydomain.com/dbf/dbf_open.php didn't work 

why? even i changed the mode and owner of *.dbf files it still didn't work? and in 
error log of my apache there was no error about suexec. help 
please
-JUANG-




Re: [PHP] Inoltra: Re2: [PHP] problem getting oracle to work with php4

2001-05-23 Thread David Robley

On Wed, 23 May 2001 17:21, [EMAIL PROTECTED] wrote:
   Starting httpd: Syntax error on line 872 of
 
  /etc/httpd/conf/httpd.conf:
   Cannot load /etc/httpd/lib/apache/libphp4.so into server:
 
  libclntsh.so.1.0:
   cannot open shared object file: No such file or directory
   [FAILED]
 
  libclntsh.so.1.0 is not in your library path /etc/ld.so.conf
 
  btw, make sure you linked both apache  php against libpthread
  like libclntsh.so.1.0 is
 
  - Markus

 I fixed /etc/ld.so.conf
 I laso had a look at what you meant by that stuff about libpthread
 I'm not compiling apache coz I'm building DSO modules
 In PHP it looks like this library is linked by default:
 [root@linux php-4.0.5]# ./configure -help | grep pthreads
 --with-tsrm-pthreadsUse POSIX threads (default)

 So I didn't put that in my config options ... I used:
 [root@linux php-4.0.5]# ./configure --with-mysql --with-apxs
 --enable-sockets --
 with-oracle=/mnt/ora_syb/ora/app/oracle/product/8.0.5

 I'm still getting the same error (see above).
 I even tried giving that lib 777 perms ... and linked it to where
 libphp4.so is 
 but nothing ... still get the same error.
 What now ?


 Bye
 Dave

Did you remember to run ldconfig (as root) after changing your ld.so.conf?

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Are dog biscuits made from collie flour?

-- 
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]




Re: [PHP] Inoltra: Re2: [PHP] problem getting oracle to work with php4

2001-05-23 Thread louigi600

Starting httpd: Syntax error on line 872 of
  
   /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/lib/apache/libphp4.so into server:
  
   libclntsh.so.1.0:
cannot open shared object file: No such file or directory
[FAILED]
  
   libclntsh.so.1.0 is not in your library path /etc/ld.so.conf
  
   btw, make sure you linked both apache  php against libpthread
   like libclntsh.so.1.0 is
  
   - Markus
 
  I fixed /etc/ld.so.conf
  I laso had a look at what you meant by that stuff about libpthread
  I'm not compiling apache coz I'm building DSO modules
  In PHP it looks like this library is linked by default:
  [root@linux php-4.0.5]# ./configure -help | grep pthreads
  --with-tsrm-pthreadsUse POSIX threads (default)
 
  So I didn't put that in my config options ... I used:
  [root@linux php-4.0.5]# ./configure --with-mysql --with-apxs
  --enable-sockets --
  with-oracle=/mnt/ora_syb/ora/app/oracle/product/8.0.5
 
  I'm still getting the same error (see above).
  I even tried giving that lib 777 perms ... and linked it to where
  libphp4.so is 
  but nothing ... still get the same error.
  What now ?
 
 
  Bye
  Dave
 
 Did you remember to run ldconfig (as root) after changing your
 ld.so.conf?
 
 -- 
 David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
 CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  
 
Are dog biscuits made from collie flour?

No ... I forgot that  I'll give it a go now ...

All fine now ;-)

Thanks

BTW can MSSQL be accessed by the sybase support ... or must I use sybase-ct ?

Bye
Dave


-
Questo messaggio è stato inviato utilizzando http://it.my.gsmbox.com 

-- 
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]




[PHP] Passing variables

2001-05-23 Thread Tarrant Costelloe

Is there any other way of passing variables other than submitting them
through a form and passing them using a URL? E.G. Currently I am passing
them though a url which is not the safest means in anyway.

Suggestions would be appreciated.

Thanks in advance.

Tarrant Costelloe
Web Developer
InsurE-com Ltd.

Office Tel:  +44 (0)1273 852014
Mobile: +44 07714087114
[EMAIL PROTECTED]
http://www.insur-e.net


-- 
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]




[PHP] Re: Passing variables

2001-05-23 Thread Jon Yaggie

I dont know any other way.  best is if you ssl available to use it on the forms that 
pass these variable but using a form all variables are passed this way either post or 
get through the url.  

Jon 



Re: [PHP] generating thumbnails

2001-05-23 Thread Dave

So how does the GD2 work.?
Does it work with gifs and jpgs?

Is the GD Library supposed be installed by the hosting provider?


Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  is there any way to resize images in php and save them to a new file?
  i want to write sort of a (db-powered) picture gallery that
automatically
  creates thumbnails out of http-uploaded files.

 It's rather bleeding edge, but if your gra a copy of GD2-beta and a
 snapshot of PHP (from snaps.php.net) then you can use imagecopyresampled()
 to create thumbnails.  It can be a bit slow if your originals are huge,
 but the quality is very good.

 -Rasmus


 --
 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]




-- 
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]




[PHP] getimagesize (Bug? or error in PhP?)

2001-05-23 Thread bram

Hi,

I want to have the width and the height of an image, if I place the image on
my server then it works buth if i want to load the image from another server
then I have errors, is this a bug in PHP, or is there another solution.
Because in the php.net manual they use Getimagesize() too for loading an
image from another site
(http://www.php.net/manual/en/function.getimagesize.php)
Please post a message if you know what I must do, thanks
bram

html
head
 titleGetImageSize/title
/head
body
?
$url=http://toontime.dk/cli/pt09.jpg;;
$imagehw = GetImageSize($url);
$imagewidth = $imagehw[0];
$imageheight = $imagehw[1];
print$imagewidth ;
print$imageheight ;
?
/body
/html




-- 
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]




[PHP] Searching a MYSQL DB

2001-05-23 Thread YoBro

Hi,

Any ideas, or any code that will allow a search of specific keywords in a
mysql database.

Feilds in a Table called:
Name
Description

What I am after is if somebody types the word 'hammer', then I want it to
return the results in a list if the word hammer is picked up under the name
of description feilds.

Is this easier enough to do?

YoBro



-- 
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]




[PHP] PHP AND SSI

2001-05-23 Thread Shashwat

How can I run SSI commands like !--#include file=desk.htm-- etc. in PHP
files... as ASP supports it.. I have Apache on Linux Server with PHP
4 installed

Shashwat





-- 
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]




Re: [PHP] session problem

2001-05-23 Thread Robert Schaller

Hi Chris,

thanks for your fast reply. I tried your advice, checking if a variable
is already registered before registering it again, the problem remains.

The thing that bugs me is that I am getting no error message whatsoever,
session_register is returning true and there is nothing in the log file.

I ran tcpdump to see what is going on, this is what happens:

1. on the first call I'm getting a OK HTTP reply with a set cookie and
the session file is being created in the session file path, its empty
though (the file is web server readable, writable). A Counter: 1 is
returned.

2. The second call delivers the cookie correctly to the script, the
script doesn't set a new cookie this time, returns a HTTP OK, replies
with Counter: 1, obviously the session variable $counter was not kept.

3. On the third call, I am getting no HTTP reply from the Server. If I
close the browser and open it again, the same thing 1-3 happens again.
Same with NS and IE!

Something is broken here!


regards,
Robert 

Chris Lee wrote:
 
 calling session_register() on a var that is allready registered is asking
 for trouble. there seems to be some bug in php concerning this.
 
 ?php
 
  session_start();
 
  if (!isset($HTTP_SESSION_VARS['counter']))
  {
   $counter = 0;
   session_register('counter');
  }
  $counter++;
 
  echo 
  Counter: $counterbr
  ;
 
 ?
 
 will work better for you I hope. please get back to me regarding how this
 worked out.

-- 
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]




Re: [PHP] PHP AND SSI

2001-05-23 Thread Zak Greant

Use PHP's include() function. See the online manual for details.

--zak

- Original Message -
From: Shashwat [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 23, 2001 4:07 AM
Subject: [PHP] PHP AND SSI


 How can I run SSI commands like !--#include file=desk.htm-- etc. in
PHP
 files... as ASP supports it.. I have Apache on Linux Server with
PHP
 4 installed

 Shashwat





 --
 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]



-- 
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]




Re: [PHP] PHP AND SSI

2001-05-23 Thread John Monfort



  You should be able to just print it. The code won't matter to php, but
the browser will process it.

?php

  echo !--#include file='desk.htm' --;



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
The world is waiting, are you ready?
-+___+-

On Wed, 23 May 2001, Shashwat wrote:

 How can I run SSI commands like !--#include file=desk.htm-- etc. in PHP
 files... as ASP supports it.. I have Apache on Linux Server with PHP
 4 installed

 Shashwat





 --
 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]




-- 
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]




Re: [PHP] PHP AND SSI

2001-05-23 Thread Shashwat Nagpal

Thanks alot!
i'll sure do that

Cheers!

Shash
- Original Message -
From: Zak Greant [EMAIL PROTECTED]
To: Shashwat [EMAIL PROTECTED]
Cc: Php-General [EMAIL PROTECTED]
Sent: Wednesday, May 23, 2001 3:41 PM
Subject: Re: [PHP] PHP AND SSI


 Use PHP's include() function. See the online manual for details.

 --zak

 - Original Message -
 From: Shashwat [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, May 23, 2001 4:07 AM
 Subject: [PHP] PHP AND SSI


  How can I run SSI commands like !--#include file=desk.htm-- etc. in
 PHP
  files... as ASP supports it.. I have Apache on Linux Server with
 PHP
  4 installed
 
  Shashwat
 
 
 
 
 
  --
  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]
 



-- 
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]




Re: [PHP] Searching a MYSQL DB

2001-05-23 Thread James Holloway

Hey,
Simple solution:

?

$search = hammer;

$connection = // Connection to the database details.

$query = @mysql_query(SELECT * FROM table WHERE Name LIKE '%$search%' OR
Description LIKE '%$search%' ORDER BY Name ASC, $connection)
or die (mysql_error());

while($row = mysql_fetch_array($query)) {
$name = $row['Name'];
$description = $row['Description'];

echo b . stripslashes(htmlentities($name)) . /b\nBR\n .
stripslashes(htmlentities($description)) . BRBR\n;

}

?

James.

YoBro [EMAIL PROTECTED] wrote in message
9eg0jl$5ac$[EMAIL PROTECTED]">news:9eg0jl$5ac$[EMAIL PROTECTED]...
 Hi,

 Any ideas, or any code that will allow a search of specific keywords in a
 mysql database.

 Feilds in a Table called:
 Name
 Description

 What I am after is if somebody types the word 'hammer', then I want it to
 return the results in a list if the word hammer is picked up under the
name
 of description feilds.

 Is this easier enough to do?

 YoBro



 --
 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]




-- 
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]




Re: [PHP] getimagesize (Bug? or error in PhP?)

2001-05-23 Thread bram

I' have version Version 4.0.4pl1


 Hi,

 I want to have the width and the height of an image, if I place the image
on
 my server then it works buth if i want to load the image from another
server
 then I have errors, is this a bug in PHP, or is there another solution.
 Because in the php.net manual they use Getimagesize() too for loading an
 image from another site
 (http://www.php.net/manual/en/function.getimagesize.php)
 Please post a message if you know what I must do, thanks
 bram

 html
 head
  titleGetImageSize/title
 /head
 body
 ?
 $url=http://toontime.dk/cli/pt09.jpg;;
 $imagehw = GetImageSize($url);
 $imagewidth = $imagehw[0];
 $imageheight = $imagehw[1];
 print$imagewidth ;
 print$imageheight ;
 ?
 /body
 /html




 --
 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]




-- 
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]




Re: [PHP] Searching a MYSQL DB

2001-05-23 Thread Miles Thompson

Yes, it's easy and you already have at least one answer.

If you are going to be doing any database programming, a basic familiarity 
with SQL (Structured Query Language) and relational databases is pretty 
essential. A book like SQL for Dummies is an excellent place to start, 
you could probably find some useful things on line if you search for 
something like SQL tutorial. There may also be a tutorial linked from the 
MySQL web site.

So, dig in and have fun. It's pretty straightforward.

Regards - Miles Thompson



At 09:44 PM 5/23/01 +1200, YoBro wrote:
Hi,

Any ideas, or any code that will allow a search of specific keywords in a
mysql database.

Feilds in a Table called:
Name
Description

What I am after is if somebody types the word 'hammer', then I want it to
return the results in a list if the word hammer is picked up under the name
of description feilds.

Is this easier enough to do?

YoBro



--
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]


-- 
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]




Re: [PHP] OT PHP Manuals

2001-05-23 Thread Miles Thompson


My apologies to Joseph, and to the group at large.

I didn't read his question carefully, and in retrospect, gave him a pretty 
asinine answer.

Braaay! - Miles Thompson

At 10:22 PM 5/22/01 -0300, Miles Thompson wrote:
Why? We have the manuals in two truly portable formats, HTML and PDF, not 
to mention on-line, annotated HTML.
Miles Thompson

At 10:37 AM 5/23/01 +0930, Joseph Blythe wrote:
Hey all,

Just was wondering if anyone knew what was used to make the php manuals 
in the windows help format (.chm), I really like them :-)

Regards,

Joseph.

--
BoldFX / Binary Logic
The Logical Choice
750 Port Road Beverley 5009
Ph: (08) 8244 1800 Fax: (08) 8244 1811
mailto: [EMAIL PROTECTED]


--
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]


--
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]


-- 
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]




RE: [PHP] Whitespace

2001-05-23 Thread Don Read


On 23-May-01 Wade Halsey wrote:
 Hey
 
 How can I add a certain number of whitespace chars to a text file?
 I write variables to a text file and I want to seperate them by certain
 numbers of whitespace chars
 
 eg : $var(40 whitespace)$var2(10 whitespace)
 

$str=sprintf('%40s%10s', $var, $var2);
fwrite($fp, $str);

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
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]




Re: [PHP] getimagesize (Bug? or error in PhP?)

2001-05-23 Thread Bert

On 23 May 2001 04:15:09 -0700, [EMAIL PROTECTED] (bram) wrote:

I' have version Version 4.0.4pl1


URL support was added in PHP 4.0.5 !
So it won't work with 4.04...

Bert

-- 
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]




[PHP] Converting MySQL Date (2001-05-21) to Friendly Date (21 May 2001)

2001-05-23 Thread Matthew Ralston

I've got a date stored in a MySQL database in a DATE field, so it is
stored as 2001-05-21. How do I convert that into a more friendly date like
21 May 2001 or even 21st May 2001 for display on a web page?

I've tried

print date(jS F Y, $dbtable[date]);

but I always get 1st January 1970 because I don't know how to convert the
MySQL date into a PHP timestamp.

Can someone tell me how to do it please?

--
Thanks,

Matt
[EMAIL PROTECTED]
 www.mralston.co.uk /






-- 
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]




Re: [PHP] file download

2001-05-23 Thread py

Hello, I had the same problem as you for months!
until someone post this a couple of weeks ago:

header(Content-Type: application/octet-stream);
header(Content-Disposition: attachment; filename=file.txt);
include(file.txt);

py

- Original Message -
From: Aleksey Yarilovets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 23, 2001 9:44 AM
Subject: [PHP] file download


 Hi everyone!

 I need user to dowload a file from my server ( Apache ), what i do is:
 ?
header(Content-Type: application/download);
header(Content-Disposition: attachment; filename='report.txt');
 echo file contents;
 ?

 It was working till now but sudenly i start recieve the message from
 iexplorer:

 IE can not download ScriptName.php file from the server.
 IE was not able to open this site. The requested site either unavailable
or
 can not be found.

 :(

 Does somebody knows what is going on?

 Thanks, Alexey.

 Email: [EMAIL PROTECTED]
 ICQ# 101975252





 --
 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]



-- 
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]




[PHP] Help !!

2001-05-23 Thread John Monfort



 I'm trying to configure PHP on IRIx 6.5, with NS FastTrack.

 PHP works in the shell, but not thru the server. I checked the log file
and noticed it (server) had a fatal error, because it could not find
 redirect_php.so .

 That file was not included in the distribution and is no where to be
 found.

 What is that file? Where can I get it? Did I miss a step, or something?

 I insstalled PHP from the SGI tar disctribution, from their support
 homepage, so I don't understand why I'm getting that error.

 Please help!





__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
The world is waiting, are you ready?
-+___+-



-- 
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]




Re: [PHP] Converting MySQL Date (2001-05-21) to Friendly Date (21 May 2001)

2001-05-23 Thread Miles Thompson

Mathew,

Great that they're backwards from one another, isn't it?

The regular expression wizards probably have some marvellous trick up their 
sleeve, and Manuel Lemos probably has a class that will do this. You can do 
it yourself by using substring functions to extract the parts of the date, 
rearrange it and then, if you wish, use a couple of lookup arrays to fetch 
months and extensions like st rd ...

But better that, aren't there date extraction functions in MySQL you can 
use in your select statement?

Or, even better, and this is a personal crusade, Let's train the world to 
use a logical date format: -mm-dd!! (Isn't this an ISO Standard, which 
should be acceptedin the UK and in Europe?)

Here's some extraction stuff I messed around with about a year 
ago...$dtAuctionStart is mmdd MySql date, no hyphens.

Some messing about with dates br
=br


echo $dtAuctionStart, br;
echo date (Y-m-d, $dtAuctionStart ), br;
//$strDate = $dtAuctionStart ;
echo dtAuctionStart : $dtAuctionStart;

$year = substr ($dtAuctionStart, 0, 4);
$month = substr( $dtAuctionStart, 4, 2 );
$day = substr ($dtAuctionStart, 6, 2 );
Echo dtAuctionStart in m-d -y : $month-$day-$year br;

$workdate = getdate( $dtAuctionStart );
echo  Workdate Year:, $workdate[year],br;


Ereg Stuff br
==br

if (ereg (([0-9]{4})([0-9]{1,2})([0-9]{1,2}), $dtAuctionStart, $regs))
{
echo Auction Start: $regs[1]-$regs[2]-$regs[3] brbr;
}
else
{
echo Bad date format. br;
}


Have fun - Miles

At 01:57 PM 5/23/01 +0100, Matthew Ralston wrote:
I've got a date stored in a MySQL database in a DATE field, so it is
stored as 2001-05-21. How do I convert that into a more friendly date like
21 May 2001 or even 21st May 2001 for display on a web page?

I've tried

print date(jS F Y, $dbtable[date]);

but I always get 1st January 1970 because I don't know how to convert the
MySQL date into a PHP timestamp.

Can someone tell me how to do it please?

--
Thanks,

Matt
[EMAIL PROTECTED]
 www.mralston.co.uk /






--
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]



Re: [PHP] Converting MySQL Date (2001-05-21) to Friendly Date (21 May 2001)

2001-05-23 Thread Pavel Jartsev

Matthew Ralston wrote:
 
 I've got a date stored in a MySQL database in a DATE field, so it is
 stored as 2001-05-21. How do I convert that into a more friendly date like
 21 May 2001 or even 21st May 2001 for display on a web page?
 
 I've tried
 
 print date(jS F Y, $dbtable[date]);
 
 but I always get 1st January 1970 because I don't know how to convert the
 MySQL date into a PHP timestamp.
 
 Can someone tell me how to do it please?
 

Maybe it's not very nice, but it works:
?
list($y,$m,$d) = explode('-', $dbtable['date']);
print date(jS F Y, mktime(0, 0, 0, $m, $d, $y));
?


Hope this helps.

-- 
Pavel a.k.a. Papi

-- 
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]




[PHP] advice on 'Nusphere Mysql Package' appreciated

2001-05-23 Thread Johnny Smith

I'm building a machine that will never be used on the internet.

I only plan to use it to build a database.

Later I will upload the database to another PHP/MYsql server which
will be on the net.

What I want is the simplest possible way to quickly build a
basic functional PHP/MYsql machine.

And I want to be able to quickly and  reliably rebuild it
'exactly' as it was before a crash.

I am told that the Nusphere install is interactive,
that it asks you a few  questions about where to put stuff
and handles all aspects of the install [ on Redhat 6, 7, 7,1].

But basically that the install is quick and easy.

Is this true?

Is Nusphere's Mysql cdrom what I am looking for?
Is Nusphere's Documentation good?
Is Nusphere's support any good?Do they respond quickly?

Will Nusphere work on a machine that has Redhat installed as
right off the cdrom...
but without any updating of RedHat 6.2, 7.0, 7.1  itself ? ?

I have RH-6.2, 7.0, 7.1 available to use...which would be the best ?

Are there any problems to beware of?

Many thanks in advance for your advice on this.
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


-- 
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]




Re: [PHP] Converting MySQL Date (2001-05-21) to Friendly Date (21 May 2001)

2001-05-23 Thread Matthew Ralston

Thanks Papi,

That works fine.

Matt
[EMAIL PROTECTED]
 www.mralston.co.uk /

Pavel Jartsev [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Matthew Ralston wrote:
 
  I've got a date stored in a MySQL database in a DATE field, so it is
  stored as 2001-05-21. How do I convert that into a more friendly date
like
  21 May 2001 or even 21st May 2001 for display on a web page?
 
  I've tried
 
  print date(jS F Y, $dbtable[date]);
 
  but I always get 1st January 1970 because I don't know how to convert
the
  MySQL date into a PHP timestamp.
 
  Can someone tell me how to do it please?
 

 Maybe it's not very nice, but it works:
 ?
 list($y,$m,$d) = explode('-', $dbtable['date']);
 print date(jS F Y, mktime(0, 0, 0, $m, $d, $y));
 ?


 Hope this helps.

 --
 Pavel a.k.a. Papi

 --
 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]




-- 
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]




[PHP] MySQL Select

2001-05-23 Thread Jamie Thompson

ok...sorry to ask a stupid question but

$result = mysql_query(SELECT jazz FROM funk WHERE foo='bar')

but where do you go from there. How would you iterate through the array a
row at a time, doing your thing as you go along?

thanks,

jamie


-- 
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]




Re: [PHP] include!!!!!

2001-05-23 Thread mheumann

Hi,
that sounds like your Web server doesn't interpret PHP at all.  Are you sure you 
enabled it correctly?
What platform are you working on?
Greetings,
Michael.

 I'm new to php (having converted from the evil ASP) and i'm having some
 trouble with includes

 this is what i'm doing...

 ?php
 include(inc/db.inc.php)

 database stuff

 ?

 db.inc.php is as follows:
 $linkID = mysql_connect('localhost', 'root', 'not-telling-you');
 mysql_select_db('foobar');


 All i get is the above outputted to the screen as html!


 --
 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]


#
# Michael Heumann
# SI Chile - Software e Informatica Limitada
# Arlegui 440, Of. 403, Viña del Mar, Chile
# Fonofax: (56)(32) 710833
# Email: [EMAIL PROTECTED]
# Web: http://www.softwareinformatica.cl
#

--
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]




Re: [PHP] Converting MySQL Date (2001-05-21) to Friendly Date (21 May 2001)

2001-05-23 Thread Ethan Schroeder

You could shorten it by having mysql convert the date into a timestamp:
$result = mysql_query(SELECT UNIX_TIMESTAMP(date) as somedate FROM dates);
  $row = mysql_fetch_array($result);
  echo date(jS F Y, $row[somedate]);

Ethan
- Original Message -
From: Pavel Jartsev [EMAIL PROTECTED]
To: Matthew Ralston [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, May 23, 2001 6:21 AM
Subject: Re: [PHP] Converting MySQL Date (2001-05-21) to Friendly Date (21
May 2001)


 Matthew Ralston wrote:
 
  I've got a date stored in a MySQL database in a DATE field, so it is
  stored as 2001-05-21. How do I convert that into a more friendly date
like
  21 May 2001 or even 21st May 2001 for display on a web page?
 
  I've tried
 
  print date(jS F Y, $dbtable[date]);
 
  but I always get 1st January 1970 because I don't know how to convert
the
  MySQL date into a PHP timestamp.
 
  Can someone tell me how to do it please?
 

 Maybe it's not very nice, but it works:
 ?
 list($y,$m,$d) = explode('-', $dbtable['date']);
 print date(jS F Y, mktime(0, 0, 0, $m, $d, $y));
 ?


 Hope this helps.

 --
 Pavel a.k.a. Papi

 --
 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]



-- 
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]




RE: [PHP] Passwords?

2001-05-23 Thread Boget, Chris

 I have some field error checking going on ... and when a user 
 (say) doesn't fill in a field correctly, my error page comes up telling 
 them.  They then must click on their browsers back button 
 and make the changes.
 Now -- I have a password field, and when they click back, 
 they are forced to re-enter their password -- this is annoying.
 My questions are:
 1. Is there a way to make this stop happening?
 2. Instead of the user clicking on their browsers back 
 button, can I add a
 URL that provides the same functionality -- that will work in IE 
 and Netscape?

Why don't you have the form do it's own error checking.  That
way, if there are errors, the form displays again and you won't
lose any values...

Chris



[PHP] how can i get local script name?

2001-05-23 Thread elias

hello!
I can use $PHP_SELF to get it's name.
how can i get it's name and location on the hard drive?

-elias



-- 
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]




[PHP] Re:[PHP] MySQL Select

2001-05-23 Thread Jon Yaggie



think this is what you want 


$i = 0;
$result = mysql_query(SELECT jazz FROM funk WHERE foo='bar')
while($music = mysql_fetch_array($result))
{

$funk_music[$i] = $music[0];
$I++;

}





ok...sorry to ask a stupid question but

$result = mysql_query(SELECT jazz FROM funk WHERE foo='bar')

but where do you go from there. How would you iterate through the array a
row at a time, doing your thing as you go along?

thanks,

jamie



RE: [PHP] MySQL Select

2001-05-23 Thread Jon Haworth

Something like:

if ($array_result = mysql_fetch_array($result)) {
do {
// do your thing here
} while ($array_result = mysql_fetch_array($result));
}

HTH
Jon


-Original Message-
From: Jamie Thompson [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2001 14:33
To: [EMAIL PROTECTED]
Subject: [PHP] MySQL Select


ok...sorry to ask a stupid question but

$result = mysql_query(SELECT jazz FROM funk WHERE foo='bar')

but where do you go from there. How would you iterate through the array a
row at a time, doing your thing as you go along?

thanks,

jamie


-- 
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]



**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or
confidentiality'

**

-- 
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]




Re: [PHP] files

2001-05-23 Thread Brian Clark

Hi Jon,

@ 10:25:43 AM on 5/23/2001, Jon Yaggie wrote:

--(snip)--
 I need to find the last update of one of any file in
 clients/$username. With out specificly knowing any of the filenames.
 As i can see there is no way for my script to list the files in this
 directory and there is no function to test for modifications of all
 files in a fiven directory.

Well, of course you could use filemtime() to test the modification
time.

http://us.php.net/manual/en/function.filemtime.php

Isn't that what you're looking for?

As for all files, you could read the directory contents and test each
file.

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.


-- 
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]




Re: Re: [PHP] files

2001-05-23 Thread Jon Yaggie

What i need is the function that allows me to read the files in the directory.  This 
is what i can'g find.  To be honest I am lazy and was hoping there may be a secret 
function out there like filetime() that worked on the whole directory.  but all i 
really need is what function will read the contains of the direcotry?

Jon



[PHP] About Commit..

2001-05-23 Thread Hassan Arteaga

Hi all!!

I wants to implements transacctions with this code...What can I do ?


$Conn=mysql_connect(myserver,myroot,mypass);
$Query_ID1=mysql_db_query (App, update FamiliPic set pic_code=4 ,
$Conn); //only example
$Query_ID2=mysql_db_query (App, update DesFam set pic_code=4 , $Conn);
//only example
...other code 

Thanks !!!

--
M. Sc. Hassan Arteaga Rodríguez
Microsoft Certified System Engineer
Network Admin, WEB Programmer
FUNDYCS, Ltd
[EMAIL PROTECTED]

--
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]




Re: [PHP] how can i get local script name?

2001-05-23 Thread Wieger Uffink

Hi

$path = $HTTP_SERVER_VARS[SCRIPT_FILENAME];

wieger

elias wrote:
 
 hello!
 I can use $PHP_SELF to get it's name.
 how can i get it's name and location on the hard drive?
 
 -elias
 
 --
 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]

-- 
Wieger Uffink
tel: +31 20 428 6868
fax: +31 20 470 6905
web: http://www.usmedia.nl

-- 
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]




Re: [PHP] how can i get local script name?

2001-05-23 Thread Brian Clark

Hi Elias,

@ 7:51:25 PM on 5/23/2001, elias wrote:

--(snip)--
 I can use $PHP_SELF to get it's name.
 how can i get it's name and location on the hard drive?

Try $SCRIPT_FILENAME

If that doesn't produce anything, stick this in a file and view it in
your browser. One, or more, of the vars displayed in the PHP
Variables section should provide what you're looking for.

?php

phpinfo();

?

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.


-- 
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]




Re: [PHP] files

2001-05-23 Thread Brian Clark

Hi Jon,

@ 10:55:03 AM on 5/23/2001, Jon Yaggie wrote:

 What i need is the function that allows me to read the files in the
 directory. This is what i can'g find.
--(snip)--

readdir()

http://us.php.net/manual/en/function.readdir.php

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.


-- 
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]




[PHP] re: files

2001-05-23 Thread Jon Yaggie

Okay thanks perhaps i am using an old manual.  I think i downloaded it about three 
months ago but this function is not present there . .. 


Jon



[PHP] How to select rows from Mysql with case senstive ??

2001-05-23 Thread Bass¨Ð¦õªv

Hi ,
By defualt , select rows from Mysql is case insenstive .
For exmaple ,
select * from foo where name = 'PHP'
select * from foo where name = 'php'
is the same

how can i do a queny which
select * from foo where name = 'PHP'
is success
but
select * from foo where name = 'php'
fail ??

given that name = 'PHP' in the database

thx



-- 
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]




RE: Re: [PHP] files

2001-05-23 Thread Rudolf Visagie

Hi

function GetFiles ($DataPath, $files, $nfiles) {

// Reads a directory and puts filenames into a sorted array
$handle=opendir($DataPath);
if ($handle) {
$nfiles = -1;
while (false!==($file = readdir($handle))) {
if ($file != .  $file != ..) {
$nfiles++;
$files[$nfiles] = $file;
}
}
sort($files);
closedir($handle);
}
return 0;
}

Rudolf Visagie
[EMAIL PROTECTED]

-Original Message-
From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2001 04:55
To: [EMAIL PROTECTED]
Subject: Re: Re: [PHP] files


What i need is the function that allows me to read the files in the
directory.  This is what i can'g find.  To be honest I am lazy and was
hoping there may be a secret function out there like filetime() that worked
on the whole directory.  but all i really need is what function will read
the contains of the direcotry?

Jon

-- 
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]




[PHP] Web Server processing question

2001-05-23 Thread RockMonkey

Hi all,
I've been running some time trials on some of my PHP functions for a site
I've been putting together, and noticed that the process time is SOMETIMES
extremely high.

Before I continue, let me say that I know that the times can be affected by
other things running on the server, but the results are always the same no
matter how many times I run it.

In the following example, which is the one that I'm concerned about, the
same function is called multiple times in a row (with nothing happening in
between calls) for different categories. Basically, the function sorts an
array and outputs the 10 elements with the highest value.

I ran the test several times, calling the function hundreds of times with
the same data, and each time I ran the test every second call took thousands
of times longer than the ones that ran ok.

The results of the benchmark test (first 100):
function SimpleList = 10.228178024292 seconds MAX, 0.0024620294570923
seconds MIN

SimpleList item 1 took 0.004737711182 seconds
SimpleList item 2 took 4.8834660053253 seconds
SimpleList item 3 took 0.0026209354400635 seconds
SimpleList item 4 took 1.6767669916153 seconds
SimpleList item 5 took 0.0025150775909424 seconds
SimpleList item 6 took 3.5071390867233 seconds
SimpleList item 7 took 0.0066210031509399 seconds
SimpleList item 8 took 1.8121999502182 seconds
SimpleList item 9 took 0.0025880336761475 seconds
SimpleList item 10 took 10.228178024292 seconds
SimpleList item 11 took 0.0026429891586304 seconds
SimpleList item 12 took 1.3569248914719 seconds
SimpleList item 13 took 0.0026519298553467 seconds
SimpleList item 14 took 1.5246760845184 seconds
SimpleList item 15 took 0.047821998596191 seconds
SimpleList item 16 took 2.1210349798203 seconds
SimpleList item 17 took 0.0025339126586914 seconds
SimpleList item 18 took 2.7077790498734 seconds
SimpleList item 19 took 0.0024960041046143 seconds
SimpleList item 20 took 1.8957049846649 seconds
SimpleList item 21 took 0.0056090354919434 seconds
SimpleList item 22 took 1.3942409753799 seconds
SimpleList item 23 took 0.0032639503479004 seconds
SimpleList item 24 took 2.5071721076965 seconds
SimpleList item 25 took 0.0025739669799805 seconds
SimpleList item 26 took 0.75933194160461 seconds
SimpleList item 27 took 0.0025299787521362 seconds
SimpleList item 28 took 1.3230199813843 seconds
SimpleList item 29 took 0.0025479793548584 seconds
SimpleList item 30 took 1.5940990447998 seconds
SimpleList item 31 took 0.002769947052002 seconds
SimpleList item 32 took 1.6990089416504 seconds
SimpleList item 33 took 0.0025010108947754 seconds
SimpleList item 34 took 1.4948740005493 seconds
SimpleList item 35 took 0.0025290250778198 seconds
SimpleList item 36 took 1.3077820539474 seconds
SimpleList item 37 took 0.0027199983596802 seconds
SimpleList item 38 took 2.3882880210876 seconds
SimpleList item 39 took 0.023046970367432 seconds
SimpleList item 40 took 0.88547909259796 seconds
SimpleList item 41 took 0.0026249885559082 seconds
SimpleList item 42 took 1.494973897934 seconds
SimpleList item 43 took 0.0025370121002197 seconds
SimpleList item 44 took 1.4878768920898 seconds
SimpleList item 45 took 0.0028669834136963 seconds
SimpleList item 46 took 1.6947749853134 seconds
SimpleList item 47 took 0.0025030374526978 seconds
SimpleList item 48 took 1.3992600440979 seconds
SimpleList item 49 took 0.0062370300292969 seconds
SimpleList item 50 took 2.4599330425262 seconds
SimpleList item 51 took 0.0027350187301636 seconds
SimpleList item 52 took 0.73624801635742 seconds
SimpleList item 53 took 0.0050810575485229 seconds
SimpleList item 54 took 2.2535430192947 seconds
SimpleList item 55 took 0.0036349296569824 seconds
SimpleList item 56 took 1.6462769508362 seconds
SimpleList item 57 took 0.0025260448455811 seconds
SimpleList item 58 took 3.1076270341873 seconds
SimpleList item 59 took 0.0027920007705688 seconds
SimpleList item 60 took 1.5962820053101 seconds
SimpleList item 61 took 0.0025190114974976 seconds
SimpleList item 62 took 1.6848870515823 seconds
SimpleList item 63 took 0.0025689601898193 seconds
SimpleList item 64 took 2.0958459377289 seconds
SimpleList item 65 took 0.0026199817657471 seconds
SimpleList item 66 took 2.2060899734497 seconds
SimpleList item 67 took 0.0070620775222778 seconds
SimpleList item 68 took 2.1034359931946 seconds
SimpleList item 69 took 0.0029339790344238 seconds
SimpleList item 70 took 2.2868009805679 seconds
SimpleList item 71 took 0.0025150775909424 seconds
SimpleList item 72 took 2.9152449369431 seconds
SimpleList item 73 took 0.0030900239944458 seconds
SimpleList item 74 took 2.9968670606613 seconds
SimpleList item 75 took 0.0028420686721802 seconds
SimpleList item 76 took 3.005833029747 seconds
SimpleList item 77 took 0.0052200555801392 seconds
SimpleList item 78 took 1.4939750432968 seconds
SimpleList item 79 took 0.0025509595870972 seconds
SimpleList item 80 took 3.2771420478821 seconds
SimpleList item 81 took 0.0027899742126465 seconds
SimpleList item 82 took 

[PHP] sorry correction

2001-05-23 Thread Jon Yaggie

it seems that some of my manual is just missing . . . maybe it was aliens.  i have the 
link to the functions . ..  



[PHP] Using html templates

2001-05-23 Thread Jamie Thompson

what is the best way of using html templates to display data from a database?

-- 
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]




[PHP] (pas d'objet)

2001-05-23 Thread Thomas Ferte

 

-- 
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]




[PHP] Delphi and PHP : problem returning parameter to script

2001-05-23 Thread Gilles Koffmann

Hi,

I' have implemented in Delphi part of the ZEND API for extensions based on
the
example in the document in http://www.zend.com/apidoc/p2.php.

My problem is that I'm not getting back my value (2) in my php script :

...
?
$param = 2;
$return = first_module($param);
 print(We sent \$param\ and got \$return\);
?
...

this script prints in the browser :  We sent 2 and got  , but the last
line (message box) of my
fisrt_module() procedure shows me that the returning value is OK.

WHAT'S WRONG ?

DELPHI SOURCE CODE FOR first_module()

procedure zend_if_first_module(ParamCount : integer; return_value : Pzval;
this_ptr : Pzval; return_value_used : integer; executor_globals :
pointer);
var   parameter : PPzval ;
begin
  if (ParamCount  1) or (zend_get_parameters_ex(1, @parameter)  SUCCESS)
then
  begin
wrong_param_count;
  end;

  convert_to_long(parameter^);

  zval(return_value^).typeZ := IS_LONG;
  zval(return_value^).value.lval := (parameter^^).value.lval;

   // this last line gives me the good result : 2
  showmessage(inttostr((return_value^).value.lval));

//  return_value_used := 0;
end;



-- 
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]




RE: [PHP] How to select rows from Mysql with case senstive ??

2001-05-23 Thread Tiago Moitinho

Try 

SELECT * FROM foo WHERE strcmp('PHP', name) = 0; 



 -Original Message-
 From: Bass¨Ð¦õªv [mailto:[EMAIL PROTECTED]]
 Sent: quarta-feira, 23 de Maio de 2001 14:55
 To: [EMAIL PROTECTED]
 Subject: [PHP] How to select rows from Mysql with case senstive ??
 
 
 Hi ,
 By defualt , select rows from Mysql is case insenstive .
 For exmaple ,
 select * from foo where name = 'PHP'
 select * from foo where name = 'php'
 is the same
 
 how can i do a queny which
 select * from foo where name = 'PHP'
 is success
 but
 select * from foo where name = 'php'
 fail ??
 
 given that name = 'PHP' in the database
 
 thx
 
 
 
 -- 
 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]
 

--
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]




Re: [PHP] About Commit..

2001-05-23 Thread George E. Papadakis

Use Oracle if you want transactions. Yet, it's going to be slow.
Mysql is said to support transactions soon.

- Original Message -
From: Hassan Arteaga [EMAIL PROTECTED]
To: Php (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, May 23, 2001 4:55 PM
Subject: [PHP] About Commit..


 Hi all!!

 I wants to implements transacctions with this code...What can I do ?


 $Conn=mysql_connect(myserver,myroot,mypass);
 $Query_ID1=mysql_db_query (App, update FamiliPic set pic_code=4 ,
 $Conn); //only example
 $Query_ID2=mysql_db_query (App, update DesFam set pic_code=4 , $Conn);
 //only example
 ...other code 

 Thanks !!!

 --
 M. Sc. Hassan Arteaga Rodríguez
 Microsoft Certified System Engineer
 Network Admin, WEB Programmer
 FUNDYCS, Ltd
 [EMAIL PROTECTED]

 --
 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]



-- 
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]




[PHP] notifier

2001-05-23 Thread Taline Makssabo

Can anyone suggest where i could find a simple PHP code so i could get
notified whe users login into my site???

Mine seems to be bugged!

thanks


-- 
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]




RE: [PHP] About Commit..

2001-05-23 Thread Jon Haworth

I thought MySQL already supported transactions, but only for Berkeley table
types...

http://www.mysql.com/doc/C/O/COMMIT.html

Cheers
Jon


-Original Message-
From: George E. Papadakis [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2001 15:17
To: Hassan Arteaga; Php (E-mail)
Subject: Re: [PHP] About Commit..


Use Oracle if you want transactions. Yet, it's going to be slow.
Mysql is said to support transactions soon.

- Original Message -
From: Hassan Arteaga [EMAIL PROTECTED]
To: Php (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, May 23, 2001 4:55 PM
Subject: [PHP] About Commit..


 Hi all!!

 I wants to implements transacctions with this code...What can I do ?


 $Conn=mysql_connect(myserver,myroot,mypass);
 $Query_ID1=mysql_db_query (App, update FamiliPic set pic_code=4 ,
 $Conn); //only example
 $Query_ID2=mysql_db_query (App, update DesFam set pic_code=4 , $Conn);
 //only example
 ...other code 

 Thanks !!!


**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or confidentiality'

**

-- 
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]




Re: [PHP] MySQL Select

2001-05-23 Thread Vanessa

Hi

This is what I always do...
1. for one row (saved in array $reihe)...

$bla = SELECT * FROM table WHERE id = '$something''';
 // db is your database connection
$test = mysql_query($bla, $db);
 // you dont have to use the if...i do that to check if anything 
was returned
if ($reihe = mysql_fetch_row($test))
{
 echo $reihe[0] . $reihe[1];
}
//this will output field one and two of the queried row

2. to get several rows in an array:

$bla = SELECT * FROM table''';
 // db is your database connection
$test = mysql_query($bla, $db);

while ($reihe = mysql_fetch_array($test))
{
 echo $reihe[0];
}
//this will output the first field of all rows in this table


- Nessi -

(heh my first contribution to the mailing list! woohooo) ;)))


At 14:32 23/05/01 +0100, you wrote:
ok...sorry to ask a stupid question but

$result = mysql_query(SELECT jazz FROM funk WHERE foo='bar')

but where do you go from there. How would you iterate through the array a
row at a time, doing your thing as you go along?

thanks,

jamie


--
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]


-- 
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]




RE: [PHP] files

2001-05-23 Thread Don Read


On 23-May-01 Jon Yaggie wrote:
 Okay I am making a small script for a web design company.  What it does so
 far is take info - name, email, username,, pasword - which as all inputted
 by the designer.  Then it creates a directory clients/$username on the
 company's server for the temp home of the clients web site.  The design then
 ftps all files into this directory.  Other than index.html I have no idea
 what the other files will be. so here is the problem
 
 I need to find the last update of one of any file in clients/$username. 
 With out specificly knowing any of the filenames.  As i can see there is no
 way for my script to list the files in this directory and there is no
 function to test for modifications of all files in a fiven directory.  
 
 in the end i want that when the client logs in the script can spit out you
 website was last updated -
 
 Ideas?

$cmd ='ls -t $dirname | head -1';
$p=popen($cmd, 'r');
$fname=fgetss($p,1000);
$mt=filemtime($fname);
pclose($p);
echo $fname, ' modified on ', strftime('%b %e, %G', $mt);

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
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]




Re: [PHP] Passing variables

2001-05-23 Thread Peter Dudley

You can pass variables through the session mechanism.
http://www.php.net/manual/en/ref.session.php

This will require some additional work to get your sessions working
properly, but you probably want to do that anyway at some point.  I have
found the session mechanism to be extremely useful so far, though to this
point it's only been in a development (not production) environment.

Pete.
PS:  If you want to get really ugly, you can have all your links actually be
javascript functions that submit a form full of hidden elements via POST.
Uglier and more bug-prone than including them in the link URL, but you don't
run into URL length limits and you don't get people quite as easily changing
the values to see what happens.

 Is there any other way of passing variables other than submitting them
 through a form and passing them using a URL? E.G. Currently I am passing
 them though a url which is not the safest means in anyway.




-- 
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]




Re: [PHP] PHP AND SSI

2001-05-23 Thread Christian Reiniger

On Wednesday 23 May 2001 12:12, John Monfort wrote:
   You should be able to just print it. The code won't matter to php,
 but the browser will process it.

 ?php

   echo !--#include file='desk.htm' --;

the browser will process it

What does SSI stand for?
  - Sis Sounds Interesting
  - Server Side Includes
  - Selective Stupidity Incorporated

You have three guesses...

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

/* you are not expected to understand this */

- from the UNIX V6 kernel source

--
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]




Re: [PHP] notifier

2001-05-23 Thread Chris Lee

notified, like an email ? look at the mail() function. when the user logs
on, email yourself.

--

  Chris Lee
  [EMAIL PROTECTED]




Taline Makssabo [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Can anyone suggest where i could find a simple PHP code so i could get
 notified whe users login into my site???

 Mine seems to be bugged!

 thanks


 --
 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]




-- 
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]




Re: [PHP] re: files

2001-05-23 Thread Christian Reiniger

On Wednesday 23 May 2001 17:03, Jon Yaggie wrote:
 Okay thanks perhaps i am using an old manual.  I think i downloaded it
 about three months ago but this function is not present there . ..

Bad excuse. That function has been in there since at least the early PHP3 
versions.

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

/* you are not expected to understand this */

- from the UNIX V6 kernel source

--
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]




Re: [PHP] Web Server processing question

2001-05-23 Thread Christian Reiniger


 In the following example, which is the one that I'm concerned about,
 the same function is called multiple times in a row (with nothing
 happening in between calls) for different categories. Basically, the
 function sorts an array and outputs the 10 elements with the highest
 value.

 I ran the test several times, calling the function hundreds of times
 with the same data, and each time I ran the test every second call took
 thousands of times longer than the ones that ran ok.

Well, as it really alternates between fast and slow, there has to be some 
real reason for it. Can you post some code?

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

/* you are not expected to understand this */

- from the UNIX V6 kernel source

--
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]




Re: [PHP] How to select rows from Mysql with case senstive ??

2001-05-23 Thread James Holloway

Hey try this, though there are probably better ways,

SELECT * FROM foo WHERE name REGEXP '^[PHP]';

James

Bass¨Ð¦õªv [EMAIL PROTECTED] wrote in message
9egfot$cfu$[EMAIL PROTECTED]">news:9egfot$cfu$[EMAIL PROTECTED]...
 Hi ,
 By defualt , select rows from Mysql is case insenstive .
 For exmaple ,
 select * from foo where name = 'PHP'
 select * from foo where name = 'php'
 is the same

 how can i do a queny which
 select * from foo where name = 'PHP'
 is success
 but
 select * from foo where name = 'php'
 fail ??

 given that name = 'PHP' in the database

 thx



 --
 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]




-- 
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]




[PHP] Can you help me with this: Bug #11055: segmentation fault core dump during make

2001-05-23 Thread louigi600

  From: [EMAIL PROTECTED]
  Operating system: linux 2.2.14 (RH 6.2)
  PHP version:  4.0.5
  PHP Bug Type: Sybase-ct (ctlib) related
  Bug description:  segmentation fauld  core dump during make
 
  downloaded free sybase-ct libs from link in faq from php site.
  unpacked in /sybase-ct
  fixed /etc/ld.so.conf  ran ldconfig
 
  then tried to compile php with sybase-ct support (in order to access
 MSSQL server) as a DSO module:
 
  [root@linux php-4.0.5]# ./configure --with-mysql --with-apxs
 --enable-sockets --with-oracle=/mnt/ora_syb/ora/app/oracle/product/8.0.5
 --with-sybase-ct=/sybase-ct
 
  went fine then ran:
  [root@linux php-4.0.5]# make
 
  got the following error:
 
  make[1]: Entering directory `/mnt/ora_syb/php-4.0.5'
  /bin/sh /mnt/ora_syb/php-4.0.5/libtool --silent --mode=link gcc  -I.
 -I/mnt/ora_syb/php-4.0.5/ -I/mnt/ora_syb/php-4.0.5/main
 -I/mnt/ora_syb/php-4.0.5 -I/usr/include/apache
 -I/mnt/ora_syb/php-4.0.5/Zend
 -I/mnt/ora_syb/php-4.0.5/ext/mysql/libmysql
 -I/mnt/ora_syb/ora/app/oracle/product/8.0.5/rdbms/demo
 -I/mnt/ora_syb/ora/app/oracle/product/8.0.5/network/public
 -I/mnt/ora_syb/ora/app/oracle/product/8.0.5/plsql/public
 -I/sybase-ct/include -I/mnt/ora_syb/php-4.0.5/ext/xml/expat/xmltok
 -I/mnt/ora_syb/php-4.0.5/ext/xml/expat/xmlparse
 -I/mnt/ora_syb/php-4.0.5/TSRM  -DLINUX=2 -DEAPI -DUSE_EXPAT
 -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2   -o libphp4.la -rpath
 /mnt/ora_syb/php-4.0.5/libs -avoid-version
 -L/mnt/ora_syb/ora/app/oracle/product/8.0.5/lib -L/sybase-ct/lib  -R
 /mnt/ora_syb/ora/app/oracle/product/8.0.5/lib -R /sybase-ct/lib stub.lo 
 Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la
 ext/mysql/libmysql.la ext/oracle/liboracle.la ext/pcre/libpcre.la
  ext/posix/libposix.la ext/session/libsession.la
 ext/sockets/libsockets.la ext/standard/libstandard.la
 ext/sybase_ct/libsybase_ct.la ext/xml/libxml.la TSRM/libtsrm.la -lpam
 -ldl -linsck -lsybtcl -lintl -lcomn -lct -lcs -lclntsh -lpsa -lcore4
 -lnlsrtl3 -lm -lnsl -lresolv -lm -ldl -lcrypt -lnsl -lresolv
  collect2: ld terminated with signal 11 [Segmentation fault], core
 dumped
  /sybase-ct/lib/libct.a(ctconpr.o)(.text+0x5ac): undefined reference to
 `comn_loc_copy'
  make[1]: *** [libphp4.la] Error 1
  make[1]: Leaving directory `/mnt/ora_syb/php-4.0.5'
  make: *** [all-recursive] Error 1
  N.B.
  previous run witout sybase-ct support went fine!




 dont know if it will help but, try php 4.0.6rc1 from 
 http://www.php.net/~andi/php-4.0.6RC1.tar.gz  or try a 4.0.7-dev
 snapshot from http://snaps.php.net/php4-latest.tar.gz
 Cameron

Since the error comes from :
/sybase-ct/lib/libct.a(ctconpr.o)(.text+0x5ac): undefined reference to 
`comn_loc_copy'

I feel that this will not solve the problem ... as in effect it did not.
I see that some people solved similar problems by doungrading to version 
4.0.3 ... could this be a solution for my problem ?
where can I get these old sources (on php site oldest version avalible is 
4.0.4) ?
Can any body suggest any other solution ?

By dave


-
Questo messaggio è stato inviato utilizzando http://it.my.gsmbox.com 

-- 
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]




[PHP] PHP4/IIS/WIN2: Cookies are not sent. HELP!!

2001-05-23 Thread Diego Fulgueira

Recently, I reinstalled Windows 2000 (IIS 5.0) and PHP 4.03pl1. Since then,
no cookies are being sent to the clients. No error is being reported. I
change the PHP installation to 4.04, but I still have the same problem. I
can't do session handling or anything without cookies.
HELP PLEASE. Any clues will be greatly appreciated.
Thanks in advance,
Cheers,
Diego.


-- 
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]




RE: [PHP] How to select rows from Mysql with case senstive ??

2001-05-23 Thread Don Read


On 23-May-01 Bass¨Ð¦õªv wrote:
 Hi ,
 By defualt , select rows from Mysql is case insenstive .
 For exmaple ,
 select * from foo where name = 'PHP'
 select * from foo where name = 'php'
 is the same
 
 how can i do a queny which
 select * from foo where name = 'PHP'
 is success
 but
 select * from foo where name = 'php'
 fail ??
 
 given that name = 'PHP' in the database
 

where BINARY name = 'php'
 (BINARY casts were added in 3.23.?)

you also might consider changing your column to varchar() binary.

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
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]




Re: [PHP] PHP4/IIS/WIN2: Cookies are not sent. HELP!!

2001-05-23 Thread Michael Kimsal

IIS running anything as a CGI doesn't support standard cookie specs - 
you need to search on the microsoft site about CGI, IIS and NPH (non 
parsed headers).  They admit they don't support the CGI spec, and offer 
a workaround, but I can't attest to it working or not.


Diego Fulgueira wrote:

 Recently, I reinstalled Windows 2000 (IIS 5.0) and PHP 4.03pl1. Since then,
 no cookies are being sent to the clients. No error is being reported. I
 change the PHP installation to 4.04, but I still have the same problem. I
 can't do session handling or anything without cookies.
 HELP PLEASE. Any clues will be greatly appreciated.
 Thanks in advance,
 Cheers,
 Diego.
 
 



-- 
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]




[PHP] Problems with mail() function

2001-05-23 Thread Kevin Fogleman

The problems that I'm having with the mail function stem from the extra
arguments that I'm trying to pass it.  What I'm trying to do is write a
script to mail links to interesting stories to other people.  In doing this,
I want to make the mail appear that it came from the e-mail address of the
person who wanted to send the link.  So, what I've tried so far is this:

$message_subject=This message is a test;
$extraparams=From:
.$HTTP_POST_VARS['youraddress'].\nReply-To:.$HTTP_POST_VARS['youraddress'
].\nX-Mailer: PHP/. phpversion();

$message=$message_header.$HTTP_POST_VARS['message'].$message_footer;
$success=mail($HTTP_POST_VARS['email'], $message_subject, $message,
$extra_params)
   or die(Whoops, looks like mail() isn't configured in
this installation of PHP!);

The message that I recieve when I run this script has a From: field
reading as the user that the script is running under on the web server, and
I recieve a blank message body, as well as no subject.

I decided to try using the mail() function with just the first three
arguments (i.e. the destination address, the subject, and the message body),
and it kind of worked, meaning that it sent me a message with the correct
subject filled out, and the correct message body, but it was still coming
from the same address, the name of the web server user.  Can someone help me
with placing the correct args in the 4th parameter to get mail() or Sendmail
or whatever to send a message with the correct return address and From:
field?

Thank you,

Kevin Fogleman



-- 
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]




Re: [PHP] Using html templates

2001-05-23 Thread Tolga \thorr\ Orhon

I am using libphp and quite satisfied with it.
http://phplib.netuse.de/

--
Tolga 'thorr' Orhon

Jamie Thompson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 what is the best way of using html templates to display data from a
database?

 --
 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]




-- 
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]




Re: [PHP] How to select rows from Mysql with case senstive ??

2001-05-23 Thread James Holloway

*Shrug*

Don't have time to test at the moment... That was taken from Chapter 9.3.4.7
of the MySQL manual

http://www.mysql.com/doc/P/a/Pattern_matching.html

Prior to MySQL Version 3.23.4, REGEXP is case sensitive, and the previous
query will return no rows. To match either lowercase or uppercase `b', use
this query instead:

mysql SELECT * FROM pet WHERE name REGEXP ^[bB];

Was worth a try :)

James.

Martín Marqués [EMAIL PROTECTED] wrote in message
01052312020905.03109@bugs">news:01052312020905.03109@bugs...
 On Mié 23 May 2001 17:56, you wrote:
  Hey try this, though there are probably better ways,
 
  SELECT * FROM foo WHERE name REGEXP '^[PHP]';

 This is not SQL compatible. This would be a correct SQL statement:

 SELECT * FROM foo WHERE name LIKE [PHP]%

 Saludos... :-)

 --
 Cualquiera administra un NT.
 Ese es el problema, que cualquiera administre.
 -
 Martin Marques  |[EMAIL PROTECTED]
 Programador, Administrador  |   Centro de Telematica
Universidad Nacional
 del Litoral
 -

 --
 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]




-- 
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]




RE: [PHP] sessions without trans_id

2001-05-23 Thread Johnson, Kirk

If the server has trans-sid enabled, you can disable it for your application
using an .htaccess file, as given below.

 -Original Message-
 From: Dalyyla [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 23, 2001 2:14 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] sessions without trans_id
 
 
 hi,
 
  You could use an .htaccess file to disable the 
 session.use_trans_sid flag in
  the php.ini file, like this:
 
  php_flag session.use_trans_sid off
 
  Kirk
 
 
 *** what I meant if i publish it on another server and which 
 is used by lots of
 clients
 I suppose that some of them made their application with 
 trans-id and other
 without
 so I would have to choose the good server the one where 
 trans-id is not enabled
 ...??? SO that's why I was asking I would like to build an 
 application that
 could work everywhere...
 By the way is there a way to hide the SID , when it is not 
 done by the method
 POST, for example in header(location:...) or manually bu the 
 calling of the
 page??
 
 Thanks
 
 Dalyyla

-- 
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]




[PHP] outputting lines from file(file.php)

2001-05-23 Thread Dennis Gearon

I have read in the lines from a php file into a $buff.

Each line is set and the total corresponds to the number of lines in the
file.

But trying to ouput the lines results in blank lines.

do I have to pass the lines through something like chop(), or
html_spec_chars?

How do you guys display php files to the screen in the HTML stream?

-- 
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]




[PHP] writing to file quick and easy.

2001-05-23 Thread Christopher Allen

Hello:

Lookin for a little advice here.

I have a series of scripts that dynamically create web pages. The last page
in the series I wish to be able to write out to a file.
Is there a simple/quick way in which I can take the process(ing) script and
write it to a file at the same time that it is displaying?
I need it to both display and be able to be downloaded such that the last
thing that this script would do is create a link to itself in html format.
Something to the effect that whatever was being passed to the browser could
also be passed thru an open file handle thus written to a file


Thanks,
Christopher C. M. Allen


-- 
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]




Re: [PHP] outputting lines from file(file.php)

2001-05-23 Thread George E. Papadakis

hm..
Is include () or require () what you are talking about or I am wrong?

-- GP


 I have read in the lines from a php file into a $buff.
 
 Each line is set and the total corresponds to the number of lines in the
 file.
 
 But trying to ouput the lines results in blank lines.
 
 do I have to pass the lines through something like chop(), or
 html_spec_chars?
 
 How do you guys display php files to the screen in the HTML stream?
 
 -- 
 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]
 


-- 
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]




Re: [PHP] Problems with mail() function

2001-05-23 Thread Tolga \thorr\ Orhon

I had smilar problems before and found out that I missed some \ns. It
seems that you missed a \n at the end of headers. That might be a reason.
Another solution might be replacing \ns with \r\n. I heard in newsgroups
and in some documentations that this might be problem in some systems.

I recommend to read the source of message after you get it. It is a nce way
to debug problems and gives out lots of information. (correct headres,
messages etc..)

Yours,

--
Tolga 'thorr' Orhon

Kevin Fogleman [EMAIL PROTECTED] wrote in message
9egjrq$r15$[EMAIL PROTECTED]">news:9egjrq$r15$[EMAIL PROTECTED]...
 The problems that I'm having with the mail function stem from the extra
 arguments that I'm trying to pass it.  What I'm trying to do is write a
 script to mail links to interesting stories to other people.  In doing
this,
 I want to make the mail appear that it came from the e-mail address of the
 person who wanted to send the link.  So, what I've tried so far is this:

 $message_subject=This message is a test;
 $extraparams=From:

.$HTTP_POST_VARS['youraddress'].\nReply-To:.$HTTP_POST_VARS['youraddress'
 ].\nX-Mailer: PHP/. phpversion();

 $message=$message_header.$HTTP_POST_VARS['message'].$message_footer;
 $success=mail($HTTP_POST_VARS['email'], $message_subject, $message,
 $extra_params)
or die(Whoops, looks like mail() isn't configured
in
 this installation of PHP!);

 The message that I recieve when I run this script has a From: field
 reading as the user that the script is running under on the web server,
and
 I recieve a blank message body, as well as no subject.

 I decided to try using the mail() function with just the first three
 arguments (i.e. the destination address, the subject, and the message
body),
 and it kind of worked, meaning that it sent me a message with the correct
 subject filled out, and the correct message body, but it was still coming
 from the same address, the name of the web server user.  Can someone help
me
 with placing the correct args in the 4th parameter to get mail() or
Sendmail
 or whatever to send a message with the correct return address and From:
 field?

 Thank you,

 Kevin Fogleman



 --
 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]




-- 
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]




[PHP] Virtual Host document directory.

2001-05-23 Thread Richard Quadling

Hi.

I am using Sambar Server on Win98SE, PHP 4.0.5. All is well.

The server supports virtual hosts. I am not sure of the terminology
outside of Sambar, but effectively, I can go to my browser and enter ...

local.site1.com
local.site2.com
etc.

And get different sites.

I have a set of PHP scripts which are copied to each of the sites
public_html directory.

They are all on the same IP address (as I only have 1 pc).

The server's documents are served out via localhost.

I want to know the document (or public_html) directory of the site that
called the PHP script.

The reason is that the script needs to see if certain files exist so that
the resultant HTML shows the correct info. Some of them are in both sites,
some files are only in 1 or 2 sites, but they always have the same name.

I assume there is a variable somewhere?

Ideas/suggestions please.

Thanks in advance.

Richard Quadling.



-- 
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]




[PHP] Virtual Hosts document root directory.

2001-05-23 Thread Richard Quadling

Hi.

I am using Sambar Server on Win98SE, PHP 4.0.5. All is well.

The server supports virtual hosts. I am not sure of the terminology
outside of Sambar, but effectively, I can go to my browser and enter ...

local.site1.com
local.site2.com
etc.

And get different sites.

I have a set of PHP scripts which are copied to each of the sites
public_html directory.

They are all on the same IP address (as I only have 1 pc).

The server's documents are served out via localhost.

I want to know the document (or public_html) directory of the site that
called the PHP script.

The reason is that the script needs to see if certain files exist so that
the resultant HTML shows the correct info. Some of them are in both sites,
some files are only in 1 or 2 sites, but they always have the same name.

I assume there is a variable somewhere?

Ideas/suggestions please.

Thanks in advance.

Richard Quadling.






-- 
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]




Re: [PHP] Web Server processing question

2001-05-23 Thread RockMonkey

Ok. A simplified version of the subroutines (still with the same problem
though):

function SimpleList($Data,$MaxStats = 10,$Heading = nbsp;) {
   if (is_array($Data)) {
   $Output = ;
   $Output .= SimpleItem($Heading,,2);
   foreach ($Data as $Player = $Qty) {
  $Output .= SimpleItem($Player,$Qty);
   }
   print $Output;
   }
}

function SimpleItem($Left,$Right = nbsp;,$Colspan = ) {
   if (!empty($Colspan)) {
  return(tr valign='top'td class='smaller'
colspan='2'$Left/td/tr\n);
   }
   return(tr valign='top'td class='smaller'$Left/tdtd align='right'
class='smaller'b$Right/b/td/tr\n);
}

That's all it does. During the tests, the array of data only contained 10
elements, and still some of the calls to this function took 10 seconds










Christian Reiniger [EMAIL PROTECTED] wrote in message
01052316515004.00599@chrisbig">news:01052316515004.00599@chrisbig...

 In the following example, which is the one that I'm concerned about,
 the same function is called multiple times in a row (with nothing
 happening in between calls) for different categories. Basically, the
 function sorts an array and outputs the 10 elements with the highest
 value.

 I ran the test several times, calling the function hundreds of times
 with the same data, and each time I ran the test every second call took
 thousands of times longer than the ones that ran ok.

Well, as it really alternates between fast and slow, there has to be some
real reason for it. Can you post some code?

--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

/* you are not expected to understand this */

- from the UNIX V6 kernel source

--
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]




-- 
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]




Re: [PHP] PHP XML Parsing

2001-05-23 Thread Peter Dudley

 Interesting..  So to be consistent with proper XML formatting,
 should the server hosting the XML file convert the  into
 amp; ?

It depends on the situation, I believe.  The server that sends you XML
should indeed provide you well-formed XML, which it's not doing.  Probably
what should happen is that the server sending the XML should urlencode URLs
in the cdata elements, and then after you parse the XML file you should
urldecode the URLs.  I would be surprised if this hasn't been done as some
standard part of XML parsing and I've just missed it in my limited use of
XML parsers.

 I certainly feel like I'm missing something...  Although I'm a bit at
 odds as to how to troubleshoot this new file.
 I no longer get the errors, but I'm not getting the results I'm looking
for either.


I'm not sure what results you're looking for exactly, but if you put in a
bunch of echo statements at various points throughout your parsing routines,
you will see that none of the if x = y conditions are matching.  Here's
what I'd recommend:

1.  put in a bunch of echo statements to print out your variables at
different points in your parsing, just to make sure it's doing what you
expect it to.  Do a full audit of your characterData routine through this
method, and I think it will show you where the errors are.  (I did not see
the exact error right away so I gave up since I do have a day job.  :-)

2.  keep your first eregi_replace statement, then when you're printing out
the links, re-convert it with a reverse eregi_replace to turn the amp; back
into a simple .  This will send it to the HTML browser in the format you
want, I hope.

I hope this is of some help.

Pete.



-- 
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]




Re: [PHP] outputting lines from file(file.php)

2001-05-23 Thread Dennis Gearon

No, I am trying to make an online configuration/editor program. It reads
in an XML formatted PHP file and ouputs the configuration of a state
machine via a page on the web. With some simple mouse clicks, one will
be able to program the desired behavior of the program.

The XML formatting is transparent to the php program, like so:

doc
  //SO_editor_state
  $SO_editor_state=done;
  ///SO_editor_state
  //state_object
  //class_declare
  class SObj{ 
  ///class_declare
//SO_state
$state;
///SO_state
//SO_events
$events;
///SO_events
//SO_response_code
//put code here
///SO_response_code
  //class_close
  }
  ///class_close
  ///state_object
///doc

All that would be necessary to import this into a DOM tree would be to
replace
all '//' with ''.

I needed some kind of tags for the configuration/editor to find the
parts it needed to massage/edit, and instead of reinventing the wheel, I
just use XML tags commented out.

As a temporary, intermediate step, (a.k.a. incremental programming), I
am just trying to output the 'session.inc' file in the phplib to the
screen. It no workee! Any help would be appreciated. The file opens and
reads fine, just doesn't output.

George E. Papadakis wrote:
 
 hm..
 Is include () or require () what you are talking about or I am wrong?
 
 -- GP
 
  I have read in the lines from a php file into a $buff.
 
  Each line is set and the total corresponds to the number of lines in the
  file.
 
  But trying to ouput the lines results in blank lines.
 
  do I have to pass the lines through something like chop(), or
  html_spec_chars?
 
  How do you guys display php files to the screen in the HTML stream?
 
  --
  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]
 

-- 
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]




Re: [PHP] writing to file quick and easy.

2001-05-23 Thread Chris Lee

sure this is not complicated, this is easy :)

?php

 $filename = '/dl/filename.txt';

 echo 
 put some font size='+2'HTML/font in here, anything you put here, will
goto the file too.br
 a href='$filename'Download/a
 ;

 $file = fopen($DOCUMENT_ROOT$filename, 'w+');
 fwrite($file, ob_get_contents());

?

is this what you mean ? please get back to me.

--

  Chris Lee
  [EMAIL PROTECTED]



Christopher Allen [EMAIL PROTECTED] wrote in message
004701c0e3a0$5c17a5a0$[EMAIL PROTECTED]">news:004701c0e3a0$5c17a5a0$[EMAIL PROTECTED]...
 Hello:

 Lookin for a little advice here.

 I have a series of scripts that dynamically create web pages. The last
page
 in the series I wish to be able to write out to a file.
 Is there a simple/quick way in which I can take the process(ing) script
and
 write it to a file at the same time that it is displaying?
 I need it to both display and be able to be downloaded such that the last
 thing that this script would do is create a link to itself in html format.
 Something to the effect that whatever was being passed to the browser
could
 also be passed thru an open file handle thus written to a file


 Thanks,
 Christopher C. M. Allen


 --
 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]




-- 
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]




[PHP] ereg questions

2001-05-23 Thread Ker Ruben Ramos

How do i change all 'a href=anything/here.html' to 'a 
href=file.php?file=anythinghere.php' 
any help out there?



Re: [PHP] Web Server processing question

2001-05-23 Thread RockMonkey

Firstly, I narrowed it down to the following code:

$Output = SimpleItem($Heading,,true);
foreach ($TopList as $Player = $Qty) {
nbsp; nbsp; $Output .= SimpleItem(WebLink(nbsp;
$Player,csstats.php?id= . $PlayerStats[DETAILS][ID][$Player],bar'
style='CURSOR:crosshair;),$Qty);
}
print $Output;

This loop scored a maximum process time of almost 28 seconds!
However, most of the bad calls were from 2 to 10 seconds, with the good
ones once again clocking at around 0.001 or less.
bNote that during the tests, the array within the foreach loop always
contains 10 elements./b
 Two other functions are called here: SimpleItem, and WebLink. Both of these
test out ok, with maximum test times of 0.019 and 0.0077 respectively, so
that should rule them out.  I've included the code for those two functions
at the end. 10 iterations gives a maximum TOTAL process time for SimpleItem
at 0.19 seconds, and 0.077 for Weblink. That's still way short of the 28
seconds for the entire chunk.

Next step was to take out the print statement, and you know what? The run
time for the loop dropped to a maximum of 0.1 sec.

That narrowed it down to print $Output;
I then proceded to check the length of $Output and it's run time, and got
the learned that the string is 2112 characters long, and sometimes takes a
fraction of a second to print, while other times takes several seconds.

Even if I print the SimpleItems separately rather than appending to a
variable (the way it was set up originally) the problem remains.

So, why should this print statement take so long?

RockMonkey


RockMonkey [EMAIL PROTECTED] wrote in message
9egn90$alj$[EMAIL PROTECTED]">news:9egn90$alj$[EMAIL PROTECTED]...
 Ok. A simplified version of the subroutines (still with the same problem
 though):

 function SimpleList($Data,$MaxStats = 10,$Heading = nbsp;) {
if (is_array($Data)) {
$Output = ;
$Output .= SimpleItem($Heading,,2);
foreach ($Data as $Player = $Qty) {
   $Output .= SimpleItem($Player,$Qty);
}
print $Output;
}
 }

 function SimpleItem($Left,$Right = nbsp;,$Colspan = ) {
if (!empty($Colspan)) {
   return(tr valign='top'td class='smaller'
 colspan='2'$Left/td/tr\n);
}
return(tr valign='top'td class='smaller'$Left/tdtd
align='right'
 class='smaller'b$Right/b/td/tr\n);
 }

 That's all it does. During the tests, the array of data only contained 10
 elements, and still some of the calls to this function took 10 seconds










 Christian Reiniger [EMAIL PROTECTED] wrote in message
 01052316515004.00599@chrisbig">news:01052316515004.00599@chrisbig...

  In the following example, which is the one that I'm concerned about,
  the same function is called multiple times in a row (with nothing
  happening in between calls) for different categories. Basically, the
  function sorts an array and outputs the 10 elements with the highest
  value.
 
  I ran the test several times, calling the function hundreds of times
  with the same data, and each time I ran the test every second call took
  thousands of times longer than the ones that ran ok.

 Well, as it really alternates between fast and slow, there has to be some
 real reason for it. Can you post some code?

 --
 Christian Reiniger
 LGDC Webmaster (http://sunsite.dk/lgdc/)

 /* you are not expected to understand this */

 - from the UNIX V6 kernel source

 --
 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]




 --
 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]




-- 
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]




[PHP] MSSQL7

2001-05-23 Thread Daniel Guerrier

Is it possible to import one MSSQL7 DB to another if
they were installed using different sort orders?

If yes, how?

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

-- 
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]




Re: [PHP] ereg questions

2001-05-23 Thread Ker Ruben Ramos

hmm, got a little question.
1. what's that \\1 and \\2? got any info on where u got that from?
2. what if it's just href=anything.html ? i mean.. something like it got
lots of subdirectories or not.

Thanks
- Original Message -
From: Mark Maggelet [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 24, 2001 1:19 AM
Subject: Re: [PHP] ereg questions


 On Thu, 24 May 2001 01:01:16 +0800, Ker Ruben Ramos
 ([EMAIL PROTECTED]) wrote:
 How do i change all 'a href=anything/here.html' to 'a
 href=file.php?file=anythinghere.php'
 any help out there?

 I would go:

 $string = ereg_replace(
 a href=\([^/]+)/(.*)\\.html\,
 a href=\file.php?file=\\1\\2.php\,
 $string);

 - Mark





-- 
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]




Re: [PHP] OT PHP Manuals

2001-05-23 Thread Yasuo Ohgaki

All forms of PHP Manuals are created from XML source.
DocBook and DSSSL is used for that.
(It is described at the beginning of the manual.)

You can get XML source from CVS, if you want.

Joseph Blythe wrote:

 Hey all,
 
 Just was wondering if anyone knew what was used to make the php manuals 
 in the windows help format (.chm), I really like them :-)
 
 Regards,
 
 Joseph.


-- 
Yasuo Ohgaki


-- 
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]




[PHP] Re: Can you help me with this: Bug #11055: segmentation fault core dump during make

2001-05-23 Thread Markus Fischer

Sorry no, never touch sybase yet.

- Markus

On Wed, May 23, 2001 at 04:58:53PM +0200, [EMAIL PROTECTED] wrote : 
   From: [EMAIL PROTECTED]
   Operating system: linux 2.2.14 (RH 6.2)
   PHP version:  4.0.5
   PHP Bug Type: Sybase-ct (ctlib) related
   Bug description:  segmentation fauld  core dump during make
  
   downloaded free sybase-ct libs from link in faq from php site.
   unpacked in /sybase-ct
   fixed /etc/ld.so.conf  ran ldconfig
  
   then tried to compile php with sybase-ct support (in order to access
  MSSQL server) as a DSO module:
  
   [root@linux php-4.0.5]# ./configure --with-mysql --with-apxs
  --enable-sockets --with-oracle=/mnt/ora_syb/ora/app/oracle/product/8.0.5
  --with-sybase-ct=/sybase-ct
  
   went fine then ran:
   [root@linux php-4.0.5]# make
  
   got the following error:
  
   make[1]: Entering directory `/mnt/ora_syb/php-4.0.5'
   /bin/sh /mnt/ora_syb/php-4.0.5/libtool --silent --mode=link gcc  -I.
  -I/mnt/ora_syb/php-4.0.5/ -I/mnt/ora_syb/php-4.0.5/main
  -I/mnt/ora_syb/php-4.0.5 -I/usr/include/apache
  -I/mnt/ora_syb/php-4.0.5/Zend
  -I/mnt/ora_syb/php-4.0.5/ext/mysql/libmysql
  -I/mnt/ora_syb/ora/app/oracle/product/8.0.5/rdbms/demo
  -I/mnt/ora_syb/ora/app/oracle/product/8.0.5/network/public
  -I/mnt/ora_syb/ora/app/oracle/product/8.0.5/plsql/public
  -I/sybase-ct/include -I/mnt/ora_syb/php-4.0.5/ext/xml/expat/xmltok
  -I/mnt/ora_syb/php-4.0.5/ext/xml/expat/xmlparse
  -I/mnt/ora_syb/php-4.0.5/TSRM  -DLINUX=2 -DEAPI -DUSE_EXPAT
  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2   -o libphp4.la -rpath
  /mnt/ora_syb/php-4.0.5/libs -avoid-version
  -L/mnt/ora_syb/ora/app/oracle/product/8.0.5/lib -L/sybase-ct/lib  -R
  /mnt/ora_syb/ora/app/oracle/product/8.0.5/lib -R /sybase-ct/lib stub.lo 
  Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la
  ext/mysql/libmysql.la ext/oracle/liboracle.la ext/pcre/libpcre.la
   ext/posix/libposix.la ext/session/libsession.la
  ext/sockets/libsockets.la ext/standard/libstandard.la
  ext/sybase_ct/libsybase_ct.la ext/xml/libxml.la TSRM/libtsrm.la -lpam
  -ldl -linsck -lsybtcl -lintl -lcomn -lct -lcs -lclntsh -lpsa -lcore4
  -lnlsrtl3 -lm -lnsl -lresolv -lm -ldl -lcrypt -lnsl -lresolv
   collect2: ld terminated with signal 11 [Segmentation fault], core
  dumped
   /sybase-ct/lib/libct.a(ctconpr.o)(.text+0x5ac): undefined reference to
  `comn_loc_copy'
   make[1]: *** [libphp4.la] Error 1
   make[1]: Leaving directory `/mnt/ora_syb/php-4.0.5'
   make: *** [all-recursive] Error 1
   N.B.
   previous run witout sybase-ct support went fine!
 
 
 
 
  dont know if it will help but, try php 4.0.6rc1 from 
  http://www.php.net/~andi/php-4.0.6RC1.tar.gz  or try a 4.0.7-dev
  snapshot from http://snaps.php.net/php4-latest.tar.gz
  Cameron
 
 Since the error comes from :
 /sybase-ct/lib/libct.a(ctconpr.o)(.text+0x5ac): undefined reference to 
 `comn_loc_copy'
 
 I feel that this will not solve the problem ... as in effect it did not.
 I see that some people solved similar problems by doungrading to version 
 4.0.3 ... could this be a solution for my problem ?
 where can I get these old sources (on php site oldest version avalible is 
 4.0.4) ?
 Can any body suggest any other solution ?
 
 By dave
 
 
 -
 Questo messaggio ? stato inviato utilizzando http://it.my.gsmbox.com 

-- 
Markus Fischer,  http://josefine.ben.tuwien.ac.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0

-- 
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]




Re: [PHP] CVS problem

2001-05-23 Thread Yasuo Ohgaki

Nicholas wrote:

   whenever i try to run this cvs command i get this
 cvs -d 
:pserver:[EMAIL PROTECTED]:/cvsroot/best-board/devel init
 Protocol error: Root request missing
 wtf am i doing wrong what do i do .. thanks (note this is FOR a php
 program..)

Why do you use init command?
Unless you are CVS admin, you don't need the command.
(Besides, CVS must be initialized before setting up pserver anyway)

For more info, refer to

http://www.cvshome.org/

-- 
Yasuo Ohgaki


-- 
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]




[PHP] setting session.gc_probability

2001-05-23 Thread Johnson, Kirk

OK, we're having an argument in our shop. This is what the manual says about
garbage collection:

session.gc_probability specifies the probability that the gc (garbage
collection) routine is started on each request in percent. Defaults to 1.

Somebody here says that a value of 1 means 100%, i.e., that this value is
really a proportion and not a percent; a value of 1 means garbage
collection is launched on every page request.

I say that a value of 1 means garbage collection is launched on 1 out of
every 100 page requests, i.e., it truly is a percent.

Can anybody confirm the correct interpretation?

TIA

Kirk 


-- 
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]




Re: [PHP] session_unset() and session_destroy()

2001-05-23 Thread Yasuo Ohgaki

Arcady Genkin wrote:

 I don't think that I grasp the difference between session_unset() and
 session_destroy() functions.  Would anyone explain?

session_unset() frees session vars from memory.
session_destroy() delete session from session storage.

If you do session_unset(), it will results session with no session data.
If you do session_destroy(), it will results session with currently 
registered data. (Unless you do session_unset()).

 
 Also, suppose that I want to totally wipe out an existing session, and
 then start a new one.  Can I still do session_register() after I do
 session_unset() or session_destroy() or both?

I guess you can, but the session will have the session id. You must set 
new session id with session_id().

If you want to start new session, simplest way is to set new session id, 
since session data will be garbage collected eventually.

If you care about session hijacking, call session_destroy() then call 
session_id().

Regards,
-- 
Yasuo Ohgaki


-- 
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]




RE: [PHP] advice on 'Nusphere Mysql Package' appreciated

2001-05-23 Thread scott [gts]

Linux Mandrake (8.0) is extremely easy to install,
(it's a complete linux distrib, based off of RedHat,
so you can install it onto a clean machine)

the install is *very* interactive and it comes fully
loaded with almost everything you could want, 
and is free

get the ISO's at :

http://linux-mandrake.com/



-- 
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]




RE: [PHP] php 4.0/win 2000/sql server

2001-05-23 Thread scott [gts]

what else is running on the Win2k machine?
what kind of HTTP server?

if you're running IIS/MS-SQL server, i'd hazard a 
guess that it's probably *those* programs that are
slowing the computer down.

i use Win2000/PHP/MySQL for local development
(after which i upload the scripts to a linux machine)
and i've never once seen that problem on either
machines...


 -Original Message-
 From: PHPFAN [mailto:[EMAIL PROTECTED]]
 Subject: [PHP] php 4.0/win 2000/sql server
 
 When ever I am trying to access a php file with an error,my system is
 overwelmingly slowing down and restarting is the only solution.
 Previously I worked on linux/apache/php 4.0/mysql ,I never had such
 problem.I used to get some errors and I used to correct them but working in
 this environment is almost impossible as I am restarting my system 95% of
 time.
 
 Any ideas what might be the problem and got any tips?
 
 Thanks in advance,
 Sagil.

-- 
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]




  1   2   >