RE: [PHP] function and global problems

2001-04-05 Thread Richard Kurth
I don't have to wait tell tomorrow I feel funny already Thanks Richard > Look at the line directly above where you're parse error is. > > It semi-lacks part of the lower intentestional tract. > > > That will seem funny to you tommarrow. > > > -- > Plutarck > Should be working on something... > ...

Re: [PHP] Building an array from a URL

2001-04-05 Thread Plutarck
You'll probably want to play with the following function: http://www.php.net/manual/en/function.parse-url.php -- Plutarck Should be working on something... ...but forgot what it was. "Mike Gifford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > >

Re: [PHP] PHP and geocities

2001-04-05 Thread Plutarck
Also check out the CURL group of functions in the manual. As for code, nope. Never needed to do it, and you won't find the code you need anywhere. You'll have to write it yourself. Which is kind of the point, I thought... You'll find all the info you need in the manual under fsockopen, fgets,

Re: [PHP] sockets (long)

2001-04-05 Thread Joseph Blythe
Yasuo Ohgaki wrote: > set_nonblock() is in PHP C source, but not in the PHP Manual. May be it's dead? > > It seems it take one parameter (file descriptor), let us know if it works. I > might want to use it in the future :) Yasuo, There is one mention of set_nonblock() in the manual under acc

Re: [PHP] function and global problems

2001-04-05 Thread Plutarck
Look at the line directly above where you're parse error is. It semi-lacks part of the lower intentestional tract. That will seem funny to you tommarrow. -- Plutarck Should be working on something... ...but forgot what it was. PS: No it won't. ""Richard Kurth"" <[EMAIL PROTECTED]> wrote in

Re: [PHP] Array of words in textfile?

2001-04-05 Thread Plutarck
If they are all in a format like that, first just read the text file with fopen/fread into one big string. Then use: $refined_string = explode(" ", $bigstring); That's the main way to do it, but the preferable way is using a regular expression with either the ereg or preg functions. -- Plutar

Re: [PHP] Using proxy servers with fsockopen()

2001-04-05 Thread Plamen Slavov
try this $desired_agent="User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)\n"; $datei = fsockopen($proxyaddr, $proxyport, &$errno, &$errstr,30); if( !$datei ) { echo "proxy not available !"; fclose($resultfile); } else { fputs($datei,"GET $filewanted/ HTTP/1.0\n"); fp

[PHP] function and global problems

2001-04-05 Thread Richard Kurth
I can not seem to get this figuered out I whant to run this function to pull data out of a file and thin use the data in the rest of the program. When I do this I get a Parse error: parse error in c:/httpd/htdocs/autosetup/auto/test.php on line 25 -- PHP General Mailing List (http://www.php.

[PHP] Array of words in textfile?

2001-04-05 Thread Jan Grafström
Hi! I want to read a textfile (cat, dog, rat,) and get it like this: $namesArray = array("cat,", "dog,", "rat,"); If I can do this than I can go on and make changes in my array. Like the examples in php manual. Thanks in advance for any tips. Regards Jan -- PHP General Mailing List (http://

Re: [PHP] PHP and geocities

2001-04-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Joseph Bannon") wrote: > > Sure you can, but the only way I know of is to use fsockopen() and use > > fputs() to mimick an HTTP connection session. > > Can you give me the coding for this? The annotated docs contain many code samples to lear

[PHP] PHP and geocities

2001-04-05 Thread Joseph Bannon
> Sure you can, but the only way I know of is to use fsockopen() and use > fputs() to mimick an HTTP connection session. Can you give me the coding for this? > To fake geocities you'll need to set the referer, I believe. Not sure what > it needs to be set to, however. What is the code for thi

[PHP] Using proxy servers with fsockopen()

2001-04-05 Thread Vlad
Hi all Is any way to open socet connections using proxy servers from php script? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] fopen() Redirected File & Frameset File!!!

2001-04-05 Thread Thomas Edison Jr.
the fopen() function alongwith the fgets() can easily get a line from any file containg our query and print it out using this code : however, if i open a url file which is actually being redirected to a new file...how to read that file? if $fd = fopen("http://www.to.com/nothin","r"); and this u

[PHP] fopen() redirected file & frameset file

2001-04-05 Thread Thomas Edison Jr.
the fopen() function alongwith the fgets() can easily get a line from any file containg our query and print it out using this code : however, if i open a url file which is actually being redirected to a new file...how to read that file? if $fd = fopen("http://www.to.com/nothin","r"); and this u

[PHP] use NEWLY-ASSIGNED SESSION id?

2001-04-05 Thread Derek Sivers
My PHP script (with --trans-sid enabled) assigns a session ID for people without cookies. No big deal, right? BUT THE BIG QUESTION IS: Can I immediately know what long string PHP assigned to the session, without having to click to a different page first? I want one single PHP page to #1 - a

Re: [PHP] mystery line

2001-04-05 Thread David Robley
On Fri, 6 Apr 2001 13:50, Martin Skjöldebrand wrote: > Tyler Longren wrote: > > In line 3, you don't need your tags again. > > This is how you have it: > > print "TID detail view - Document #"; > > > > this is how it should be: > > print "TID detail view - Document #$id"; > > Ofcourse, I've seen

Re: [PHP] Problem with each()

2001-04-05 Thread Jeff Carnahan
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... }print("key: $each_array[0] value: $each_array[1]"); } }When I get to an array within HTTP_POST_VARS, it prints: }key: var_name value: Array } }ok, but when I try to do an each on that array: (and maybe this is where I }am wrong) }$each_ar

RE: [PHP] mystery line

2001-04-05 Thread Martin Skjöldebrand
Tyler Longren wrote: > In line 3, you don't need your tags again. > This is how you have it: > print "TID detail view - Document #"; > > this is how it should be: > print "TID detail view - Document #$id"; Ofcourse, I've seen that all the time - and yet ... oh well ... a bug in the carbon base

Re: [PHP] Problems porting from MySQL Server to MSSQL7 Server

2001-04-05 Thread Michael Kimsal
Hi John - Can you elaborate on the concurrency issues? Thanks. John wrote: > Hello Adrian, > > There are some concurrency issues with mssql if you are using > mssql_pconnect. Try switching to mssql_connect. Also check to see if > transactions are enabled in mssql. > > Your SQL insert syntax lo

[PHP] Passing Arrays Between Pages Using Forms

2001-04-05 Thread Mike Gifford
Hello, I've currently got a list which is generated from a single database table: http://openconcept.ca/rabble/newsfeeds.phtml I can now select from this list and be presented with a more concenced list of links into which changes can be made and summaries added: http://openconce

[PHP] How to don´t write if exist

2001-04-05 Thread Jan Grafström
Hi! I want php to check if a word already exist and then don´t write it to the file. This is my file list.txt: car, cat, dog, ... and my php which need some more function: -- $fp = fopen("list.txt", "a"); $string = "$word".","." "; fwrite ($fp, $string); fclose ($fp); --- I want to add: If

Re: [PHP] Building an array from a URL

2001-04-05 Thread Mike Gifford
Hi Joe, this would be useful if I wanted to write to a URL, but I need to read from it. Perhaps I wasn't clear in this. Mike Joe Stump wrote: > Ok - say you have this: > $foo = array( > 0 => 'joe', > 1 => 'stump', > 2 => '

[PHP] Problem with each()

2001-04-05 Thread David Minor
I recall reading this somewhere in the past, but can't find the answer after looking for a couple of hours. I am getting this warning: Warning: Variable passed to each() is not an array or object in myfile.inc on line 1 Here's what I'm doing: While doing: $each_array = each($HTTP_POST_VARS) pri

Re: [PHP] mystery line

2001-04-05 Thread David Robley
On Fri, 6 Apr 2001 13:00, Martin Skjöldebrand wrote: > It's not first of April today is it? Only where you are :-) > > In: > > > print ""; > print "TID detail view - Document #"; > > > $sql="select * from tid_tbl where id=" . $id; > $result1=mysql_query($sql, $mysql_link); > $row = mysql_f

Re: [PHP] doubt in ob_*() functions

2001-04-05 Thread Aaron Tuller
umm, no, you assigned $string to the output and you flushed it and you echoed $string. maybe you mean ob_end_clean()? -aaron At 12:22 AM -0300 4/6/01, Christian Dechery wrote: >take a look at this small code: > >ob_start(); >echo "something"; >echo "something else"; >$string=ob_get_contents();

RE: [PHP] mystery line

2001-04-05 Thread Tyler Longren
In line 3, you don't need your tags again. This is how you have it: print "TID detail view - Document #"; this is how it should be: print "TID detail view - Document #$id"; Tyler Longren -Original Message- From: Martin Skjoldebrand [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2

[PHP] mystery line

2001-04-05 Thread Martin Skjöldebrand
It's not first of April today is it? In: "; print "TID detail view - Document #"; $sql="select * from tid_tbl where id=" . $id; $result1=mysql_query($sql, $mysql_link); $row = mysql_fetch_array($result1); echo ''; echo 'Subject' . $row["subject"] . ''; echo 'Issue/Info' . ereg_replace (1

[PHP] doubt in ob_*() functions

2001-04-05 Thread Christian Dechery
take a look at this small code: ob_start(); echo "something"; echo "something else"; $string=ob_get_contents(); ob_end_flush(); echo $string.""; shouldn't this be the output? something something else so why it outputs this? something something else something something else

Re: [PHP] Crack extension

2001-04-05 Thread John
Hi AZ, Where can we get it, what does it do, and do we smoke it? Regards, John PS: Last is a joke, but I am sincerely curious -- what does it do? <[EMAIL PROTECTED]> wrote in message 9agj7e$7ba$[EMAIL PROTECTED]">news:9agj7e$7ba$[EMAIL PROTECTED]... > Anyone using the crack extension in PHP? >

Re: [PHP] close tcp-IP connection before php-skript finishes

2001-04-05 Thread Steve Werby
"Peter Kuppelwieser" <[EMAIL PROTECTED]> wrote: > I have an problem with on of our scripts, and some caching proxy servers > > the script produces output, then it does a flush(), > After this, the script does a sleep(10) and then it does a db-query without > producing html output. > > normally the

Re: [PHP] Problems porting from MySQL Server to MSSQL7 Server

2001-04-05 Thread John
Hello Adrian, There are some concurrency issues with mssql if you are using mssql_pconnect. Try switching to mssql_connect. Also check to see if transactions are enabled in mssql. Your SQL insert syntax looks ok. Regards, John PS: for porting mysql to mssql, have a look at http://php.weblogs.c

Re: [PHP] PHP with Win2k or Linux

2001-04-05 Thread John
Watch out for 1. file names are case sensitive on Unix. Even mysql table names are case-sensitive on Unix. 2. behaviour of environment/server variables is sometimes different. The plus side is PHP on Linux tends to be more reliable and more extensions work. Regards, John ""Frank K"" <[EMAIL P

Re: [PHP] IF this then, move to this line...

2001-04-05 Thread Wade DeWerff
this is mostly a C++ function, java has something similar as well but break would be the closest -Original Message- From: CC Zona <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Thursday, April 05, 2001 1:03 PM Subject: Re: [PHP] IF this then, move to this line... >

Re: [PHP] fopen wierdness

2001-04-05 Thread Steve Werby
"Steve Werby" <[EMAIL PROTECTED]> wrote: > acutally i found my problem, what was happening was that script1 that was > on the server that file resides had that file open at the same time that > scirpt2 was trying to open via http, when i change that files name, the > permissions changed, and scrip

[PHP] Addendum

2001-04-05 Thread Plutarck
Note on my example by comparing it to a similar example at zend: Note that this example requires PHP 4.0.4 (not yet released at the time of writing) or later, compiled with zlib support turned on. Earlier versions of PHP may not support the optional argument for ob_start(), and don't include the

Re: [PHP] ob_*() functions in Win9x

2001-04-05 Thread Plutarck
I just tried it, and it seems to work like a charm on my Win98 machine (WAMP). So far I have no problems with output buffering on my machine. Test script: Should output: hi! ho! MWUAHAHA! So as far as I know, at very least version 4.0.4pl1 supports Windows. Haven't tried anything with the gz

[PHP-CVS] cvs: php4(PHP_4_0_5) / NEWS php.ini-dist php.ini-optimized /ext/standard url_scanner.c url_scanner_ex.c url_scanner_ex.re /main main.c php_globals.h php_variables.c

2001-04-05 Thread Jani Taskinen
sniper Thu Apr 5 19:09:44 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4 NEWS php.ini-dist php.ini-optimized /php4/ext/standard url_scanner.c url_scanner_ex.c url_scanner_ex.re /php4/main main.c php_globals.h php_variables.c Log: MFH Ind

[PHP] probs with session_register() solved...

2001-04-05 Thread Christian Dechery
After about 4 or 5 posts asking for help with session_register() with no replies I finally got my array into session vars... I tried the manual, just not thoroughly enough in the users contribution section... and there was the answer to all my problems... one single sentence "in order to regis

Re: [PHP] output buffering

2001-04-05 Thread Plutarck
I know what you mean. Until I decided to kill all but one single echo/print call, which is in a function I call at the bottom of the script, I often ran into problems where I needed to echo something at the top of a really really long control loop, but nested deep within it I had to set a cookie o

[PHP] ob_*() functions in Win9x

2001-04-05 Thread Christian Dechery
While struggling to get MS SQL error messages from PHP, someone here gave me the idea of capturing the output when executing a query and even offered me the code (thanks again)... I tried, the code was correct, but nothing happened... I develop under Win98Me with Apache... but the script will

[PHP-CVS] cvs: php4 /main php_variables.c

2001-04-05 Thread Jani Taskinen
sniper Thu Apr 5 18:50:41 2001 EDT Modified files: /php4/main php_variables.c Log: fixed typo in CVS id Index: php4/main/php_variables.c diff -u php4/main/php_variables.c:1.24 php4/main/php_variables.c:1.25 --- php4/main/php_variables.c:1.24 Wed Apr 4

Re: [PHP] output buffering

2001-04-05 Thread Christian Dechery
At 00:26 5/4/2001 -0500, Plutarck wrote: >http://www.php.net/manual/en/ref.outcontrol.php > >If you want to use output buffering you must use the ob_* family of >functions. > >In any script where you want it used you _must_ use it explicitly, or so do >in an included file. Unless you can change th

[PHP] I'm equally curious

2001-04-05 Thread Plutarck
I know that to do this somehow ignore_user_abort should probably be set to true for the purpose of the script itself. Then something could be done...but I wonder along with you, is there a way to tell the client "That's all there is! stop waiting!" *scratches head* Perhaps the outbut buffer may

Re: [PHP] Directory(parent) Structure

2001-04-05 Thread Plutarck
Why? Does this look weird to you? ../../../../../../../../../../../../../../../../../../../../../../../../../. ./../../../../../../../../../../../../../../../../../../../../../../../../.. /../../../../../../../../../../../../../../../../../../../../../../please/ju st/kill/me.ace Yeah ok, sometim

Re: [PHP] PHP sending email contents as an attachment, not in thebody

2001-04-05 Thread Stuart J. Browne
"Lindsay Adams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > According to the headers in your email, you are using Outlook Express. > > I think it is a microsoft issue. Because when I write a long email in OE, > and send it to myself, I get it as an attachme

Re: [PHP] "YourName.BEST321.com" FREE§K¶O°ì¦W !!!!!

2001-04-05 Thread Plutarck
The spammers that use a foreign language are kind of fun though. Let's us use our imagination as to what they are saying. And we have fun trying to find an online translator that can make sense of it. Or not. -- Plutarck Should be working on something... ...but forgot what it was. "David Ro

Re: [PHP] Read one word in file

2001-04-05 Thread Plutarck
Once you get the first line into an array, you can just use explode on \n, or use a regex that searches for any group of characters that is not a whitespace character, then stops searching once it's found it. As Chris said, there are many many ways of doing it. -- Plutarck Should be working on

Re: [PHP] fopen wierdness

2001-04-05 Thread Plutarck
Technically yes. In an HTTP session, the server returns a header "Content-length" which lists the more or less exact size of the file being sent. But there isn't really an easy way of reading HTTP headers in php, yet. I really wish there were. You can use fsockopen to make your own http session

Re: [PHP] How can I make this smaller + something neet with global

2001-04-05 Thread Plutarck
Um...I think you could just use "global". As in: global $domain, $tld, $firstname, $lastname, $userid; Once a variable is declared global, any change to that variable inside the function is reflected outside of the function. So: function before_after () { global $var; echo $var . ""; $var =

Re: [PHP] fopen wierdness

2001-04-05 Thread Jerry
acutally i found my problem, what was happening was that script1 that was on the server that file resides had that file open at the same time that scirpt2 was trying to open via http, when i change that files name, the permissions changed, and script1 was unable to open the file, and so script2 wa

Re: [PHP] drop-down menu variables

2001-04-05 Thread Joe Stump
You should all check out libHTMLForm at http://www.nirvani.net/software - it has all sorts of functions for writing HTML forms easily and painlessly. I use it all the time now (shameless plug - my roommate wrote it a while back). --Joe On Fri, Apr 06, 2001 at 02:35:11AM +0200, Richard wrote: > Y

Re: [PHP] Mail() Speed?

2001-04-05 Thread Plutarck
Many people seem to sware that opening a direct connection to sendmail is faster than using the mail function, and often avoids errors more often. Your mileage may vary, but I gather that a direct connection is faster, though not by much so don't get too concerned, than using mail. So feel free

Re: [PHP] Include / Require

2001-04-05 Thread Plutarck
This is a good time for a quick lesson on just exactly what include/require actually does. The following two examples are exactly the same, in almost every way: === Example 1 === example1A.php: example1B.php: The output is "Hello World!", and that's all. === Example 2 === example2.php:

Re: [PHP] How can I chmod something with php.

2001-04-05 Thread David Robley
On Fri, 6 Apr 2001 05:45, Brandon Orther wrote: > Hello, > > I have been looking for a chmod command in the ftp functions, and there > isn't any. how can I chmod something? > > thanks > Brandon I think you need ftp_site() -- David Robley| WEBMASTER & Mail List Admin RE

Re: [PHP] fopen wierdness

2001-04-05 Thread Richard
No, you receive the handle to the file. You cannot rename the handle. http://www.latest.txt"; $fd = fopen ($filename, "r"); $contents = fread ($fd, filesize ($filename)); echo $contents; fclose ($fd); ?> Should do the trick.. or something.. Modify it or whatever. - Richard "Jerry" <[EMA

Re: [PHP] drop-down menu variables

2001-04-05 Thread Richard
You must set: some text if it's a SELECT list. Use to set an initialized text. Use .VALUE to check if it's empty or not... But beware, sometimes it forgets the contents... If you would use the JavaScript "alert(text)" function... - Richard ""Joao Monteiro"" <[EMAIL PROTECTED]> wrote in mess

Re: [PHP] MySQL (about 1 database, many tables)

2001-04-05 Thread Richard
Well, that was what I wrote in my post.. I don't get this MySQL that well, and I didn't find that row very logical at all. But I got this email about it, so I will read it and keep on reporting. - Richard "Lindsay Adams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTE

RE: [PHP] better functionality in query ?

2001-04-05 Thread Jason Lotito
> > > I'm in process of creating a online whitepages directory for > > > a small town phone company and I am having a little difficulty > > > in refining my selection. My search form has two fields; last > > > and first name. I would like to be able to have more of a wild > > > card approach and s

Re: [PHP] "YourName.BEST321.com" FREE§K¶O°ì¦W !!!!!

2001-04-05 Thread David Robley
On Thu, 5 Apr 2001 23:46, Zeus wrote: > I somehow got a feeling, someone is purposely, selling the php-general > list to some spam companies ;P > > - Original Message - > From: Water <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, April 05, 2001 6:12 PM > Subject: [PHP] "Y

Re: [PHP] fopen wierdness

2001-04-05 Thread Steve Werby
"Jerry" <[EMAIL PROTECTED]> wrote: > im trying to fopen a url with something like to following : > > fopen("something.com/something.txt", r); > > this returns a "0" If you're trying to open an external file make sure you prepend the URL with 'http://'. If that's a local file and it's not finding

Re: [PHP] array speed

2001-04-05 Thread Yasuo Ohgaki
Just make sure you use foreach() instead of while() when you loop many times. foreach() is roughly 50% faster when I benched them. And never pass type other than object or array. foreach() simply dose not work with error message. (i.e. You will get 'server not found or dns error' or empty output

[PHP] fopen wierdness

2001-04-05 Thread Jerry
im trying to fopen a url with something like to following : fopen("something.com/something.txt", r); this returns a "0" now when i rename the doc to something.htm, ill get the contents? Jerry Bonner Systems Analyst / Web Development - email: [[EMAIL PROTECTED]

Re: [PHP] foreach ?!

2001-04-05 Thread Yasuo Ohgaki
> if ($mem_obj->home_email1!=='') > $vars["home_email1"] = " value=$mem_obj->home_email1>"; I think I don't understand what you really want to do. Anyway what's $mem_obj? Does $mem_obj->home_email1 have $HTTP_POST_VARS['home_email1'] before you test it? Sound like this is the cause to

Re: [PHP] better functionality in query ?

2001-04-05 Thread Joe Stump
NOTE(!): LIKE '%foo%' DOES NOT SCALE. It looks like you are making a phone book, which could get to be a lot of numbers. On the other hand 'foo%' oddly scales to hundreds of thousands of records without any problems (make sure it's key'd!). Which should work fine in your instance - just have peop

Re: [PHP] Read one word in file

2001-04-05 Thread Chris Fry
You might want to use:- $aryQbuff = file("/pathto/filename", "r"); You will then have each line of the file in an array. Then:- $intNumLines = count($aryQbuff); for($i=0;$i<=$intNumLines;$i++) { $intQnum = explode(".", $aryQbuff[$i]); // $intQnum now has the question number in it //

Re: [PHP] scramble the code

2001-04-05 Thread Plutarck
Use either $HTTP_GET_VARS to see only data submited with get, or only $HTTP_POST_VARS for data submited with POST. If it exists in post but not get, it should _not_ be shown in your browser. But just because something _should_ do something doesn't mean it will. For every correct behavior there i

Re: [PHP] how to return strings from functions?

2001-04-05 Thread Toby Butzon
If you typecast the string to a numeric type somewhere between setting $result to '1234 - the number', you WILL get the typecasted value, which would be the integer 1234. This may explain why you're only getting the number at the beginning of the string. Now, the question is: is there a typecast?

Re: [PHP] Read one word in file

2001-04-05 Thread Joe Stump
This is how I would do it ... --Joe On Thu, Apr 05, 2001 at 04:50:37PM -0700, Andrew V. Romero wrote: > I have a php script that reads a file that looks something like this: > > 1. Question One goes here: > 2. Question two goes here: > > I need someway to have the script just read either t

RE: [PHP] better functionality in query ?

2001-04-05 Thread Jerry Lake
Damn, if I'd a known it was that easy ;) Thanks for the help, works great now. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jason Lotito [mailto:[EMAIL PROTECTE

[PHP] Read one word in file

2001-04-05 Thread Andrew V. Romero
I have a php script that reads a file that looks something like this: 1. Question One goes here: 2. Question two goes here: I need someway to have the script just read either the 1. or just the 1 When I first made the script I just had the program read the line using $questionBuffer = fgets($w

Re: [PHP] BUG - Someone else please verify B4 I file

2001-04-05 Thread Plutarck
Sure. It's an "environment variable", so it should always be set, even if it is empty. It's just a matter that all variables are declared, THEN their values are assigned. That's how C works, and that's what PHP is built in, so that's the behavior. It makes it more standard with other application

Re: [PHP] MySQL (about 1 database, many tables)

2001-04-05 Thread Lindsay Adams
If that query did not work, then maybe the user that you are connecting to the database as does not have table create privileges? The syntax of the query is correct I am a little confused why you are using a text type for those columns And you can probably stand to use unsigned for UiD, since I d

Re: [PHP] MySql & PHP - Looking for the right command

2001-04-05 Thread Joe Stump
This is how you can do it (just tried it on my news with my news categoryID's) i'll modify slightly for your purpose with psuedo code ... SELECT carType,count(carType) FROM cars GROUP BY carType; --Joe On Fri, Apr 06, 2001 at 11:28:00AM +1200, YoBro wrote: > Hello, > > I have a site that list

[PHP] MySQL (about 1 database, many tables)

2001-04-05 Thread Richard
Greetings. As "Frank K" wrote for some days ago, I was into the same thing, but I need help with the following: I am creating a messaging central, which is quite about the same as a web community if you like, or whatever. The thing is, I need to save all the users, mailboxes and login dates..

[PHP] MySql & PHP - Looking for the right command

2001-04-05 Thread YoBro
Hello, I have a site that lists cars in a MySql database. I want to display on a page how many makes of each are in the database (Under the feild make) Like: Honda (30)//Then links to the honda page etc Toyota (25) Ford (7) Do you know what I mean. I know how to produce results from MySq

[PHP-CVS] cvs: CVSROOT / avail

2001-04-05 Thread Thies C. Arntzen
thies Thu Apr 5 16:25:45 2001 EDT Modified files: /CVSROOTavail Log: add karma Index: CVSROOT/avail diff -u CVSROOT/avail:1.139 CVSROOT/avail:1.140 --- CVSROOT/avail:1.139 Thu Apr 5 08:32:44 2001 +++ CVSROOT/avail Thu Apr 5 16:25:45 2001 @@ -5

Re: [PHP] about php.ini

2001-04-05 Thread eschmid+sic
On Fri, Apr 06, 2001 at 12:53:50AM +0200, Christian Reiniger wrote: > On Thursday 05 April 2001 20:30, you wrote: > > i'm would to know if there is a doc that give all php.ini possiblities > > with all variables that can be set or something like that > > Yes. Most people call it "PHP Manual" Th

Re: [PHP] Directory(parent) Structure

2001-04-05 Thread Chris Anderson
funny thing is, I thought to try it, but thought it looked too strange to work ^_^ - Original Message - From: "Jack Dempsey" <[EMAIL PROTECTED]> To: "Chris Anderson" <[EMAIL PROTECTED]> Cc: "PHP" <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 7:06 PM Subject: Re: [PHP] Directory(parent

[PHP] How can I chmod something with php.

2001-04-05 Thread Brandon Orther
Hello, I have been looking for a chmod command in the ftp functions, and there isn't any. how can I chmod something? thanks Brandon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the li

Re: [PHP] How can I make this smaller

2001-04-05 Thread Lindsay Adams
On 4/5/01 3:56 PM, "Matt McClanahan" <[EMAIL PROTECTED]> wrote: > On Thu, Apr 05, 2001 at 01:40:54PM -0700, Richard Kurth wrote: > >> Is there another way to write this I would like to make it smaller >> also How would I write it so it is a function and I would be able to use all >> the data thr

Re: [PHP] How can I make this smaller

2001-04-05 Thread Chris Anderson
Cool, not my thread, but i never knew about the list function. /me needs to read up an arrays more i guess - Original Message - From: "Matt McClanahan" <[EMAIL PROTECTED]> To: "Richard Kurth" <[EMAIL PROTECTED]> Cc: "PHP" <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 6:56 PM Subject:

Re: [PHP] Directory(parent) Structure

2001-04-05 Thread Jack Dempsey
Sure .. = parent ../.. = parent of that etc... / = root you can get to any directory on your server by using a combination of .. and directory names, or, and this is often a good idea, you can just specify the location from root, for example /path/to/my/file that way if you move the file with

Re: [PHP] Directory(parent) Structure

2001-04-05 Thread Joe Stump
../../../../../../../ -> ../n or chdir(); --Joe On Mon, Apr 02, 2001 at 06:44:30PM -0400, Chris Anderson wrote: > I know using ../ in a path moves to the parent directory. But is there a way to move >back farther then that? /*

Re: [PHP] PHP and CVS

2001-04-05 Thread Joe Stump
This is what we use at work - it's a web frontend to RCS. It works great and we have employees all over the country (and world) using it from one location. It even publishes to the main server via rsync once you want to make your changes live (based on web editing ... but would work for other ap

RE: [PHP] about php.ini

2001-04-05 Thread Jason Lotito
> > On Thursday 05 April 2001 20:30, you wrote: > > Hi all, > > > > i'm would to know if there is a doc that give all php.ini possiblities > > with all variables that can be set or something like that > > Yes. Most people call it "PHP Manual" > > -- > Christian Reiniger > LGDC Webmaster (http://s

[PHP] Directory(parent) Structure

2001-04-05 Thread Chris Anderson
I know using ../ in a path moves to the parent directory. But is there a way to move back farther then that?

Re: [PHP] How can I make this smaller

2001-04-05 Thread Matt McClanahan
On Thu, Apr 05, 2001 at 01:40:54PM -0700, Richard Kurth wrote: > Is there another way to write this I would like to make it smaller > also How would I write it so it is a function and I would be able to use all > the data throughout the whole program every time I try the rest of the > program do

Re: [PHP] How can I send command to ftp?

2001-04-05 Thread Christian Reiniger
On Thursday 05 April 2001 20:45, you wrote: > Hello, > > While connected to ftp can I send a command to the ftp? Yes -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds. - http://www.google.com/search?q=e --

Re: [PHP] about php.ini

2001-04-05 Thread Christian Reiniger
On Thursday 05 April 2001 20:30, you wrote: > Hi all, > > i'm would to know if there is a doc that give all php.ini possiblities > with all variables that can be set or something like that Yes. Most people call it "PHP Manual" -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Goog

RE: [PHP] better functionality in query ?

2001-04-05 Thread Jason Lotito
> I'm in process of creating a online whitepages directory for > a small town phone company and I am having a little difficulty > in refining my selection. My search form has two fields; last > and first name. I would like to be able to have more of a wild > card approach and some refinement when

[PHP] How can I make this smaller

2001-04-05 Thread Richard Kurth
Is there another way to write this I would like to make it smaller also How would I write it so it is a function and I would be able to use all the data throughout the whole program every time I try the rest of the program does not see the data if(file_exists("userdata")) { $fp2=fopen ("userdata

php-general Digest 5 Apr 2001 22:42:01 -0000 Issue 610

2001-04-05 Thread php-general-digest-help
php-general Digest 5 Apr 2001 22:42:01 - Issue 610 Topics (messages 47228 through 47324): huidziekte 47228 by: Rita de Groot 47229 by: Soeren Staun-Pedersen 47230 by: Felix Kronlage 47233 by: Plutarck 47235 by: Knut H. Hassel Nielsen 47237 by:

Re: [PHP] Another include ?

2001-04-05 Thread Christian Reiniger
On Thursday 05 April 2001 15:06, you wrote: > Im trying to parse a file twice ,once to extract an include file(NOT > using the include() function) and again to parse the php code.Customer > support for my host says I can add the following line to an .htaccess > file: AddType text/x-server-parsed-h

Re: [PHP] Include / Require

2001-04-05 Thread Chris Lee
is the file localhost? because the file being localhost or remote makes a huge difference. lets assume its localhost incdex.php now, variables.php will NOT return variables, thats not what is for. it just includes the code, thats it. variables.php there you. include does NO

Re: [PHP] Apache user

2001-04-05 Thread Joe Conway
Actually no need for that if you use backticks. See http://www.php.net/manual/en/html/language.operators.execution.html#language .operators.execution Joe - Original Message - From: "Johnson, Kirk" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001

Re: [PHP] PHP and CVS

2001-04-05 Thread Martín Marqués
On Friday 06 April 2001 00:17, ..s.c.o.t.t.. [gts] wrote: > do any of you know of any nice web-interfaces to CVS > done in PHP? > > since i write code at home and at work, i wanted to maintain > a single repository for files/code that i frequently use... http://www.horde.org/chora/ -- El mejor

[PHP] PHP and CVS

2001-04-05 Thread ..s.c.o.t.t.. [gts]
do any of you know of any nice web-interfaces to CVS done in PHP? since i write code at home and at work, i wanted to maintain a single repository for files/code that i frequently use... thanks for any suggestions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

Re: [PHP] CGI ver. showing exec line

2001-04-05 Thread Thomas Deliduka
For anyone interested. I found that the Zend Optimizer is the culprit, disabling removes the output. I'm currently working on removing the optimizer for my CGI version but keeping it for my Apache install. I didn't want to maintain two .ini files but I guess I have to. On 4/4/2001 4:56 PM this

[PHP] Mail() Speed?

2001-04-05 Thread PHP User
Would opening a direct connection to sendmail be a bad thing to do in terms of speed and server time? Right now I loop through an array of email addresses, and just send them each out with mail() would something like this be better or worse in terms of the amount of time and resources it uses

[PHP] better functionality in query ?

2001-04-05 Thread Jerry Lake
I'm in process of creating a online whitepages directory for a small town phone company and I am having a little difficulty in refining my selection. My search form has two fields; last and first name. I would like to be able to have more of a wild card approach and some refinement when a user ent

  1   2   3   >