[PHP] Site search engine suggestion.

2001-05-12 Thread elias

Hello guys,

I need that badly! I need a suggestion, advise, solution or whatever that
might help!

I need a Site Search script for a page that mostly have .PHP files some are
dynamic and some are not.
Basically i was using WebGlimpse but whenever I search using it, It shows
the source code of the PHP files!
So for example if i search echo , WebGlimpse displays the .PHP file source
code!

Any suggestion for a better site search program?

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




RE: [PHP] Site search engine suggestion.

2001-05-12 Thread Ryan W. Zajicek

I use mnoGoSearch http://search.mnogo.ru/ it works great for me and I've
been using it for about a year.

Thank You

Ryan
mailto:[EMAIL PROTECTED]


-Original Message-
From: elias [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 12, 2001 12:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Site search engine suggestion.


Hello guys,

I need that badly! I need a suggestion, advise, solution or whatever that
might help!

I need a Site Search script for a page that mostly have .PHP files some are
dynamic and some are not.
Basically i was using WebGlimpse but whenever I search using it, It shows
the source code of the PHP files!
So for example if i search echo , WebGlimpse displays the .PHP file source
code!

Any suggestion for a better site search program?

-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 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] Repeat : I'm Living in cookie hell....

2001-05-12 Thread barce

Hello Scott,

I took a look at your code, and have a solution for you.

Here's the code:

while ($row = mysql_fetch_array($result) )
{
if ($row[memberid] == $login_id)
{
// your code here :-)
}
}

 
$row = mysql_fetch_array($result); // Get one row of data only *BAD*
if ($row[memberid] == $login_id) {
   // [...]
}
 
 the path of the cookie to be the root under both instances, it should be
 trying to set the same cookie, right?

correct, but this only works if the first array returned is equal to the
login_id. since you are returning only the first row of your database
table, you never make it to the memberid that you're hoping is there --
assumming that it is there.

Train harder!

regards,barce

-- 
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] Simulate the Enter key in Unix with PHP

2001-05-12 Thread barce

hello,


YoBro wrote:
 
 Have you got an example of how to use the -b switch.
 I am not up with lingo when it comes to unix.
 

?php

/* try this */

if ($pressed)
{

$result = passthru(htpasswd -b mypasswordlist $user $pass);

echo $resultbr\n;
}
else
{
?

form method=POST action=? echo $PHP_SELF; ?
user: nbsp;nbsp; input type=text name=userbr
pass: nbsp;nbsp; input type=password name=userbr
input type=submit name=pressed value=' GO '
/form


?

}

?

-- 
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 Digest 12 May 2001 07:54:28 -0000 Issue 681

2001-05-12 Thread php-general-digest-help


php-general Digest 12 May 2001 07:54:28 - Issue 681

Topics (messages 52513 through 52549):

Encode/Decode Problem
52513 by: Augusto Cesar Castoldi
52518 by: Sean Cazzell

OT SQL SERVER
52514 by: Brandon Orther

Only have one session per user?
52515 by: Christian Marschalek

PATH_INFO at document root
52516 by: Simon Kimber

Re: Sending attachments via mail()
52517 by: Sean Cazzell

protecting video files
52519 by: Tim Schulte
52520 by: Michael Kimsal
52521 by: Tim Schulte
52523 by: Mark Maggelet
52528 by: Sean Cazzell

Re: mysql: UPDATE statment
52522 by: Christian Dechery

verify phone number
52524 by: Claudia Smith
52526 by: Johnson, Kirk
52530 by: Sean Cazzell

Multiple ASP 2 PHP conversion
52525 by: Brandon Orther

Hidden Input and Quotes?
52527 by: Jason Caldwell
52529 by: Sean Cazzell
52531 by: Young Chi-Yeung Fan
52533 by: Jason Caldwell
52534 by: Young Chi-Yeung Fan

Re: Please help me with this.
52532 by: Young Chi-Yeung Fan

grep all pages
52535 by: Yamin Prabudy
52539 by: Young Chi-Yeung Fan

PHP and Unix Shell
52536 by: YoBro
52537 by: Jack Dempsey
52538 by: YoBro

Repeat : I'm Living in cookie hell
52540 by: Scott Brown
52548 by: barce

HallMark uses PHP
52541 by: bzero.nullpointer.com

Simulate the Enter key in Unix with PHP
52542 by: YoBro
52543 by: Jason Brooke
52544 by: YoBro
52549 by: barce

Re: Newbie redirect/variable question
52545 by: Steve Wade

Site search engine suggestion.
52546 by: elias
52547 by: Ryan W. Zajicek

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



I'm using encode/decode with PHP to crypt my database.

Until now was OK, but I one string, and the MySQL return the string this
(without the []...):

[Oõ#M¼ô«~àý~Ôbëÿ9S Z ]

The fact is I can't insert this encode string into MySQL table! My select:

select decode(Oõ#M¼ô«~àý~Ôbëÿ9S Z , lPi1QzB5%!.dC;@);

I have a  in the middle of the encoded string. How can I solve this
problem?

regards,

Augusto Cesar Castoldi








 I have a  in the middle of the encoded string. How can I solve this
 problem?

You need to use addslashes().

http://www.zend.com/manual/function.addslashes.php


Regards,

Sean





Hello,

I am woking in PHP an recently got a SQL2000 database that I need to work
with.  What my question is ... is does anyone know how to make a printable
data model so I have something to look at while I program.

Thanks
Brandon





Hi all!

Can I only have one session per user / internet explorer? Or is it 
possible to seperate sessions let's say from script to script?





Hi all,

I want to set up one virtual server with many domains pointing to it which
serves pages depending on the domain name.

Here is how i see it:

1) 3 domains pointing to 1 virtual server, eg. www.foo.com www.bar.com and
www.blah.com

2) If user visits http://www.foo.com/contact.phtml then the PHP script does
this:

?

include ($DOCUMENT_ROOT . / . $SERVER_NAME . $PATH_INFO);

?

So the question is, how do i get one script called no matter what comes
after the root slash, and pass that info to the script?

Cheers

Simon Kimber





 I have some jpgs I'd like to send as attachments with automatically
 generated (via PHP) e-mails.  Does anyone have any suggestions as to how
 I might go about this?

Check this out: http://www.zend.com/codex.php?id=103single=1


Regards,

Sean





Hi there -

I am having some weird problems here. I am try to write a script that
will check to see where a movie file is being called from. I want to define
which web page I will allow a movie to be called from, and block all others.
The script so far looks like this:

The file gets called like this
http://www.hardcorehosting.com/video/playmovie.php?movie=test.mov

  playmovie.php  ===
?php
header(Content-type: video/quicktime);
$file=fopen($movie, r);
fpassthru($file);
?
= end script  ===


which works fine until I add this at the top

if($HTTP_REFERER != http://www.hardcorehosting.com/video/test.html;)
{
exit();
}

to check and see where the page is being called from. It then gives me a
broken image. I've checked for space's and can't see what I'm doing wrong
:( Any suggestions ?? Thanks.




Tim Schulte
[EMAIL PROTECTED]










Check for extraneous spaces in your script.

Tim Schulte wrote:

 Hi there -

 I am having some weird problems here. I am try to write a script that
 will check to see where a movie file is being called from. I want to define
 which web page I will 

Re: [PHP] Simulate the Enter key in Unix with PHP

2001-05-12 Thread barce

ERRATA to the PREVIOUS E-MAIL:

the following line:
 pass: nbsp;nbsp; input type=password name=userbr

should read:

pass: nbsp;nbsp; input type=password name=passbr

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

2001-05-12 Thread Theo Richel

I try to upload a .sql file with PHPMyAdmin. Below 1 mb: no problem, above
1mb: impossible. We have increased the max_upload_file_size in PHP.ini but
it still doesnt work. What other parameters in the php.ini influence this?

Thanks very much
Theo Richel



[PHP] mysql - SUBSTRING

2001-05-12 Thread andreas \(@work\)

hi,

if i use SUBSTRING(field,pos,len) in a SELECT statement it works fine

but i cant work it out how to use this function in the WHERE clause 

 ... WHERE  SUBSTRING(field,pos,len) LIKE ABC
 ... WHERE SUBSTRING(field,pos,len) = 'ABC'
 ... WHERE SUBSTRING(field,pos,len) LIKE 'ABC'

none of them work

is this not possible or whats wrong ?


thank you

andreas




Re: [PHP] mysql - SUBSTRING

2001-05-12 Thread CC Zona

In article 000c01c0dabb$422d2bd0$0101@devel01,
 [EMAIL PROTECTED] (andreas \(@work\)) wrote:

 but i cant work it out how to use this function in the WHERE clause 
 
  ... WHERE  SUBSTRING(field,pos,len) LIKE ABC
  ... WHERE SUBSTRING(field,pos,len) = 'ABC'
  ... WHERE SUBSTRING(field,pos,len) LIKE 'ABC'
 
 none of them work

Hard to say what's wrong without actual an actual query to look at, nor 
info on what error (if any) MySQL is reporting.  Though perhaps as a point 
of reference, do note that use of the like keyword should usually be 
accompanied by a wildcard character, usually the %:

like ABC%
like %ABC
like %ABC%
etc.

IOW, LIKE without wildcards is the same as using the = comparison 
operator.

-- 
CC

-- 
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] Test, please delete

2001-05-12 Thread ws






Re: [PHP] Multiple ASP 2 PHP conversion

2001-05-12 Thread Christian Reiniger

On Saturday 12 May 2001 00:51, Brandon Orther wrote:
 Hello,

 I found asp2php to be a great tool.  Does anyone know of a way to make
 it convert a whole directory or more than one file at a time?

I don't know asp2php, but a simple

cd src
for i in `find -name '*.php'` ; do
  asp2php $i ../dest/$i
done

should do it in any decent environment (i.e. any Unix flavor :)

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

Install once, run forever. Linux.

--
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] Hidden Input and Quotes?

2001-05-12 Thread Christian Reiniger

On Saturday 12 May 2001 04:20, Young Chi-Yeung Fan wrote:

 If you have input type=hidden name=data value=The word
 quot;herequot; is in quotes. /, then when you submit your form,
 $HTTP_POST_VARS[data] or $HTTP_GET_VARS[data] will be:

 The word \here\ is in quotes.

 So you can put the value straight into MySQL. The slashes will not show
 up in MySQL. The browser converted the quot; into , and PHP for some
 reason (I still don't know why) adds slashes before your ' and 

The reason is that in your php.ini there is an entry
magic_quotes_gpc = on

set this to 'off' and the slashes are gone.

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

Install once, run forever. Linux.

--
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] grep all pages

2001-05-12 Thread ,,,

Dear Sir
I have received your email at the innovative-pk.com I want to know that to which user 
this email is destined
cc at [EMAIL PROTECTED]

Thanks  Regars
Asim Ansari



On Saturday, May 12, 2001 at 12:37:26 AM, Young Chi-Yeung Fan wrote:

 Yamin Prabudy wrote:
 
  Hi there
  I like to know can i grep a page say on http://www.somedomain.com
  (just the index.html)
  if it's possible can any guru out there enlight me how to do that
 
 I haven't done what you're trying myself, but the info on these two pages
 might be helpful:
 
 http://www.php.net/manual/en/features.remote-files.php
 http://www.php.net/manual/en/function.preg-grep.php
 
 
 -- 
 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]
 
 
 

,,,
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] COM in PHP

2001-05-12 Thread ws

Hi,

here my problem with COM in PHP.


?
echo J-Server in der dynamischen PHP-Web-Site. brbr;

$jServer = new COM(jexeserver) or DIE (Connect zum J Server ist nicht
möglich);
$jServer-Show(1);
$jServer-Log(1);

$jServer-Do(0!:0 (1!:40''),'system\extras\config\profile.ijs');
$jServer-Do(load'd:\\j_tm1dll\\j\\tm1api.ijs');
$jServer-Do(load'd:\\j_tm1dll\\j\\tm1con.ijs');
$jServer-Do(load'd:\\j_tm1dll\\j\\tm1prop.ijs');
$jServer-Do(load'd:\\j_tm1dll\\j\\tm1view.ijs');

$jServer-Do(Tm1On'');
$jServer-Do(Tm1AdmSet'OLAPLINE01');
$jServer-Do(SrvCon'zeiterf';'Admin';'');

#$jServer-Do(NN=:'XXX');

$Var = xxx;
$jServer-SetB(NN, $Var);  //  In the COM server: NN = $Var
$jServer-Do(NN);  //  Display NN in the COM server
$jServer-Do(NN=:'yyy'); //  In the COM server: NN = yyy

$jServer-GetB(NN, $Var);//  ===   There is my problem:  ( is a 
refernce)
   //  In the COM server $Var = NN
echo $Var;   //  echo $Var Output: xxx and not yyy ?!?

$jServer-Quit();

?

Is there a bug in my code or is this a bug in COM ???

Wolf Schoemann
[EMAIL PROTECTED]




RE: [PHP] gdImageCreateFromJpeg in -lgd... no

2001-05-12 Thread Don Read


On 11-May-01 Markus Held wrote:
 Can do what i want. I need gif and jpeg
 
 habe installed jpeg-6b , gd-1.8.4gif.tar.gz
 

No, GIF support was removed in v1.6 or so
http://www.boutell.com/gd/

snip

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] Site search engine suggestion.

2001-05-12 Thread B. van Ouwerkerk


Any suggestion for a better site search program?

I know quite a few people who really love htdig. Don't know if it's better.

Not sure how good it is handling .php files.

You could give it a try.

THink I remember a search PHP script at php.net.. or was it freshmeat.. not 
sure about name of location.

Bye,


B.


-- 
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.5 - segmentation fault when using OCI8

2001-05-12 Thread Robert Mena

Hi Thies,

Yes, httpd is linked against pthread.
I've compiled 4.0.4pl1 and so far it is working ok. 
This problem (segmentation fault) seems to be
happening quite often (after reading some posts).

ldd /usr/sbin/httpd
libm.so.6 = /lib/libm.so.6 (0x4001a000)
libcrypt.so.1 = /lib/libcrypt.so.1
(0x40037000)
libdb.so.3 = /lib/libdb.so.3 (0x40065000)
libdl.so.2 = /lib/libdl.so.2 (0x4009f000)
libpthread.so.0 = /lib/libpthread.so.0
(0x400a4000)
libc.so.6 = /lib/libc.so.6 (0x400b7000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2
(0x4000)

- Thanks.
--- Thies C. Arntzen [EMAIL PROTECTED] wrote:
 On Fri, May 11, 2001 at 06:51:35AM -0700, Robert
 Mena wrote:
  Hi, I have a development machine with 4.0.4pl1
 which
  has been used for creating a set of scripts to
 access
  oracle (using stored procedures).
  
  It seems to be working fine (the problems that
 I've
  encountered seems to be related to the
  oracle/procedure itself).
  
  Last night I moved the scripts to the production
  server.  Eveything was working ok until I try to
  access the part the uses the oracle where it hangs
 for
  a while and then gives me a [notice] child pid
 X
  exit signal Segmentation fault (11).
  
  I've compiled using './configure' '--with-apxs'
  '--with-ttf' '--with-xml' '--with-gd' '--with-ftp'
  '--enable-session' '--enable-trans-sid'
 '--with-zlib'
  '--enable-inline-optimization'
  '--with-oci8=/u01/app/oracle/product/8.1.7/'
  --with-mcrypt  --enable-sigchild
 
 is your apache linked against -lpthread?
 
 please read
 http://www.php.net/bugs-dos-and-donts.php and
 submit a bug report (with backtrace).
 
 re,
 tc


__
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] uploading problems

2001-05-12 Thread SED

Hi Theo,

I'm not sure it will help, but can it be because of script execution time?
Increase the time I try again. If it works, please let me know.

Greetz,
SED

-Original Message-
From: Theo Richel [mailto:[EMAIL PROTECTED]]
Sent: 12. maí 2001 08:17
To: [EMAIL PROTECTED]
Subject: [PHP] uploading problems


I try to upload a .sql file with PHPMyAdmin. Below 1 mb: no problem, above
1mb: impossible. We have increased the max_upload_file_size in PHP.ini but
it still doesnt work. What other parameters in the php.ini influence this?

Thanks very much
Theo Richel


-- 
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 site hacked?

2001-05-12 Thread sunny hundal

ok, i just clicked on the uk.php.net/mirrors.php and i got nothing.
so i went to uk.php.net and i get some wierd online.co.uk corporate
site which has no relation to php at all.

am i the only one who gets this feeling someone's replaced the
uk.php.net files??

/sunny 


--- Altunergil, Oktay [EMAIL PROTECTED] wrote:  I hate the
fact that php.net, phpbuilder.com are down very
 frequently and
 mysql.com is slow usually.. 
 
 It's too bad for our image.
 
 Oktay Altunergil
 
 -Original Message-
 From: Philip Olson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 11, 2001 1:26 PM
 To: Don Pro
 Cc: php list
 Subject: Re: [PHP] Documentation
 
 
 
 
   http://uk.php.net/mirrors.php
 
 
 regards,
 philip
 
 On Fri, 11 May 2001, Don Pro wrote:
 
  Does anyone know alternative sites for PHP documentation?
  
  www.php.net seems to be down.
  
  Thankls,
  Don
  
  
  -- 
  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]
 



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

-- 
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] my query results won't clear! :(

2001-05-12 Thread sunny hundal

i'm running a select query on a table, using php of course, and i
have a form right underneath it which has similar names to the
information in selected in the query above.

yet despite using mysql_free_results before my form starts, it still
keeps the last result of the query 1 in memory :(

are there any solutions??

thanks

/sunny


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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

2001-05-12 Thread Jochen Kaechelin

Hello list!

When you create a pdf-document with Adobe Acrobat
you can protect it with a password!
Is there a way to protect it with php's pdf-funtions, too!

I found nothing in the docs!

-- 
phpArbeitsgruppe in Gruendung - Jochen Kaechelin
Stuttgarter Str.3, D-73033 Goeppingen
Tel. 07161-92 95 94, Fax 07161-92 95 98
http://www.php-arbeitsgruppe.de, 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]




Re: [PHP] php site hacked?

2001-05-12 Thread py

You are not the only one, this is strange indeed, I would not believe it is
a hacked tho.
Maybe a technicien mixed up the dns db, or something like that !
Go to: http://uk2.php.net/  wich is fine,
py

- Original Message -
From: sunny hundal [EMAIL PROTECTED]
To: Altunergil, Oktay [EMAIL PROTECTED]; 'Philip Olson'
[EMAIL PROTECTED]; Don Pro [EMAIL PROTECTED]
Cc: php list [EMAIL PROTECTED]
Sent: Saturday, May 12, 2001 2:31 PM
Subject: RE: [PHP] php site hacked?


 ok, i just clicked on the uk.php.net/mirrors.php and i got nothing.
 so i went to uk.php.net and i get some wierd online.co.uk corporate
 site which has no relation to php at all.

 am i the only one who gets this feeling someone's replaced the
 uk.php.net files??

 /sunny


 --- Altunergil, Oktay [EMAIL PROTECTED] wrote:  I hate the
 fact that php.net, phpbuilder.com are down very
  frequently and
  mysql.com is slow usually..
 
  It's too bad for our image.
 
  Oktay Altunergil
 
  -Original Message-
  From: Philip Olson [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 11, 2001 1:26 PM
  To: Don Pro
  Cc: php list
  Subject: Re: [PHP] Documentation
 
 
 
 
http://uk.php.net/mirrors.php
 
 
  regards,
  philip
 
  On Fri, 11 May 2001, Don Pro wrote:
 
   Does anyone know alternative sites for PHP documentation?
  
   www.php.net seems to be down.
  
   Thankls,
   Don
  
  
   --
   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]
 


 
 Do You Yahoo!?
 Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
 or your free @yahoo.ie address at http://mail.yahoo.ie

 --
 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 4.0.5 - segmentation fault when using OCI8

2001-05-12 Thread Thies C. Arntzen

On Sat, May 12, 2001 at 05:36:30AM -0700, Robert Mena wrote:
 Hi Thies,
 
 Yes, httpd is linked against pthread.
 I've compiled 4.0.4pl1 and so far it is working ok. 
 This problem (segmentation fault) seems to be
 happening quite often (after reading some posts).

a backtrace would be useful!
http://www.php.net/bugs-dos-and-donts.php
tc
 
 ldd /usr/sbin/httpd
 libm.so.6 = /lib/libm.so.6 (0x4001a000)
 libcrypt.so.1 = /lib/libcrypt.so.1
 (0x40037000)
 libdb.so.3 = /lib/libdb.so.3 (0x40065000)
 libdl.so.2 = /lib/libdl.so.2 (0x4009f000)
 libpthread.so.0 = /lib/libpthread.so.0
 (0x400a4000)
 libc.so.6 = /lib/libc.so.6 (0x400b7000)
 /lib/ld-linux.so.2 = /lib/ld-linux.so.2
 (0x4000)
 
 - Thanks.
 --- Thies C. Arntzen [EMAIL PROTECTED] wrote:
  On Fri, May 11, 2001 at 06:51:35AM -0700, Robert
  Mena wrote:
   Hi, I have a development machine with 4.0.4pl1
  which
   has been used for creating a set of scripts to
  access
   oracle (using stored procedures).
   
   It seems to be working fine (the problems that
  I've
   encountered seems to be related to the
   oracle/procedure itself).
   
   Last night I moved the scripts to the production
   server.  Eveything was working ok until I try to
   access the part the uses the oracle where it hangs
  for
   a while and then gives me a [notice] child pid
  X
   exit signal Segmentation fault (11).
   
   I've compiled using './configure' '--with-apxs'
   '--with-ttf' '--with-xml' '--with-gd' '--with-ftp'
   '--enable-session' '--enable-trans-sid'
  '--with-zlib'
   '--enable-inline-optimization'
   '--with-oci8=/u01/app/oracle/product/8.1.7/'
   --with-mcrypt  --enable-sigchild
  
  is your apache linked against -lpthread?
  
  please read
  http://www.php.net/bugs-dos-and-donts.php and
  submit a bug report (with backtrace).
  
  re,
  tc
 
 
 __
 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]




[PHP] Newbie Question.

2001-05-12 Thread Raven

Hello to all.

This is probably the most basic question of th PHP general list.  I just
installed PHP 4.0.5 on Apache 1.2.19.

Could someone please explain a very basic test.

I would like to write a Hello World page as a test.

I have tried the following:  And named the page:  index.php and index.html

html
head
titlePHP Testing Ground/title
body
?php echo Hello World; ?
/body
/html

index.php - Displays the html code
index.html - displays blank - exept I see the title: PHP Testing Ground in
the title header of the browser.  So the pages are loading.

Help?  How do I test this to see that Apache is configured correctly.

PS: I followed the PHP Manual instructions for installing PHP on php.net.
Apache reported setting up correctly after running make install.

Any help would be appreciated.
Thanks in advance,
Tom Bedell
Newbie



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

2001-05-12 Thread Laurie Landry

I like using Homesite - color coordination of code as well. I use
Dreamweaver for the design elements as well, but sometimes it doesn't work
very well for php coding.

Laurie M. Landry
lmlweb Design  Development

www.lmlweb.com
[EMAIL PROTECTED]

T: (604) 872-6915
F: (425) 732-1547

 -Original Message-
 From: Dave Mateer [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 11, 2001 2:36 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP Editor


 I'm using ColdFusion Studio which makes life very easy - good colour
 co-ordination of the code, and only takes 1 button the do an FTP upload up
 to the web-server (I'm using a Windows box to do editing, then a Linux box
 as webserver).

 We've been using Dreamweaver as well to bring the design elements
 together...works well, when you're doing the html stuff.  For
 pure coding, I
 recommend ColdFusion Studio.  ahhh it costs money though.

 Textpad (from textpad.com) is good...can d/load an evaluation copy (fully
 functional, and doesn't time out)..

 Hope this help

 David.



 Daniel [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi,
 
  Just wondering whether you guys use any type of editor when
 programming in
  PHP? if so what have you found to be useful?
 
 
  Thanks
 
 
  Daniel
 
 
  --
  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] Books!

2001-05-12 Thread FredrikAT

Can anyone recommend a php(/mysql) book?

--
-
Fredrik A. Takle
[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] Books!

2001-05-12 Thread Adaran (Marc E. Brinkmann)

Hi FredrikAT,

FredrikAT Can anyone recommend a php(/mysql) book?

Well, I don't know what language you do expect. I have read 3 Books in German,
the best of them was Internet intern: PHP 4 + MySQL by Rolf D. Stoll  Gudrun
Anna Leier. It's from Data Becker, and It is a really good book for beginners to
intermediate's.

Someone else may suggest some English books :P

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.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]




Re: [PHP] Newbie Question.

2001-05-12 Thread Ethan Schroeder

In your apache conf, make sure you have something similar to:
AddType application/x-httpd-php .php .phtml .inc
If you don't, add it and restart apache.


- Original Message -
From: Raven [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 12, 2001 12:04 PM
Subject: [PHP] Newbie Question.


 Hello to all.

 This is probably the most basic question of th PHP general list.  I just
 installed PHP 4.0.5 on Apache 1.2.19.

 Could someone please explain a very basic test.

 I would like to write a Hello World page as a test.

 I have tried the following:  And named the page:  index.php and index.html

 html
 head
 titlePHP Testing Ground/title
 body
 ?php echo Hello World; ?
 /body
 /html

 index.php - Displays the html code
 index.html - displays blank - exept I see the title: PHP Testing Ground in
 the title header of the browser.  So the pages are loading.

 Help?  How do I test this to see that Apache is configured correctly.

 PS: I followed the PHP Manual instructions for installing PHP on php.net.
 Apache reported setting up correctly after running make install.

 Any help would be appreciated.
 Thanks in advance,
 Tom Bedell
 Newbie



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

2001-05-12 Thread Michael Kimsal



On Sat, 12 May 2001, Jochen Kaechelin wrote:

 Hello list!
 
 When you create a pdf-document with Adobe Acrobat
 you can protect it with a password!
 Is there a way to protect it with php's pdf-funtions, too!
 
 I found nothing in the docs!
 

No - there is no way to do this.  Those password functions are proprietary
to Adobe, though they have documented the internal algorithms.  I don't
think the password stuff will work if you use a non-adobe viewer.  The
non-adobe viewer would just try to render it without checking for a
password.  Apparently adobe normally encrypts the data if you use a
password, so it's pretty non-workable to use a non-adobe reader against an
adobe-encrypted pdf file.  However, all this is based on my research of
about 1 year ago - recollections might be a bit fuzzy on the details.




-- 
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] Newbie Question.

2001-05-12 Thread Miles Thompson

Sorry, should be

./httpd --help

Miles

At 01:52 PM 5/12/01 -0300, Miles Thompson wrote:
snip
or
./hhtpd --help
snip


-- 
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] Site search engine suggestion.

2001-05-12 Thread Ethan Schroeder

I use udmsearch and love it.  If you want php pages searchable it does
actual http requests, so it doesn't give source code.  If you don't want php
searchable, you can configure it to ignore any file extensions you want.  It
comes with a php interface built in, also.

Ethan Schroeder
- Original Message -
From: elias [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 12, 2001 10:18 AM
Subject: [PHP] Site search engine suggestion.


 Hello guys,

 I need that badly! I need a suggestion, advise, solution or whatever that
 might help!

 I need a Site Search script for a page that mostly have .PHP files some
are
 dynamic and some are not.
 Basically i was using WebGlimpse but whenever I search using it, It shows
 the source code of the PHP files!
 So for example if i search echo , WebGlimpse displays the .PHP file
source
 code!

 Any suggestion for a better site search program?

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

2001-05-12 Thread Phil Ewington

Hi All,

I am having problems with file permissions. I am trying to use fopen() to
write to a text file and get the error - 'permission denied'. I then used
chmod(file.txt, 0755); and got the message that I was not the file owner,
can someone help me out?

PHP 3.0.9
Solaris 2.7/Apache 1.3.3


TIA

Phil.

BTW: I am completely new to PHP and Apache.


Phil Ewington - Cold Fusion Developer

T: 01344 643138
M: 07811 309116
E: 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] referencing a constant inside an object

2001-05-12 Thread cw

I'm trying to reference $PHP_SELF and $REMOTE_USER inside a class:

var $page;
var $user;
$this-page=$PHP_SELF;
$this-user=$REMOTE_USER;

I'm using php4. What am I missing here?

TIA,
clif


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

2001-05-12 Thread tcuhost

I use textpad. http://www.textpad.com. You can arrange your own coloring config
and there are some very cool elements about it there are even modules to
load into it for added functionality

once you use it you will never go back..mmuuwwahahahaha


- Original Message -
From: Laurie Landry [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Saturday, May 12, 2001 9:24 AM
Subject: RE: [PHP] PHP Editor


I like using Homesite - color coordination of code as well. I use
Dreamweaver for the design elements as well, but sometimes it doesn't work
very well for php coding.

Laurie M. Landry
lmlweb Design  Development

www.lmlweb.com
[EMAIL PROTECTED]

T: (604) 872-6915
F: (425) 732-1547

 -Original Message-
 From: Dave Mateer [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 11, 2001 2:36 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP Editor


 I'm using ColdFusion Studio which makes life very easy - good colour
 co-ordination of the code, and only takes 1 button the do an FTP upload up
 to the web-server (I'm using a Windows box to do editing, then a Linux box
 as webserver).

 We've been using Dreamweaver as well to bring the design elements
 together...works well, when you're doing the html stuff.  For
 pure coding, I
 recommend ColdFusion Studio.  ahhh it costs money though.

 Textpad (from textpad.com) is good...can d/load an evaluation copy (fully
 functional, and doesn't time out)..

 Hope this help

 David.



 Daniel [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi,
 
  Just wondering whether you guys use any type of editor when
 programming in
  PHP? if so what have you found to be useful?
 
 
  Thanks
 
 
  Daniel
 
 
  --
  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] Site search engine suggestion.

2001-05-12 Thread ~~~i LeoNid ~~

On 12 May 2001 00:04:26 -0700 impersonator of [EMAIL PROTECTED]
(elias) planted I saw in php.general:

Hello guys,I need that badly! 

Hello. 

If you wouldn't mind disclosing your site address, and the server will
allow it, I may try my php-indexer-by-links. And we will see if it'll
work. No garantee, of course, (and i didn't index .php for myself) and no
deadline promised, (4 now atleast) but if works, it could be to our mutual
benefit (testing 4 me; and index+ searcher script .php 2 you). And you
won't loose anything beside innocence (who needs it for this case:) of you
hidden site-address. 

See, how searcher works at http://leo.portland.co.uk/srch/srch.php

Leon id.

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

2001-05-12 Thread Altunergil, Oktay

There's no extended replace in textpad.. More specifically you can't do
extended replace if the files are not all Open.

On the other hand there's no , parantheses, bracket maching in HomeSite.

I still use HomeSite though :)


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 12, 2001 2:40 PM
To: PHP
Subject: Re: [PHP] PHP Editor


I use textpad. http://www.textpad.com. You can arrange your own coloring
config
and there are some very cool elements about it there are even modules to
load into it for added functionality

once you use it you will never go back..mmuuwwahahahaha


- Original Message -
From: Laurie Landry [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Saturday, May 12, 2001 9:24 AM
Subject: RE: [PHP] PHP Editor


I like using Homesite - color coordination of code as well. I use
Dreamweaver for the design elements as well, but sometimes it doesn't work
very well for php coding.

Laurie M. Landry
lmlweb Design  Development

www.lmlweb.com
[EMAIL PROTECTED]

T: (604) 872-6915
F: (425) 732-1547

 -Original Message-
 From: Dave Mateer [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 11, 2001 2:36 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP Editor


 I'm using ColdFusion Studio which makes life very easy - good colour
 co-ordination of the code, and only takes 1 button the do an FTP upload up
 to the web-server (I'm using a Windows box to do editing, then a Linux box
 as webserver).

 We've been using Dreamweaver as well to bring the design elements
 together...works well, when you're doing the html stuff.  For
 pure coding, I
 recommend ColdFusion Studio.  ahhh it costs money though.

 Textpad (from textpad.com) is good...can d/load an evaluation copy (fully
 functional, and doesn't time out)..

 Hope this help

 David.



 Daniel [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi,
 
  Just wondering whether you guys use any type of editor when
 programming in
  PHP? if so what have you found to be useful?
 
 
  Thanks
 
 
  Daniel
 
 
  --
  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 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] referencing a constant inside an object

2001-05-12 Thread Ethan Schroeder

global $PHP_SELF;
global $REMOTE_USER;

- Original Message - 
From: cw [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Saturday, May 12, 2001 11:28 AM
Subject: [PHP] referencing a constant inside an object


 I'm trying to reference $PHP_SELF and $REMOTE_USER inside a class:
 
 var $page;
 var $user;
 $this-page=$PHP_SELF;
 $this-user=$REMOTE_USER;
 
 I'm using php4. What am I missing here?
 
 TIA,
 clif
 
 
 -- 
 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] Site search engine suggestion.

2001-05-12 Thread Ryan W. Zajicek

Just a side not here... :)

udmSearch is now mnoGoSearch (http://search.mnogo.ru/)

Thank You

Ryan
mailto:[EMAIL PROTECTED]


-Original Message-
From: Ethan Schroeder [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 12, 2001 2:25 PM
To: elias
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Site search engine suggestion.


I use udmsearch and love it.  If you want php pages searchable it does
actual http requests, so it doesn't give source code.  If you don't want php
searchable, you can configure it to ignore any file extensions you want.  It
comes with a php interface built in, also.

Ethan Schroeder
- Original Message -
From: elias [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 12, 2001 10:18 AM
Subject: [PHP] Site search engine suggestion.


 Hello guys,

 I need that badly! I need a suggestion, advise, solution or whatever that
 might help!

 I need a Site Search script for a page that mostly have .PHP files some
are
 dynamic and some are not.
 Basically i was using WebGlimpse but whenever I search using it, It shows
 the source code of the PHP files!
 So for example if i search echo , WebGlimpse displays the .PHP file
source
 code!

 Any suggestion for a better site search program?

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

2001-05-12 Thread Ryan W. Zajicek

My personal favorite is Ultra Edit (www.ultraedit.com).

Thank You

Ryan
mailto:[EMAIL PROTECTED]

-Original Message-
From: Altunergil, Oktay [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 12, 2001 1:42 PM
To: '[EMAIL PROTECTED]'; PHP
Subject: RE: [PHP] PHP Editor


There's no extended replace in textpad.. More specifically you can't do
extended replace if the files are not all Open.

On the other hand there's no , parantheses, bracket maching in HomeSite.

I still use HomeSite though :)


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 12, 2001 2:40 PM
To: PHP
Subject: Re: [PHP] PHP Editor


I use textpad. http://www.textpad.com. You can arrange your own coloring
config
and there are some very cool elements about it there are even modules to
load into it for added functionality

once you use it you will never go back..mmuuwwahahahaha


- Original Message -
From: Laurie Landry [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Saturday, May 12, 2001 9:24 AM
Subject: RE: [PHP] PHP Editor


I like using Homesite - color coordination of code as well. I use
Dreamweaver for the design elements as well, but sometimes it doesn't work
very well for php coding.

Laurie M. Landry
lmlweb Design  Development

www.lmlweb.com
[EMAIL PROTECTED]

T: (604) 872-6915
F: (425) 732-1547

 -Original Message-
 From: Dave Mateer [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 11, 2001 2:36 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP Editor


 I'm using ColdFusion Studio which makes life very easy - good colour
 co-ordination of the code, and only takes 1 button the do an FTP upload up
 to the web-server (I'm using a Windows box to do editing, then a Linux box
 as webserver).

 We've been using Dreamweaver as well to bring the design elements
 together...works well, when you're doing the html stuff.  For
 pure coding, I
 recommend ColdFusion Studio.  ahhh it costs money though.

 Textpad (from textpad.com) is good...can d/load an evaluation copy (fully
 functional, and doesn't time out)..

 Hope this help

 David.



 Daniel [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi,
 
  Just wondering whether you guys use any type of editor when
 programming in
  PHP? if so what have you found to be useful?
 
 
  Thanks
 
 
  Daniel
 
 
  --
  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 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 Digest 12 May 2001 19:55:41 -0000 Issue 682

2001-05-12 Thread php-general-digest-help


php-general Digest 12 May 2001 19:55:41 - Issue 682

Topics (messages 52550 through 52587):

Re: Simulate the Enter key in Unix with PHP
52550 by: barce

uploading problems
52551 by: Theo Richel
52562 by: SED

mysql - SUBSTRING
52552 by: andreas \(.work\)
52553 by: CC Zona

Test, please delete
52554 by: ws

Re: Multiple ASP 2 PHP conversion
52555 by: Christian Reiniger

Re: Hidden Input and Quotes?
52556 by: Christian Reiniger

Re: grep all pages
52557 by: ,,,

COM in PHP
52558 by: ws

Re: gdImageCreateFromJpeg in -lgd... no
52559 by: Don Read

Re: Site search engine suggestion.
52560 by: B. van Ouwerkerk
52573 by: Miles Thompson
52578 by: Ethan Schroeder
52583 by: ~~~i LeoNid ~~
52586 by: Ryan W. Zajicek

Re: PHP 4.0.5 - segmentation fault when using OCI8
52561 by: Robert Mena
52567 by: Thies C. Arntzen

Re: php site hacked?
52563 by: sunny hundal
52566 by: py

my query results won't clear! :(
52564 by: sunny hundal

pdf generation
52565 by: Jochen Kaechelin
52576 by: Michael Kimsal

Newbie Question.
52568 by: Raven
52572 by: Ethan Schroeder
52575 by: Miles Thompson
52577 by: Miles Thompson

Re: PHP Editor
52569 by: Laurie Landry
52582 by: tcuhost.hotmail.com
52584 by: Altunergil, Oktay
52587 by: Ryan W. Zajicek

Books!
52570 by: FredrikAT
52571 by: Adaran (Marc E. Brinkmann)
52574 by: Young Chi-Yeung Fan

checking the mp3 bitrate
52579 by: Siim Einfeldt aka Itpunk

File Permissions
52580 by: Phil Ewington

referencing a constant inside an object
52581 by: cw
52585 by: Ethan Schroeder

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



ERRATA to the PREVIOUS E-MAIL:

the following line:
 pass: nbsp;nbsp; input type=password name=userbr

should read:

pass: nbsp;nbsp; input type=password name=passbr




I try to upload a .sql file with PHPMyAdmin. Below 1 mb: no problem, above
1mb: impossible. We have increased the max_upload_file_size in PHP.ini but
it still doesnt work. What other parameters in the php.ini influence this?

Thanks very much
Theo Richel




Hi Theo,

I'm not sure it will help, but can it be because of script execution time?
Increase the time I try again. If it works, please let me know.

Greetz,
SED

-Original Message-
From: Theo Richel [mailto:[EMAIL PROTECTED]]
Sent: 12. maí 2001 08:17
To: [EMAIL PROTECTED]
Subject: [PHP] uploading problems


I try to upload a .sql file with PHPMyAdmin. Below 1 mb: no problem, above
1mb: impossible. We have increased the max_upload_file_size in PHP.ini but
it still doesnt work. What other parameters in the php.ini influence this?

Thanks very much
Theo Richel





hi,

if i use SUBSTRING(field,pos,len) in a SELECT statement it works fine

but i cant work it out how to use this function in the WHERE clause 

 ... WHERE  SUBSTRING(field,pos,len) LIKE ABC
 ... WHERE SUBSTRING(field,pos,len) = 'ABC'
 ... WHERE SUBSTRING(field,pos,len) LIKE 'ABC'

none of them work

is this not possible or whats wrong ?


thank you

andreas





In article 000c01c0dabb$422d2bd0$0101@devel01,
 [EMAIL PROTECTED] (andreas \(@work\)) wrote:

 but i cant work it out how to use this function in the WHERE clause 
 
  ... WHERE  SUBSTRING(field,pos,len) LIKE ABC
  ... WHERE SUBSTRING(field,pos,len) = 'ABC'
  ... WHERE SUBSTRING(field,pos,len) LIKE 'ABC'
 
 none of them work

Hard to say what's wrong without actual an actual query to look at, nor 
info on what error (if any) MySQL is reporting.  Though perhaps as a point 
of reference, do note that use of the like keyword should usually be 
accompanied by a wildcard character, usually the %:

like ABC%
like %ABC
like %ABC%
etc.

IOW, LIKE without wildcards is the same as using the = comparison 
operator.

-- 
CC










On Saturday 12 May 2001 00:51, Brandon Orther wrote:
 Hello,

 I found asp2php to be a great tool.  Does anyone know of a way to make
 it convert a whole directory or more than one file at a time?

I don't know asp2php, but a simple

cd src
for i in `find -name '*.php'` ; do
  asp2php $i ../dest/$i
done

should do it in any decent environment (i.e. any Unix flavor :)

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

Install once, run forever. Linux.




On Saturday 12 May 2001 04:20, Young Chi-Yeung Fan wrote:

 If you have input type=hidden name=data value=The word
 quot;herequot; is in quotes. /, then when you submit your form,
 $HTTP_POST_VARS[data] or $HTTP_GET_VARS[data] will be:

 The word \here\ is in quotes.

 So you can put the value straight into 

RE: [PHP] Repeat : I'm Living in cookie hell....

2001-05-12 Thread Scott Brown


Thanks for your reply.

Unfortunately, the problem is not in getting the code to execute - I know it
is for two reasons:

1) the setcookie(...) is being triggered because I have cookie warnings
turned on in the browser, and it warns me that a new cookie is being
received and it shows me the expected content of the cookie

2) the reloacation via the header is occuring as expected.

It's just that the cookie being set isnt being retained on the browser

(oh - and as a side note, there would only ever be 1 match for the returned
mysql result... which is why I didnt loop through them... there's either a
row returned, or not... and if not, then the rest of the code that wasnt
included in the msg handles that situation)

What I'm wondering though, is in the page which sets the cookie ok,
there is no redirection it executes:

setcookie(YONKAMEMBERID,$insert_id,time()+31536000,/,$PHP_HOST);

inline, and then displays the page.

In the page which doesnt set the cookie, there is redirection occuring

setcookie(YONKAMEMBERID,$login_id,time()+31536000,/,$PHP_HOST);
Header(Refresh: 0;url=/);

It's the exact same code -- just a different variable setting the value, and
the header call afterwards. (though even when I comment out the header(..)
it still doesnt work.)

Something just isnt right somewhere.

Is it the path of the script being exeuted that's causing something strange
to occur??

I really am at a loss

 Hello Scott,

 I took a look at your code, and have a solution for you.

 Here's the code:

 while ($row = mysql_fetch_array($result) )
 {
   if ($row[memberid] == $login_id)
   {
   // your code here :-)
   }
 }

 
 $row = mysql_fetch_array($result); // Get one row of
 data only *BAD*
 if ($row[memberid] == $login_id) {
  // [...]
 }
 
  the path of the cookie to be the root under both instances,
 it should be
  trying to set the same cookie, right?

 correct, but this only works if the first array returned is
 equal to the
 login_id. since you are returning only the first row of your database
 table, you never make it to the memberid that you're hoping
 is there --
 assumming that it is there.

 Train harder!

 regards,barce

 --
 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] referencing a constant inside an object

2001-05-12 Thread Michael Kimsal

The other poster was correct in their reply, but a more fitting reply is
that $PHP_SELF is NOT a constant.  A constant would be something like...

define(PHP_SELF,cow);

All PHP code would then show PHP_SELF as cow.


cw wrote:

 I'm trying to reference $PHP_SELF and $REMOTE_USER inside a class:

 var $page;
 var $user;
 $this-page=$PHP_SELF;
 $this-user=$REMOTE_USER;

 I'm using php4. What am I missing here?


-- 
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] Site search engine suggestion.

2001-05-12 Thread Ethan Schroeder

Wow, thanks for the heads up =)

Ethan Schroeder

- Original Message -
From: Ryan W. Zajicek [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 12, 2001 12:50 PM
Subject: RE: [PHP] Site search engine suggestion.


 Just a side not here... :)

 udmSearch is now mnoGoSearch (http://search.mnogo.ru/)

 Thank You

 Ryan
 mailto:[EMAIL PROTECTED]


 -Original Message-
 From: Ethan Schroeder [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 12, 2001 2:25 PM
 To: elias
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] Site search engine suggestion.


 I use udmsearch and love it.  If you want php pages searchable it does
 actual http requests, so it doesn't give source code.  If you don't want
php
 searchable, you can configure it to ignore any file extensions you want.
It
 comes with a php interface built in, also.

 Ethan Schroeder
 - Original Message -
 From: elias [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, May 12, 2001 10:18 AM
 Subject: [PHP] Site search engine suggestion.


  Hello guys,
 
  I need that badly! I need a suggestion, advise, solution or whatever
that
  might help!
 
  I need a Site Search script for a page that mostly have .PHP files some
 are
  dynamic and some are not.
  Basically i was using WebGlimpse but whenever I search using it, It
shows
  the source code of the PHP files!
  So for example if i search echo , WebGlimpse displays the .PHP file
 source
  code!
 
  Any suggestion for a better site search program?
 
  -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 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] Site search engine suggestion.

2001-05-12 Thread Philip Olson

You may also find this interesting :

  http://php.net/manual/en/ref.mnogo.php
  
From php changelog 4.0.5 :

  Added mnoGoSearch extension - http://search.mnogo.ru. (Sergey K)

regards,
philip



On Sat, 12 May 2001, Ethan Schroeder wrote:

 Wow, thanks for the heads up =)
 
 Ethan Schroeder
 
 - Original Message -
 From: Ryan W. Zajicek [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, May 12, 2001 12:50 PM
 Subject: RE: [PHP] Site search engine suggestion.
 
 
  Just a side not here... :)
 
  udmSearch is now mnoGoSearch (http://search.mnogo.ru/)
 
  Thank You
 
  Ryan
  mailto:[EMAIL PROTECTED]
 
 
  -Original Message-
  From: Ethan Schroeder [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, May 12, 2001 2:25 PM
  To: elias
  Cc: [EMAIL PROTECTED]
  Subject: Re: [PHP] Site search engine suggestion.
 
 
  I use udmsearch and love it.  If you want php pages searchable it does
  actual http requests, so it doesn't give source code.  If you don't want
 php
  searchable, you can configure it to ignore any file extensions you want.
 It
  comes with a php interface built in, also.
 
  Ethan Schroeder
  - Original Message -
  From: elias [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, May 12, 2001 10:18 AM
  Subject: [PHP] Site search engine suggestion.
 
 
   Hello guys,
  
   I need that badly! I need a suggestion, advise, solution or whatever
 that
   might help!
  
   I need a Site Search script for a page that mostly have .PHP files some
  are
   dynamic and some are not.
   Basically i was using WebGlimpse but whenever I search using it, It
 shows
   the source code of the PHP files!
   So for example if i search echo , WebGlimpse displays the .PHP file
  source
   code!
  
   Any suggestion for a better site search program?
  
   -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 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 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] checking the mp3 bitrate

2001-05-12 Thread Alexander Skwar

So sprach Siim Einfeldt aka Itpunk am Sat, May 12, 2001 at 07:19:59PM +0200:
 
 Hi,
 
 When uploading an .mp3 file, is it possible to check its bit rate with
 php?
 
 If you know anything about it, please send a mail to my private email as
 well.

Hm, you might try executing mp3info (if it's installed) after the file has
been uploaded, and parsing it's output.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 3 days 4 hours 45 minutes

--
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] Getting the domain from an url?

2001-05-12 Thread John Vanderbeck

Hey all,

I am quite horrible when it comes to regexps, but I have a string that
contains a complete url, like:
http://www.domain.com/this/is/it.html

And I need to strip everything but the domain so that I am left with:
www.domain.com

Can anyone help me out?

- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design and development issues



-- 
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] Getting the domain from an url?

2001-05-12 Thread CC Zona

In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] (John Vanderbeck) wrote:

 I am quite horrible when it comes to regexps, but I have a string that
 contains a complete url, like:
 http://www.domain.com/this/is/it.html
 
 And I need to strip everything but the domain so that I am left with:
 www.domain.com

Relax, you don't need a regex.  See http://php.net/parse_url

-- 
CC

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

2001-05-12 Thread Jithy


Hi guys!! mine is PHPEd.. =)

Jithy


-Original Message-
From: Ryan W. Zajicek [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 13, 2001 3:58 AM
To: Altunergil, Oktay; [EMAIL PROTECTED]; PHP
Subject: RE: [PHP] PHP Editor


My personal favorite is Ultra Edit (www.ultraedit.com).

Thank You

Ryan
mailto:[EMAIL PROTECTED]

-Original Message-
From: Altunergil, Oktay [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 12, 2001 1:42 PM
To: '[EMAIL PROTECTED]'; PHP
Subject: RE: [PHP] PHP Editor


There's no extended replace in textpad.. More specifically you can't do
extended replace if the files are not all Open.

On the other hand there's no , parantheses, bracket maching in HomeSite.

I still use HomeSite though :)


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 12, 2001 2:40 PM
To: PHP
Subject: Re: [PHP] PHP Editor


I use textpad. http://www.textpad.com. You can arrange your own coloring
config
and there are some very cool elements about it there are even modules to
load into it for added functionality

once you use it you will never go back..mmuuwwahahahaha


- Original Message -
From: Laurie Landry [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Saturday, May 12, 2001 9:24 AM
Subject: RE: [PHP] PHP Editor


I like using Homesite - color coordination of code as well. I use
Dreamweaver for the design elements as well, but sometimes it doesn't work
very well for php coding.

Laurie M. Landry
lmlweb Design  Development

www.lmlweb.com
[EMAIL PROTECTED]

T: (604) 872-6915
F: (425) 732-1547

 -Original Message-
 From: Dave Mateer [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 11, 2001 2:36 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP Editor


 I'm using ColdFusion Studio which makes life very easy - good colour
 co-ordination of the code, and only takes 1 button the do an FTP upload up
 to the web-server (I'm using a Windows box to do editing, then a Linux box
 as webserver).

 We've been using Dreamweaver as well to bring the design elements
 together...works well, when you're doing the html stuff.  For
 pure coding, I
 recommend ColdFusion Studio.  ahhh it costs money though.

 Textpad (from textpad.com) is good...can d/load an evaluation copy (fully
 functional, and doesn't time out)..

 Hope this help

 David.



 Daniel [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi,
 
  Just wondering whether you guys use any type of editor when
 programming in
  PHP? if so what have you found to be useful?
 
 
  Thanks
 
 
  Daniel
 
 
  --
  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 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]


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.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]




[PHP] check if a variable is in a number of states.

2001-05-12 Thread DRN

Hi, I would like to check whether a variable, $type, is equal to a
number of different possible states. I know I could use
if ( $type == abc || $type == bcd) { $a = b }
but this would get a bit clumsy if I had to check whether it is say
one of 20 different things.

What I was wondering is, is there a better way of doing this? I will
occasionally need to add another option as well, although I don't mind
a simple code edit.


Cheers for your help,  Donald
__
As well as learning more,
I learn that there is even more I don't know

http://www.donaldrnoble.f2s.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] check if a variable is in a number of states.

2001-05-12 Thread Ethan Schroeder

How about a case-swtich?
http://www.php.net/manual/en/control-structures.switch.php

Ethan Schroeder
- Original Message -
From: DRN [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 12, 2001 4:40 PM
Subject: [PHP] check if a variable is in a number of states.


 Hi, I would like to check whether a variable, $type, is equal to a
 number of different possible states. I know I could use
 if ( $type == abc || $type == bcd) { $a = b }
 but this would get a bit clumsy if I had to check whether it is say
 one of 20 different things.

 What I was wondering is, is there a better way of doing this? I will
 occasionally need to add another option as well, although I don't mind
 a simple code edit.


 Cheers for your help,  Donald
 __
 As well as learning more,
 I learn that there is even more I don't know

 http://www.donaldrnoble.f2s.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 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's OO is bad?

2001-05-12 Thread Mitch Vincent

Overusing OO features: PHP is not an object oriented language, while it
does provide object oriented features, you should always be conscious of the
fact that using PHP's object oriented features will significantly slow down
your code.

- a quote taken from Sterling Hughes' top 21 PHP programming mistakes
listed on the Zend homepage.

How true is this?

I've been coding in PHP for years now and have almost always written
software in the same general way..My code is *totally* object oriented. I
have individual classes for individual modules(parts of the application) --
everything is in a class.. I've never really noticed a problem with PHP's
execution speed but then I write applications in PHP, not just dynamic web
sites so the things I write rarely get a whole lot of traffic (most apps are
intranet apps and are not available to everyone on the net)..

So... Is this a bad way of doing things in PHP? Exactly what is
significant slow down that Mr. Hughes talks about and does anyone have any
real-world examples that might back up what he says? I am in the process of
writing some benchmarks but would still be interested in any and all other
data from other sources...

Thanks!!

-Mitch





-- 
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] Simulate the Enter key in Unix with PHP

2001-05-12 Thread YoBro

Thanks for the help, but the example given does nothing at all.

It has me stumped.

I got my first example working up to the point where you enter the password
but it is not storing the passwords.

Bummer.


barce [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 ERRATA to the PREVIOUS E-MAIL:

 the following line:
  pass: nbsp;nbsp; input type=password name=userbr

 should read:

 pass: nbsp;nbsp; input type=password name=passbr

 --
 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] A question on how to get the root directory

2001-05-12 Thread C Benn

I am new to PHP having converted from ASP (don't beat me up, it just took me
a while to see the light)

MY QUESTION: What in PHP acts like the 'server.mappath' function in ASP? It
gives you the ability to determain the root of the web site and use it as a
reference.

MY PROBLEM: I have been able to use '/some/folder/whatever.gif' to point to
the image folder with GIFs inside no matter where I am in the site in the
HTML part of my pages. It doesn't seem to work includes in the ?PHP  ?
tags. I either have to use
'http://www.mysite.com/some/folder/whatever.inc' -OR- '../../whatever.inc'.
Any ideas?

INFO: I am running Apache with PHP4.03 installed as a module

Thanx in advance!!



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

2001-05-12 Thread Herman Tolentino

I have installed CPDF lib instead. Installation was a breeze. I didn't want
to break my RAQ4 with too many config options when it's running live sites.
PDFLib and CPDF carry almost the same type of licenses.

- Original Message -
From: Steve Werby [EMAIL PROTECTED]
To: Herman Tolentino [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, May 09, 2001 7:17 PM
Subject: Re: [PHP] cobalt raq4


 Herman Tolentino [EMAIL PROTECTED] wrote:
  anybody out there who has successfully compiled php (apache module) with
  PDFLib 4? Much help would be appreciated. Been trying for 1 week.

 I haven't tried PDF 4, but I installed PDF 3.03 and compiled PHP with PDF
 support on a RaQ2 recently.  I noticed you're installing on a RaQ4 and
since
 I did so on a RaQ2 with PHP4.0.5 compiled into Apache 1.3.19 binary that
 version of PDF should work on the RaQ4 (x86 is much easier to install on
 than mips platform).  I believe the configuration command I used for
pdflib
 was ./configure  --enable-shared --enable-shared-pdflib
 and --with-pdflib=/usr/local in PHP.  I couldn't tell you whether a newer
 version of PDF will work.  Perhaps if you post your installation steps and
 what errors were encountered someone can help.  BTW, there's a test
 directory in the PDF source and a test script ./pdftest that creates a
test
 PDF file.  Can you get the test file to work?

 --
 Steve Werby
 President, Befriend Internet Services LLC
 http://www.befriend.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 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] Making sure a class is declared only once

2001-05-12 Thread rodrigo

Someone on the list mentioned a way to check if a classed is already
declared so it will only declare it once. I can't find it in the
archives so if someone knows how to accomplish this I would appreciate
it if you send me the code.

Thanks in advance.
-- 

Ivan R. Quintero E.* (507)228-3477  
Aptdo 1263 * (507)228-9105
Balboa, Ancon  * 612-1103
Republic of Panama * 


-- 
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] check if a variable is in a number of states.

2001-05-12 Thread Philip Olson


Here's an appropriate example, one of a few ways you may do it :

 $state  = 'Wa';

 $state  = trim(strtoupper($state));
 $states = array('WA' = 'Washington', 'OR' = 'Oregon', 'ID' = 'Idaho');
  
  if (in_array($state, array_keys($states))) {

echo you chose b{$states[$state]}/b, a state in the pacific NW!;

  } else {

echo you've chosen b$state/b, an inferior state indeed.;
  }

In the above, we make sure the chosen state is a $states key/index as
array_keys creates an array of keys, from the $states array, like so :

  $keys = array('WA','OR','ID');

If $state is in this array, bingo!  That's one way, it all depends on what
you're doing exactly.  in_array() is a nice little function btw, that's
the point of this post :)  Check out array_keys and array_search too.

regards,
philip


On Sun, 13 May 2001, DRN wrote:

 Hi, I would like to check whether a variable, $type, is equal to a
 number of different possible states. I know I could use
 if ( $type == abc || $type == bcd) { $a = b }
 but this would get a bit clumsy if I had to check whether it is say
 one of 20 different things.
 
 What I was wondering is, is there a better way of doing this? I will
 occasionally need to add another option as well, although I don't mind
 a simple code edit.
 
 
 Cheers for your help,  Donald
 __
 As well as learning more,
 I learn that there is even more I don't know
 
 http://www.donaldrnoble.f2s.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 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-directing

2001-05-12 Thread Todd Cary

In my Index.html, what do I write so that the Surfer goes to my
Start.Php?

Todd

--
Todd Cary
Ariste Software
[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's OO is bad?

2001-05-12 Thread Michael Kimsal



On Sat, 12 May 2001, Mitch Vincent wrote:

We too have been developing using an OO approach for awhile - definitely
in PHP4.  One of the other guys here was more OO than I was in PHP3, but
we've standardized more on our coding style in PHP4.

I would not doubt that there's some overhead with an OO approach.  Enough
to make a significant slow down?  We run a moderately high volume site -
the code base is pretty OO when it's called for, and we've not noticed any
significant speed issue.  Something going from 20ms to 40ms or 50ms might
be a 100% or greater speed decrease, but it's still pretty darn small.  

If the OO approach lets you code significantly faster than you would
otherwise be able to, continue to do so.  If speed is an ultimate factor,
and you don't use OO in PHP, don't start.  (Code in assembly or C if speed
is a necessity.)

The real-world small penalty you may pay in OO execution time might more
than be overcome by getting a project done days or weeks quicker than you
would otherwise have been able to.  

 
 I've been coding in PHP for years now and have almost always written
 software in the same general way..My code is *totally* object oriented. I
 have individual classes for individual modules(parts of the application) --
 everything is in a class.. I've never really noticed a problem with PHP's
 execution speed but then I write applications in PHP, not just dynamic web
 sites so the things I write rarely get a whole lot of traffic (most apps are
 intranet apps and are not available to everyone on the net)..
 
 So... Is this a bad way of doing things in PHP? Exactly what is
 significant slow down that Mr. Hughes talks about and does anyone have any
 real-world examples that might back up what he says? I am in the process of
 writing some benchmarks but would still be interested in any and all other
 data from other sources...
 
 Thanks!!
 
 -Mitch


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

2001-05-12 Thread Young Chi-Yeung Fan

Todd Cary wrote:

 In my Index.html, what do I write so that the Surfer goes to my
 Start.Php?

It should work to have this after your opening HTML tag in index.html:

meta http-equiv=refresh content=0; url=start.php /



-- 
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's OO is bad?

2001-05-12 Thread Sean Cazzell

His series of articles (top php programming mistakes) is great, and
I've heard good things about his PHP Cookbook but Hughes is way off
here.  There is some additional overhead with OO code but there is *very*
little difference in speed (less than 5% in synthetic benchmarks, and
much less in more complex php code) - certainly not the signigicant slow
down that he claims.

IIRC, later in the article series, Hughes admits he isn't an OO fan, so
he's probably a bit biased.  Maybe he knows of some case where OO PHP code
runs really slow, but since he doesn't present any data to back up his
claims I suspect he just guessed that OO PHP would be slow (ie - he made
it up!).

I don't use OO for everything I do, but if the project is going to be over
1000 lines or so, I find OO code easier to maintain. YMMV.

For testing, I used two simple test files that both printed hello
world five times.  I did the benchmarking with ab (apache
bench).  The OO one:

?php
class bench {
function test () {
print hello world!;
}
}

$bo = new bench;

$bo-test();
$bo-test();
$bo-test();
$bo-test();
$bo-test();
?

The non-OO version is the same, but without the class stuff.  The non-OO
version averaged 580 req/s, while the OO version averaged 550 req/s.  This
was on a 600mhz pIII with 256megs of ram running Apache 1.3.19 and PHP
4.0.5 on a Linux 2.4.3 kernel.


Regards,

Sean


-- 
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] modifying file via html page input

2001-05-12 Thread Dennis Gearon

I want to do the following:

1/ open a file via a web page
A/ Parse out the function names in a class
B/ Parse out some strings between two 'template block' like markers
C/ return the names/strings as pull down menus
2/ run a web application to modify the calling sequence of the functions
in the class via some input selection by the user.
3/ copy the original version to: 
original_file_name.php.old.highest_num_ext_found+1 i.e.

exists: file_name.php AND file_name.php.old.12 
copy:   file_name.php AS file_name.php.old.13
modify: file_name.php

3/ rewrite the section between the 'template block' like markers in
file_name.php with input from user.

My guesses are that:

1/ The new file created by the webserver will only have permissions
for the webserver/webserver-group access. **I** won't be able
to access it.
2/ I have to temporarily change the permissions of the file to modify to
all write so that the web server can access it.

Any one have suggestions on how to do this in the script and retain
permissions on
the new created file?
-- 
-
Look lovingly upon the present,
for it holds the only things that are forever true.
-
Sincerely, Dennis Gearon (Kegley)

-- 
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] check if a variable is in a number of states.

2001-05-12 Thread Steve

You could also try using a regular expression to get out whatever you need
(if it's a string).  Something like the following:

preg_match_all(/[abc|def|ghi]/,$type, $matches);

- Steve

DRN [EMAIL PROTECTED] wrote in message
9dkhdr$nog$[EMAIL PROTECTED]">news:9dkhdr$nog$[EMAIL PROTECTED]...
 Hi, I would like to check whether a variable, $type, is equal to a
 number of different possible states. I know I could use
 if ( $type == abc || $type == bcd) { $a = b }
 but this would get a bit clumsy if I had to check whether it is say
 one of 20 different things.

 What I was wondering is, is there a better way of doing this? I will
 occasionally need to add another option as well, although I don't mind
 a simple code edit.


 Cheers for your help,  Donald
 __
 As well as learning more,
 I learn that there is even more I don't know

 http://www.donaldrnoble.f2s.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 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] References

2001-05-12 Thread Steve

Hello all,

My apologies if this is has been answered before or if this is considered
beginner material...but I am trying to make something of a linked list using
PHP.  However, with the absence of pointers, I'm wondering if references
will do the trick.  For example:

/
class node
{
var value;
var child;
var parent;
}

$top = new node();
$top-value = hello;

$test = new node();
$top-child = $test;
$test-parent = $top;
/

Has anyone attempted anything like this before or can anyone think of a
reason that this will not work?  Thank you!

- Steve



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