[PHP] Splitting a complex string problem

2001-03-02 Thread rm

I have a string that can be any length and contain any
number or words.  Each string also has,  somewhere
near end, a list of parameters that can begin with any
number of five or six different parameter markers. I
need to find the position of the first of these
parameters markers, which can be in any order, so I
can seperate the user string from the parameters...and
I can't change the way the information is provided.

The only way I could get this to work is, since
there's only five different markers, locate the
position of each marker in the string, stick it in an
array, sort the array and find the first element that
is greater than 3 (the strpos uses an offset of 3
since the user portion of the string cannot be less
than three charcters long plus a space), this element
has to be the marker and position that begins the
parameter portion of the string.

Anyone know of a better more elegant ( read as faster)
way to handle this problem. 

rm

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.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]




Re: [PHP] MySQL Create Table Problem

2001-03-02 Thread rm

Shouldn't the primary key spec come at the end of the
table create command, not in the middle ex...

CREATE TABLE president (
last_name varchar(15) NOT NULL,
first_name varchar(15) NOT NULL,
suffix varchar(5) NOT NULL,
city varchar(20) NOT NULL,
state varchar(2) NOT NULL,
birth date NULL,
death date NULL,
primary key (first_name))

something like the above.



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.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]




Re: [PHP] cutting apart form field data

2001-03-02 Thread rm

look at the explode or split functions in the php help
docs


--- Randy Johnson <[EMAIL PROTECTED]> wrote:
> okay  I want to have the user submit multiple values
> in a text form field
> 
> ex
> 
> day,night,month
> 
> How do I take that data and break it apart into
> separate variables?
> 
> thanks
> 
> randy
> 
> -- 
> 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 email at your own domain with Yahoo! Mail. 
http://personal.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] Inane ereg_replace question

2001-03-03 Thread rm

I have to get rid of any spaces on either side of the
: mark. Can anyone explain why

php 3.xx

$a="to be or not  :to to be";

$b=ereg_replace(" *:",":",$b);
  $b=ereg_replace(": *",":",$b);

works and

$b=ereg_replace(" *:|: *",":",$b); 

does not work. I've had this problem before and ended
up using two or more statments rather than one.

rm




__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.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]




Re: [PHP] some array help :)

2001-03-10 Thread rm

I'm not exactly sure of what you're doing, however, if
you're trying to find a match to an element of an
array and if there's a match do somethingyou might
try

for ($i=0; $i < count($temparray); $i++){

if ($temparray[$i] == "something"){
    do whatever this and that;
}
}

rm
--- Gregor Jaksa <[EMAIL PROTECTED]> wrote:
> hello,
> 
> i'm trying to do something like
> 
> $tmparray = array("foo", "foo1", "foo2");
> if ($i in $tmparray) then do something
> ..
> but i dont know how to do it.
> any help would be appriciated
> 
> 
> 
> -- 
> 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!?
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] some array help :)

2001-03-10 Thread rm

True enough, however, there are still some of us using
stone tablets for our correspondence :)

rm

--- Jørg_Vidar_Bryne <[EMAIL PROTECTED]> wrote:
> Or you could use this in php4:
> 
> if ( in_array( "something", $temparray  )) { do
> stuff }
> 
> -J


__
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] Variable problems and strings PHP3

2001-03-15 Thread rm

I have problem maybe someone has a
solutionsomething like variables within variables.

I have a very long string composed of a number of
variables. for examples

$a= "do"
$b= "do"
$sting= $a." find the info then $b this and that
then".$a." the report";

The problem is the value of $a may change to $a="don't
do " 

I cant use str_replace or ereg_replace becuase I don't
want to change the second do in the above string, the
$b variable. An additional problem is that there are a
number of variables that make up the string, some may
change some may not and some appear at differnt points
in the script.

Is there some way...I don't know, is there something
like a variable placeholder..I mean so that $string =
$a." etc etc etc" but $string doesn't take the value
of $a only that the variable $a exists as part of the
string and if the variable $a changes then the final
value of $string will reflect the new value of $a.


Anyone have any vague idea of what I mean or how to
accomplish this. Right now I'm using arrays to keep
track of the string parts and then the script
assembles the string at the end.

It's an awful lot of code. It would seem there is a
better way.  

rm

__
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] include php3 -vs- 4

2001-03-16 Thread rm

try something like

define("CONFIGURATION", "YES");
in xyz-inc-1.php

if (CONFIGURATION != "YES") {
include("/xyz-inc-1.php");
in the script

--- Jack Sasportas <[EMAIL PROTECTED]>
wrote:
> Is there a workaround under php3 for include_once ?
> 
> Thanks
> 
>
___
> Jack Sasportas
> 
> 
> 
> -- 
> 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 email at your own domain with Yahoo! Mail. 
http://personal.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]




Re: [PHP] Form problem...

2001-03-17 Thread rm

stripslashes should work in most cases, something like

$text=stripslashes($text);
before it goes to email

rm


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.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]




Re: [PHP] how do i get a variable type?

2001-03-18 Thread rm

PHP, at least php 3.x, has a series of fuctions like
is_string, is_integer, is_array etc.  I know they're
there...I don't us them so I don't know exactly
where...this might be what you're looking for...

rm

--- phpman <[EMAIL PROTECTED]> wrote:
> hello all,
> 
>  let's say i have this:
> $a="varone=hello world|vartwo=2.44|varthree=100|";
> 
> now i do this:
> 
> $b=explode('|',$a);
> $z=count($b);
> for ($x=0;$x<$z;$x++) {
> $tmp=explode('=',$b[$x]);
> 
> 
> and i want to find out if  $tmp[1] is a string or an
> integer (that's really
> all I need to determine so i can put
> together an SQL statement that puts single quotes
> around strings and none
> around integers). Obviously
> i won't know at design time all of the variables and
> their values. Thank
> you.
> 
> -dave
> 
> 
> 
> -- 
> 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 email at your own domain with Yahoo! Mail. 
http://personal.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] Need a URL....

2001-04-13 Thread rm

My hard drive died, lost my bookmarks.  Can someone
post the url of the site that archives this list...it
was marc something or otherneed to find a piece of
code I know was posted to this listthank

rm

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.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]




Re: [PHP] Need a URL....

2001-04-13 Thread rm

Thank you

rm


--- Keyur Kalaria <[EMAIL PROTECTED]> wrote:
> it is 
> 
> http://marc.theaimsgroup.com/
> 
> regards
> keyur
> 
> 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.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]




Re: [PHP] PHP Interact with DreamWaver

2001-06-19 Thread rm

I used to use DW 3.x and it would mangle the php code.
 I tried a demo version of DW 4.0 and it makes
allowances for php code.  To my knowledge there is no
way to fix DW 3.x to properly work with php code. I've
since changed to Homesite, after you get the hang ot
it, it's better than dreamweaver.  I understand there
are some extensions at DW home page for php...but I'm
not 100% sure, also supposedly some docs about using
php and DW 4.0...again I'm not 100% sure.

KB

--- Jack <[EMAIL PROTECTED]> wrote:
> Dear All
> I'm fresh on the php, but i just want to ask what
> should i do to let my


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/



[PHP] OT Re: http 1.0 1.1 info

2001-06-21 Thread rm

Anyone know of a url.

Need a simple introduction to the concepts of http1.0
and 1.1 protocols, how they work etc etc.  Preferably
something with nice pretty pictures and something that
does not require more than a first or second grading
reading level.

Everything I find at the various search engines seems
to require a masters in computer science and a minor
in gobbly gobb.

kb


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] OT Re: http 1.0 1.1 info

2001-06-22 Thread rm

> it's not the equivalent of 'HTTP for Dummies' :-)

funny thing...after your message, I went to a search
engine ran a search for http protocol dummies...found
what I needed 

ken



__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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] Reducing Brackets is a Logical expression

2001-06-29 Thread rm

Somewhere, some time ago, i saw a rountine, C, C++,
php, some language that provided a rountine to reduce
brackets in a logical expression to the fewest number
of brackets possible (much like mysql does), for ex:

((a and b) or (a and c)) would be reduced to:

(a or c) and b

not a very good example,  anyone one ever run across
this code, or have an idea what this operation is
called,  I know there was a namefor the life of me
I can't remember the name.

any help appreciated

kb

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] Why does it take so long?

2001-07-01 Thread rm

FWIW, i run  php.40, apache and mysql on both my
desktops and my laptop, the laptop has 32 megs and a
166 processor.  The arrangement runs fairly well on
the laptop. What you might want to do is to check and
see what other processes are running on your machine
that you may not know about or need. hit
control+alt+del and a pop up window will appear
listing the current processes...you can work back from
there.

kb

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




RE: [PHP] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread rm

before running ./configure go to the directory and
delete the old configure.cache file then run
./configure again.

kb


--- nelo manuel <[EMAIL PROTECTED]> wrote:
> yes it is,
> when compilinf php-4.0.6
> after ./configure then make it gives me some error
> portion of installation:
> 
> microtime.c: In function `php_if_getrusage':
> microtime.c:94: storage size of `usg' isn't
> known
> microtime.c:97: `RUSAGE_SELF' undeclared (first
> use in this function)
> microtime.c:97: (Each undeclared identifier is
> reported only once
> microtime.c:97: for each function it appears
> in.)
> microtime.c:103: `RUSAGE_CHILDREN' undeclared
> (first use in this 
> function)
> make[3]: *** [microtime.lo] Error 1
> make[3]: Leaving directory
> `/home/master/php-4.0.1/ext/standard'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/master/php-4.0.1/ext/standard'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/home/master/php-4.0.1/ext'
> make: *** [all-recursive] Error 1
> 
> 
> any help?
> no the only thing that works is 
> 
> thanks
> 
> >From: "Ray Hilton" <[EMAIL PROTECTED]>
> >To: "'nelo manuel'" <[EMAIL PROTECTED]>,
> <[EMAIL PROTECTED]>
> >Subject: RE: [PHP] Fatal Error: Call to undefined
> function: 
> >sybase_connect() in
> >Date: Tue, 3 Jul 2001 11:37:37 +0200
> >
> >Not sure other than that... If it compiles it means
> it can find the
> >headers it needs from the sybase package...  Is
> this sybase 11.9.2?  I
> >managed to build php with that some time ago, but I
> cant for the life of
> >me remember any more details...
> >
> >Do any sybase functions work?  And do you get any
> errors during
> >configure/install?
> >
> >-Original Message-
> >From: nelo manuel [mailto:[EMAIL PROTECTED]]
> >Sent: 03 July 2001 11:28
> >To: [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> >Subject: RE: [PHP] Fatal Error: Call to undefined
> function:
> >sybase_connect() in
> >
> >
> >i have compile it with sybase on ./configure
> (according to mastering
> >linux
> >book, install and configuring php to access data
> from sybase)
> >
> >can some else pls help me :(
> >
> >
> > >From: "Ray Hilton" <[EMAIL PROTECTED]>
> > >To: "'nelo manuel'" <[EMAIL PROTECTED]>,
> <[EMAIL PROTECTED]>
> > >Subject: RE: [PHP] Fatal Error: Call to undefined
> function:
> > >sybase_connect() in
> > >Date: Tue, 3 Jul 2001 09:37:56 +0200
> > >
> > >Have you sompiled in sybase support?  By defauly
> php doesn't compile
> > >with sybase functions, you must specifcally tell
> it too...
> > >
> > >-Original Message-
> > >From: nelo manuel [mailto:[EMAIL PROTECTED]]
> > >Sent: 03 July 2001 09:27
> > >To: [EMAIL PROTECTED]
> > >Subject: [PHP] Fatal Error: Call to undefined
> function:
> > >sybase_connect() in
> > >
> > >
> > >Dear all,
> > >
> > >am quite new on php and Linux, after installing
> php-4.0.6 and run the
> > >test.php it worked OK but when i try to write the
> function to initially
> >
> > >display records from sybase pubs2 i get the
> following msg "Fatal
> > >Error:Call to undefined function:
> sybase_connect() in
> > >/home/httpd/html/index.php3"
> > >
> > >i am using Linux Redhat 7 kernel 2.4.3
> > >
> > >can any one help me please :(
> > >
> > >Kind regards,
> > >Nelson
> > >
> > >
> >
>
>___
> > >_
> > >_
> > >Get Your Private, Free E-mail from MSN Hotmail at
> > >http://www.hotmail.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]
> > >
> > >
> > >
> >
>
>
> >_
> >Get Your Private, Free E-mail from MSN Hotmail at
> >http://www.hotmail.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]
> >
> >
> >
> 
>
_
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.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]
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] robot.txt file

2001-07-07 Thread rm

Everything you need to know about robots.txt files but
were afraid to ask 

http://www.robotstxt.org/wc/robots.html

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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] High Ascii chars

2001-07-07 Thread rm


php3.x

We have a large number of people submitting a large
number of docs...I'm having a problem with some docs
coming through with high ascii characters in the text,
apparently the dbm database we're using chokes on some
high ascii chars.  I need to eliminate characters in
the text from 122 to 255.  I can't seem to find a
simple way to do thisI have a routine, it works
but it takes too long, something like;

for ($i=122; $i<256; $i++){
 
$textline=str_replace(chr($i),'',$textline)

}


Anyone know of a better, faster way to filter out
these high ascii charcters

kb

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] High Ascii chars---thanks

2001-07-08 Thread rm

Thanks for your help people, 
I appreciate it

rm


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] Splitting a string first by quotes then spaces

2001-07-09 Thread rm

Try this:

first test to see if the query contain quotes, if it
does, go to a seperate routine that splits the string
into an array, first however, you must make sure there
is a space before the query and one after the query (
you add these) *then* split the string into an array,
explode on the quotesyou will find that every odd
number element of the array has to be a string that
was enclosed in quotes. If you have elements 0, 1, 2
and 3, then 1 and 3 will always be strings that were
encloded in quotes. The spaces before and after the
query that you insert assure that if the user makes
the first part of the query a quote, the routine will
detect it as an odd number element.

rm

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in ...

2001-07-11 Thread rm

  

use phpinfo to see if they even compiled php with
mysql support, probably didn't


--- Tom Beidler <[EMAIL PROTECTED]> wrote:
> I'm working with an new ISP and I'm having trouble
> connecting to MySQL
> through PHP 4.
> 
> Here's some server specifics;
> PHP Version 4.0.4pl1
> Apache/1.3.14
> 
> DBA supportenabled
> Supported handlersgdbm db2 db3
> 
> I'm getting the following error;
> 
> Fatal error: Call to undefined function:
> mysql_pconnect() in /home/... on
> line 5
> 
> Line 5 is;
> 
> $connection =
> mysql_pconnect("localhost","myuserid","mypass")
> 
> It's a new box so I'm assuming it's something in the
> configuration. I don't
> have access to the server so I'm trying to
> troubleshoot for the ISP. Any
> help would be greatly appreciated.
> 
> Thanks,
> Tom
> 
> 
> -- 
> 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 personalized email addresses from Yahoo! Mail
http://personal.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]




RE: [PHP] building a search engine ??

2001-07-12 Thread rm

What you might want to try is something called
ksearch.cgi, you'll find it at cgi-resources.com  It's
actually very good and very very small.  It actually
indexes your site and stores the info in several db
databases or a text file, your choice and offers, if
I'm not mistaken, boolean search, oh and the last time
I checked it was free.  If you dont want to use perl
to run the search you should be able to access the
data from php assuming the proper support is compile
in

rm



> > At 02:26 PM 7/12/01 +0200, void wrote:
> > >I am thinking of building a search engine with
> the grep command for our
> > >site.
> > >i have my information in a mysql db,
> > >but i am putting it back into text files.
> > >reoson being is that maybe the mysql db goes down
> under hevy load,
> > >and then our site would look like a tree with out


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] Strange Bizzare Problem

2001-07-13 Thread rm

Is it possible that your database is ot updating 
immediately but on a delayed basis..some databases can
be set to update on a delayed or immediate basis. If
the update varaiables are derived from the database
then these will not be updated as well and the
redirect will go thru, unless you put in some kind of
error checking.

rm 

--- Somazx Interesting <[EMAIL PROTECTED]> wrote:
> 
> I'm running into this really odd, seemingly
> illogical problem:
> 
> 
> Background:
> 
> This is an on-line course made up of lots of pages,
> some have forms, some 
> don't. The pages which have forms all submit to
> single php script (called 
> submit.php) which processes the submitted form,
> placing the submitted 
> answers into a database and updating a variable
> which tracks which pages of 
> the course have been completed by the user.
> 
> The submit.php page, once it has processed the
> submitted form data, then 
> does a http redirect so the student is served the
> next page of the course.
> 
> 
> Problem:
> 
> About 1 out of 20 times submit.php doesn't update
> the database, or update 
> the variables tracking student progress, but does
> the http redirect.
> 
> submit.php looks something like this:
> 
> if ($fsubmit){
>   update database;
>   update variable;
>   http redirect to next page;
> }
> 
> Conclusion:
> 
> Is it possible that PHP can skip php instructions
> before an http redirect 
> semi-randomly? The same problem occurs with output
> buffering on or off.
> 
> Any theories on what the problem may be?
> 
> Thanks,
> Andy.
> 
> 
> -- 
> 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 personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] echo vs printf

2001-07-16 Thread rm

Actually, you can do the same thing with echo.

echo "you have $points points";

As I understand it, echo is not a function it's a
language something or other, supposedly it runs
slightly faster than print given the same output.

however, given it's Monday, I could be wrong.

rm

> 
> also you can drop vars in print like
> 
> print "you have $points points";
> 
> whereas to echo it you'd have to concatenate the
> string.
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] Global Database

2001-07-16 Thread rm

FWIW re: dmoz.or,  provides an index of topics and
catagories as well as their own current database of
subjects and content for download...big downloads, I
think the content material is over 500megs, but it's
free. It's in some sort of text format, I can't seem
to recall the exact format.

rm

--- Erich Kolb <[EMAIL PROTECTED]> wrote:
> Does anynone know where I can find a database of
> "general information" like
> country abbreviations -> country, zip codes, state
> names?  I am also looking
> for a database that has generic topic lists, sort of
> like how you see on
> Yahoo.com or DMOZ?  If there is no database, would
> anyone be interested in
> creating such a thing?
> 
> 
> -- 
> 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 personalized email addresses from Yahoo! Mail
http://personal.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]




RE: [PHP] echo vs printf

2001-07-16 Thread rm


I don't know what to say, my comment was based on

http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40

note the author.

I ran your code in both windows and linux and got
faster speeds, on a regular basis, for echo. That
said, the speed differences were not great(minor is a
good description), I think the greatest was half a sec
for 1 million loops.

rm

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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] OT Math Question

2001-07-18 Thread rm


if i have four drop down menus with five values in
each, and the values are the same for each of the four
drop down menus, how many variations are there without
 duplicates, any dups, 

I though the formula was 5 to the 4th power minus 5,
this can't possibly be right.

math impaired and trying to fake it....

rm

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




RE: [PHP] OT Math Question...thanks all

2001-07-18 Thread rm


Thanks, talk about a painfully obvious answer

rm

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] Code Refusing to Die

2001-07-18 Thread rm

$fp is not a valid file handle because the url is
invalid, it can't close a file handle for a file that
wasn't opened because it never existed (invalid url).
You need to fix the logic to allow for the possibility
that a file does not exit and therefore cannot be
closed. Maybe the php function file_exists might be of
some use.



rm


--- Sheridan Saint-Michel <[EMAIL PROTECTED]>
wrote:
> Okay... I can't figure out why this isn't working...
> 
> When I enter in a valid URL this function works
> fine...
> 
> The problem is when I enter an invalid url, rather 
> than getting my (semi) friendly die error I get
> 
> Warning:
> fopen("http://www.foxjet.com/html/fjmain.html","r";)
> - Unknown error in /home/www/foxjet/admin/mailer.php
> on line 37
> 
> Warning: Supplied argument is not a valid
> File-Handle resource in
> /home/www/foxjet/admin/mailer.php on line 38
> 
> Warning: Supplied argument is not a valid
> File-Handle resource in
> /home/www/foxjet/admin/mailer.php on line 39
> 
> 
> Here is my function (With Line numbers added)
> 
> 31: Function CreateMessage($url,$boundary)
> 32: { 
> 33:
> 34:   if (substr($url,0,7) != "http://";)
> 35: $url = "http://"; . $url;
> 36:
> 37:   $fp = fopen($url,"r") or die("Page $url Not
> Found!");
> 38:   $buffer = fread($fp, 10);
> 39:   fclose($fp);
> 
> /* More Code */
> 
> 65: }
> 
> Any ideas?  Am I overlooking something?
> 
> Sheridan Saint-Michel
> Website Administrator
> FoxJet, an ITW Company
> www.foxjet.com
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] Code Refusing to Die

2001-07-18 Thread rm

try using fsockopen from the php network functions
works better than fopen...we use it to run wget on one
of our machines...fopen is supposed to report
false on failure, however, we don't use it for
connections outside our file system and even then we
always use file_exists before using fopen on the local
machine...it should report false.

> What I don't understand is why the die statement
> never executes.
> If you try to fopen a file that doesn't exist
> shouldn't fopen return false?
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] Can't think of a topic(but help)

2001-07-19 Thread rm

There is something like a php compiler ( it's not
really a compiler in the usual sense) that will turn
php files into windows exec. filesfrankly I ran
across it someplace, not sure where. Try the links at
various php sites...that's how I ran across it. 


--- ReDucTor <[EMAIL PROTECTED]> wrote:
> hey,
>   i am wonder if there is a way to turn my php files
> into an executable or into a bunch of html files, so
> if i where to send them to some one that isn't
> running php they would be able to use them?!?
>   - James "ReDucTor" Mitchell
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] Using mod_rewrite with PHP

2001-07-19 Thread rm

try this url, maybe it will help...

http://www.zend.com/tips/tips.php?id=68&single=1


--- Gawain <[EMAIL PROTECTED]> wrote:
> I've been wrestling with mod_rewrite and trying to
> understand how to 
> use it for my particular purpose. I've got two php
> URLs I'd like to 
> rewrite to make them search-engine friendly.
> Currently they look like:
> 
> Example 1:
> http://mysite.com/foobar.html?c=23
> 
> Example 2:
> http://mysite.com/foobar.html?c=23&p=45
> 
> What I'd like to end up with is something like:
> 
> Example 1:
> http://mysite.com/foobar/23
> 
> Example 2:
> http://mysite.com/foobar/23/45
> 
> I'm kind of new to mod_rewrite and regexp's, so can
> anybody give me a clue?
> 
> Thanks!
> 
> Gawain
> 
> 
> -- 
> 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 personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] Help! Parse error.....

2001-07-20 Thread rm

in the great big FWIW department, the error may not be
on that line, it may only indicate the point where php
recognized an error.  I had one page with several
includes and html code...php reported a parse error on
the main page, I couldn't find it, however,
eventually, I tracked the error to an early include
file that was missing a bracket.  Chances are you're
missing a bracket some place before the reported
error, could be anyplace.  


rm


--- Jack Sasportas <[EMAIL PROTECTED]>
wrote:
> Tried the alternative stuff with no luck...
> Looking for any crazy ideas that might work...
> 
> Thanks !
> 
> Paul Strange wrote:
> 
> > On Friday 20 July 2001 06:16, Jack Sasportas
> wrote:
> > > I have some code that runs under php3 perfectly,
> but now under 4 I get a
> > > parse error
> > > on this specific line, can't figure out how to
> resolve it.
> > >
> > > the code looks like this
> > >
> > > 
> > > 
> > > 
> > >
> > > the error is in the middle line  which is the
> end of a condition...
> > >
> > > Thanks in advance...
> >
> > Have you tried using the alternative syntax
> capabilities?  More here:
> >
>
http://www.php.net/manual/en/control-structures.alternative-syntax.php
> >
> > --
> >
> > Paul Strange
> > Lead Programmer
> > Level 67 LC
> > ---
> > eMail: [EMAIL PROTECTED] Office:
> 801.486.4686  Fax: 801.994.0467
> >
> > --
> > 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]
> 
> --
>
___
> Jack Sasportas
> Innovative Internet Solutions
> Phone 305.665.2500
> Fax 305.665.2551
> www.innovativeinternet.com
> www.web56.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]
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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]




Re: [PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread rm

you can try the lazy man's wayI just 

replace the double quotes using ereg with "
whatever the html code is for quotes. I store in my
mysql that way and write it to web pages


--- garman <[EMAIL PROTECTED]> wrote:
> I'm creating a specialized "suggestion box" type of
> web application in PHP.  
> I'm using MySQL for data storage.
> 
> Whenever I try to submit text that contains a double


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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] Odd include/variable problem

2001-07-20 Thread rm

php4.0.5 win32


I have a page called results.php.  Short but with any
number of 12 include files depending on the logic
flow.  The first include file is a config file

include("config.fil");

 that contains all the variables to run the app.,
included is :

$MYSQL_LINK=mysql_connect($host,$uName,$pWord);

(All the necessary variables are declared before
$MYSQL_LINK)


Four different includes use this variable to get info
from the same table and db no problem.

When I get down to one of the last includes, I get the
following error message

"1 is not a valid MySQL-Link resource"etc  in
fulldisplay.php

so I added the following to fulldisplay.php before the
call to the db

print $MYSQL_LINK;
mysql_select_db($dbName,$MYSQL_LINK);

It returned:

Resource id #1
Warning:  1 is not a valid MySQL-Link resource
in...etc  the script completes but with the warning
message

Now if I take this include and insert 

include("config.fil");

at the top of this include file.

I get...Resource id #9 and the script runs correctly
to completion, no warnings no problems.

I can't even begin to understand why the variable
$MYSQL_LINK runs correctly in all the includes except
fulldisplay.php unless I include the config file for
the second time.  By way of note, all the other
varaibles defined in the config file are available in
fulldisplay.php without including the config fle for a
2nd time.

rm

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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]logic question

2001-07-22 Thread rm

try:

http://php.resourceindex.com/Complete_Scripts/Link_Management/

you should be able to find some examples here.



__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] magazine-subscription

2001-08-05 Thread rm

This might give you a start

http://sourceforge.net/projects/props/

--- Chetan Ganpati <[EMAIL PROTECTED]> wrote:
> Hi, 
> 
>  Does anyone know of a tool to handle an online
> magazine and the magazine-subscriptions?
> 
> Thanks, 
> Chetan.
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> http://phonecard.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]
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] I HAVE A PROBLEM HERE...

2001-08-06 Thread rm

Problem isn't size, you may have a syntax
error...perhaps if you give more detail, submit the
variable to what? What do you mean it won't let you?

rm


--- Joshman <[EMAIL PROTECTED]> wrote:
> Supposively all php variables arent suppose to have
> size limits, for
> example, I have a php file with a variable the about
> the size of 40 bytes,
> but it wont let me submit the variable for some
> stupid reason, somebody tell
> me what parameter I have to set to the variable so
> it WILL work.. and/or why
> it is not working the way php.net says it should.
> thanks..
> 
> -Josh
> 
> 
> 
> -- 
> 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!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] Search Engines

2001-08-06 Thread rm

One of best tutorials around can be found at:
http://www.northernwebs.com/set/

rm


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] Python and PHP

2001-08-06 Thread rm

I've noticed in some articles I ran across today that
that there is some opinion that PHP is too linear and
that Python was being used in conjuction with PHP
since Python is so strong with oop.  Anyone run across
any docs or tutorials on using both P's together.  

rm

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] I HAVE A PROBLEM HERE...

2001-08-06 Thread rm

i assume you mean your passing the variable as part of
the url...PHP_SELF?a=something (is this what your
doing)  if so make sure you  use
rawurlencode/urlencode before passing the variable and
rawurldecode/urldecode on the variable afterwards...


--- Joshman <[EMAIL PROTECTED]> wrote:
> the php file wont submit to the next file (which is
> th same file actually:
> $PHP_SELF ) because the variable is too big for some
> reason aparently, evn
> though i have other variables larger than that
> particular one...
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] converting numeric to a string

2001-08-07 Thread rm

check out settype() however read the doc on types you
may not need settype at all

rm


--- Don <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm looking at the 'String' section of the online
> documentation.  I cannot
> find a function that converts a numeric to a string,
> e.g., 1 --> "1".
> 
> Am I blind or does this not exist?
> 
> Thanks,
> 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]
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] OT win95/apache/ query

2001-08-16 Thread rm

Couple of months ago my HD died, I replaced it,
re-installed win95, reinstalled apache and php.  This
evening I have to create a .htaccess file for a
production web site to generate custom error messages
like

 ErrorDocument 404 /errordocs/404
 ErrorDocument 500 /errordocs/500

etc win 95 will not let me create a file called
.htaccess, I never had this problem on the win 95
before the old HD died!! Anyone know how to fix this? 
No win program will let me create this file so I
assume this is a win config issue???

any help appreciated.

rm

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] Mem and variables

2001-08-20 Thread rm

Of late I've been reusing variable in my code, for
example.

$string = "when in the course of human events";

[ additional lines of code ]


$string = explode("  ", $string);

[ additional lines of code ]


$string=implode("|",$string);

{more code]

$string=substr($string,x,y);

on and on, but string always representing the same
data just in a different format or a diffect section
of the data.

odd question, but if variables are stored in memory
until the script terminates, that includes old unused
variable, isn’t it more efficient, memory wise, to
reuse old variables that reference, in effect the same
basic data, rather than create new or additional
variables

rm

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] Page detect

2001-08-21 Thread rm

try using $PHP_SELF, this might be what you're looking
for

rm


--- Kevin P <[EMAIL PROTECTED]> wrote:
> Hi all
> 
> I am just five days new to PHP. When sending an
> HTML form to a PHP page
> for handling, can you cause the PHP to detect the
> page name (like form.htm
> or form2.htm)?
> 
> thanks
> 
> Kevin
> 
> 
> 
> -- 
> 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!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] how to discover cause of php crash under win98?

2001-08-21 Thread rm

I assume your running apache, if so...take a look at
the apache error.log file, there may be some hint in
there as to the problems...usually/ program
files/apache/logs

rm


--- Chris Hayes <[EMAIL PROTECTED]> wrote:
> hi,
> i am trying to install the thousands-of-lines big
> postnuke.com website 
> thingie.
> Unfortunately it won't start and the community does
> not seem to recognize 
> the problem.
> I get this message:
> 
>   PHP caused an invalid page fault in
>   module PHP4TS.DLL at 015f:1008e884.
> 
> (PHP4 on win98)
> 
> Anyone any idea how i can debug? 
> 
> 
> 
> 
> E_ALL is not giving any related info.
> I tracked down where the page stops loading but
> these lines seem to be not 
> related to the problem. 
> 
> I made it print a html text and this keeps working
> just unto the place where 
> the page suddenly stops loading in a straight html
> bit.
> 
> By the way, quite complicated structure. Never had
> so many php files open at 
> the same time to track a bug!
> 
> 
> thanks,
> Chris
> 
>

> --  C.Hayes  Droevendaal 35  6708 PB Wageningen  the
> Netherlands  --
>

> 
>  
> 
> -- 
> 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!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] convert 12:12:00 to seconds

2001-08-22 Thread rm

maybe

$time=12:12:00

$x=explode(":",$time);

$sec=($x[0]*3600)+($x[1]*60)=$x[2];

rm


--- nafiseh saberi <[EMAIL PROTECTED]> wrote:
> 
> hi.
> how do I covert convert  12:12:00  to seconds ?
> I want to get time from system and covert it to
> seconds to do
> arithmetic work on it.
>  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]
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] Re: Mem and variables

2001-08-22 Thread rm

point taken...thanks


> At any rate -- The right way to worry about
> perforance is to figure out
> where your code is spending 90% of its time, and to
> optimize that.  I'm
> betting it ain't in variable lookups for most of us


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] Checksum Question

2001-08-29 Thread rm

In php cr32 will create a checksum number, 10 digits,
in linux cksum will create one of 9 digits and sum
linux will generate a 5 digit number. We use these
numbers in a db field to determine if a file has
changed and needs to be reviewed, redone,
whatever...rather than keep the orginal file on hand.
Given the task at hand and given I'm confused about
why there are different length numbers, is there one
particular option that allows for better change
checking..or is it simply a matter of longer is
better...I mean the longer the checksum number the
better.

rm

__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.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] insert space to a string (newbie)

2001-09-08 Thread rm

Maybe something like:

$word="washington";
$length=strlen($word);

$a=substr($word,0,3);
$b=substr($word,3,$length-3);

$string=$a." ".$b;

print $string;

you might want to test for the length of $word first
to make sure $word has more than 3 characters


--- Andras Kende <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I have a simple question...
> How can a space inserted to a string after the 3rd
> char ??
> 
> washington   ->>  was hington 
> 
> 
> Thanks :)
> 
> 
> Andras
> 
> 
> -- 
> 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 email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.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] Email checking

2001-09-13 Thread rm

Have you tried:

http://zend.com/codex.php?CID=11


--- Max Mouse <[EMAIL PROTECTED]> wrote:
> I've been looking to check the validity of an email
> address when it's
> entered by a person on a from. So far, I have found
> many different versions


__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

-- 
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] Search in Progress

2001-09-22 Thread rm

to my knowledge what you're talking about is done
through html layers and javascript...I've seen it done
at other siteshttp://www.anywho.com/rl.html  uses
this process.

rm





--- Alexis Antonakis <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am developing a simple site, in PHP4, which has
> three frames on it.
> 
> The first gives you the search options and the
> second two, the results.
> 
> What I was wondering was, while the database is
> being searched, is it
> possible to display some text in the 'results' frame
> stating that the search
> is in progress?
> 
> 
> I also have another site which I would like do this
> on, however this one,
> rather than using frames, uses tables, and it is
> only when the entire set of
> data for each table has been retrieved that the page
> is actually displayed.
> 
> Any suggestions would be most appreciated
> Alexis
> 
> 
> -- 
> 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 email alerts & NEW webcam video instant messaging with Yahoo! Messenger. 
http://im.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]