Re: [PHP] ssh

2001-05-15 Thread Christopher Ostmo
Tyrone Mills pressed the little lettered thingies in this order... How about using something like puTTY or SecureCRT? Just a side note. I also like SecureCRT, but it isn't free (which was the original request) unless you install an alternative license. It's worth the $99 to me, but the

Re: [PHP] ssh

2001-05-15 Thread Mark Maggelet
On Mon, 14 May 2001 23:29:03 -0800, Christopher Ostmo ([EMAIL PROTECTED]) wrote: Tyrone Mills pressed the little lettered thingies in this order... How about using something like puTTY or SecureCRT? Just a side note. I also like SecureCRT, but it isn't free (which was the original request)

Re: [PHP] Extensions for PHP

2001-05-15 Thread Johannes Janson
Hi, does anybody know which extension I need to connect to a MSSQL DB, and wher I could get it? go to www.php4win.de they offer a .exe with lots of extensions. hope it helps Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] What's more effecient: var on every page or simple function?

2001-05-15 Thread Zef Hemel
I'd say the first one, but if you'd use $myvar as a constant only, try this: define(MYVAR,3); Might be even more efficient ;-) btw. You can call this value like this: echo MYVAR; Zef Noah Spitzer-Williams [EMAIL PROTECTED] schreef in berichtnieuws 9dpjiu$5nu$[EMAIL PROTECTED] Which of the two

Re: [PHP] output of file contents while reading

2001-05-15 Thread David Robley
On Tue, 15 May 2001 10:38, Maree Talbot wrote: Is it possible in PHP, to open a remote file with fopen() and begin sending the contents of the file to the client before the entire file has been read from the remote source? If so, how? I've been unable to get it to work so far, probably

[PHP] php propaganda request

2001-05-15 Thread Philip Olson
Greetings PHP friends, I'm compiling a list of PHP related propaganda, please send any that you know of. Positive, Negative, Neutral ... all is welcome! ;-) Thus far : Stats :

[PHP] Needing help hear

2001-05-15 Thread Richard Kurth
I am trying to pull all the e-mail out of the database and put them in a format like this [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] this is what I have now but I don't seam to be going in the right direction. Could somebody give me a hint $sql = SELECT email FROM customers;

RE: [PHP] finding a variables name

2001-05-15 Thread Eetay Natan
Hello. you can try passing the name of the variable? i.e.: function makeJSArray($array_name) { global $$array_name $array = $$array_name; ... ... } otherwise, I don't think you can logically access the name. Consider this: $a=array(...); $b = a; makeJSArray( $b

[PHP] assign values to variables, all taken from txt file

2001-05-15 Thread Alain
Hello, I am trying to get values assigned to variables, by taking these data from a textfile. my txt file looks like that: variable1 // value1 variable2 // value2 etc... The point here is that I want to be able to get BOTH the variable name and its corresponding value.. I tried things like:

Re: [PHP] Needing help hear

2001-05-15 Thread Adaran (Marc E. Brinkmann)
Hi Richard, Richard I am trying to pull all the e-mail out of the database and put them Richard in a format like this [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] Richard this is what I have now but I don't seam to be going in the right Richard direction. Could somebody give me a

Re: [PHP] Needing help hear

2001-05-15 Thread James Holloway
Hi Richard, I *always* get this word wrong, but here goes You need to concantenate (grimace), which means (simply) add to to the variable, using .= Modify your code slightly: ? $recipient = ; $result = @mysql_query($sql); $num_rows = mysql_num_rows($result); while($myrow =

[PHP] Pushing to Multidimensional Arrays.

2001-05-15 Thread Nick Davies
How do i do this? I have tried using the array_push function without sucess and when i try this : $stack[]['id'] = $menuArray[$rowID]['id']; $stack[]['parentId'] = $menuArray[$rowID]['parentId']; $stack[]['name'] = $menuArray[$rowID]['name'];A obviously the array's internal pointer will

[PHP] RE: Macbinary? How to deal with it?

2001-05-15 Thread Dormanns Marcel
Hello Jason. I had similar problems on windows. I found out that somewhere in my script there was a fopen() and a consequent file read, which behaves different on Unix than on windows when used on binary files. I could solve this by using the b-switch with fopen(), forcing binary file (see docs

[PHP] Install Prob PHP4

2001-05-15 Thread Pete
Hi, i try to install PHP4 under Suse Linux 7.1 When i use the configure command i get the following error message: checking lex output file root... ./configure: lex: command not found configure: error: cannot find output from lex; giving up this is the command i used: ./configure

[PHP] RE: Needing help hear

2001-05-15 Thread Tim Ward
I think you want $recipient .= $myrow[email] . ,; although that does leave a comma at the end. You can just knock the last character off the end or , more elegantly, $recipient = array(); while ($myrow = mysql_fetch_array($result)) $recipient[] = $myrow[email];

Re: [PHP] Needing help hear

2001-05-15 Thread elias
sure it won't like that! patch the while{} body and make it look like: $recipient .= $myrow[email] . ,; but better initialize the $recipient to before the while loop and after the while loop do remove the last trailing , -elias http://www.eassoft.cjb.net Richard Kurth [EMAIL PROTECTED]

Re: [PHP] Multiple ASP 2 PHP conversion

2001-05-15 Thread elias
yes, almost same for MS platforms with batch files: converall.bat: for %%a in (*.php;*.php3) DO asp2php %%a eof -elias http://www.eassoft.cjb.net Brandon Orther [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I found asp2php to be a great tool. Does

[PHP] This newsgroup

2001-05-15 Thread elias
Just wondering... That the first newsgroup i ever joinedand I noticed that it hold almost 100,000 message w/o deleting old one and keeping new ones... How much can it hold? How much it's owner will allow it to hold messages? Just wondering again... ;) -elias -- PHP General Mailing List

Re: [PHP] assign values to variables, all taken from txt file

2001-05-15 Thread Tobias Talltorp
From what I could see you want variable variables $value = $line[0]; $variable = $line[1]; $$variable = $value; // Tobias Alain [EMAIL PROTECTED] wrote in message 9dqrh1$23a$[EMAIL PROTECTED]">news:9dqrh1$23a$[EMAIL PROTECTED]... Hello, I am trying to get values assigned to variables, by

Re: [PHP] Recursively create directories

2001-05-15 Thread Adam Wright
This should do what you want... $dir = dir1/dir2/dir3/dir4; $dir_array = explode(/,$dir); $full_path = ; foreach($dir_array as $current_dir) { $full_path .= /$current_dir; if (!is_dir($DOCUMENT_ROOT . $full_path)) { mkdir($DOCUMENT_ROOT./ .$full_path,0700); } } adamw -

[PHP] File pointers

2001-05-15 Thread Steve Wade
Any easy way to make the file pointer go up one line in a text file? (I am thinking of using ftell(), then working out the length of the line, and then fseek()?) Thanks :-) swadie ~~~ Steve Wade Youth Outreach Coordinator Fusion Australia Ltd

Re: [PHP] assign values to variables, all taken from txt file

2001-05-15 Thread Alain
So now my code looks like: --- $configuration_data = file(configuration.txt); for($index=0; $index count($configuration_data); $index++) { $line = explode( // ,$configuration_data[$index]); $value = $line[0]; $variable = $line[1]; $$variable = $value; echo

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

2001-05-15 Thread Zef Hemel
$string = preg_replace(/[\\\*\+\-;]/s,,$string); I think, you might have to escape the ; too Zef elias [EMAIL PROTECTED] schreef in berichtnieuws 9dr733$knl$[EMAIL PROTECTED] Hello, Maybe RegExps are still my point of weakness...but I still like them as much as I like the Self-Reference

RE: [PHP] php4 phplib problems

2001-05-15 Thread Matt Williams
Hi is anyone using phplib with php4? yes I seem to be unable to get it working on a win98 machine with php4.0.5 with apache or PWS? I have been using it with php3 before successfully Please help I am missing something obvious? I would suggest searching the phplib archives. Using

RE: [PHP] PHP4 and MySQL on Macintosh

2001-05-15 Thread Andrew Hill
Andy, Go Mac OS X - and roll your own install. I notice you are using ODBC in another post - there is a HOWTO at www.iodbc.org for compiling PHP, Apache, and iODBC (ODBC Driver Manager) under Mac OS X. Let me know if you run into problems. Best regards, Andrew Hill Director of Technology

RE: [PHP] ODBC connect

2001-05-15 Thread Andrew Hill
Andy, What information are you trying to get? If nr and name are fields that you want values for, then odbc_fetch_row() or odbc_fetch_into() should work fine. If you are looking for column information, check out odbc_field_name() and odbc_field_num() http://www.php.net/manual/en/ref.odbc.php

RE: [PHP] indexing records

2001-05-15 Thread Robert V. Zwink
Create another table in your database called category with columns, id and title, each record in category table should be something like: 1 Iran 2 Florida 3 Family 4 Friends Then add a column to you picture table called category_id, store the id of each category in the

RE: [PHP] This newsgroup

2001-05-15 Thread Jason Lotito
This is not a Newsgroup. It is a Mailing List. That means ALL the emails are stored on your computer. So, the answer to both your questions is however much you want to keep. Jason Lotito www.NewbieNetwork.net -Original Message- From: Paulo Rocha [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] Capturing the url in the location bar

2001-05-15 Thread Thomas Deliduka
On 5/15/2001 9:27 AM this was written: Is there a way of capturing the entire url contianed in the location bar within a variable? $location = getenv(HTTP_HOST) . getenv(REQUEST_URI); Or if your system handles it do this: $location = $HTTP_HOST . $REQUEST_URI; This will concatinate the

[PHP] Re: WELCOME to php-general@lists.php.net

2001-05-15 Thread dr0asif
Dear sir, I am new to php.kindly recommend me tutorials tp get started. thanks asif -- PHP General Mailing List (http://www.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] Capturing the url in the location bar

2001-05-15 Thread Jason Brooke
$variable = http://;. $HTTP_HOST. $REQUEST_URI; Is there a way of capturing the entire url contianed in the location bar within a variable? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] Re: WELCOME to php-general@lists.php.net

2001-05-15 Thread Kees Hoekzema
http://hotwired.lycos.com/webmonkey/programming/php/index.html and, for general use: http://www.php.net/manual And this one can be usefull too. http://marc.theaimsgroup.com/?l=php-general http://marc.theaimsgroup.com/?l=php-generalw=2r=1s=tutorialsq=b Kees - Original Message - From:

RE: [PHP] Re: WELCOME to php-general@lists.php.net

2001-05-15 Thread Sandeep Hundal
have a look at : http://www.hotscripts.com/PHP/ and www.devshed.com and zend.com sunny -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 15 May 2001 14:45 To: [EMAIL PROTECTED] Subject: [PHP] Re: WELCOME to [EMAIL PROTECTED] Dear sir, I am new to

RE: [PHP] Bound comboboxes on form

2001-05-15 Thread Robert V. Zwink
A hidden form element to store the value of the second select box? Use javascript to update a hidden form element in the original form, that way when you submit the form you will have the newly selected element. Sounds kind of strange though. What if you on change Combo 1 submitted the whole

Re: [PHP] How to let PHP cgi find oracle TNS?

2001-05-15 Thread Brian S. Dunworth
At 10:09 AM 5/15/01 +0800, Jude Chen wrote: Warning: Unable to connect to ORACLE (ORA-12154: TNS:could not resolve service name) in E:\website\yktest\web\includes\db\dbenv.php on line 4 But I have the correct TNS, through which I can connect to Oracle using SQL*PLUS, configured on the machine,

[PHP] super global variable

2001-05-15 Thread Sigitas Paulavicius
Is it possible to declare some kind of super global variable in PHP, which would be avaliable to all later PHP scripts/processes? I suppose I could use a database or filesystem. But in this case of mine I need to store and retrieve some values very fast and consuming as little resourses as

Re: [PHP] Install Prob PHP4

2001-05-15 Thread Johannes Janson
Hi, checking lex output file root... ./configure: lex: command not found configure: error: cannot find output from lex; giving up you have to go into YaST an install a programm called lex. It might be that you also need flex. Just install lex and see if you get more errors. hope it helps

[PHP] Compressing uploads

2001-05-15 Thread Matt Williams
Does anyone have an example of compressing file uploads or files in general? Basically some big files are being uploaded and I want to be able to zip/tar them to cut down on disc usage. I've tried playing with the zlib functions but haven't had much/any success at adding files into archives. The

Re: [PHP] super global variable

2001-05-15 Thread Alexander Wagner
Sigitas Paulavicius wrote: Is it possible to declare some kind of super global variable in PHP, which would be avaliable to all later PHP scripts/processes? As long as you use one server only (no load-balancing), you can use shared memory. http://php.net/shmop Try phpbuilder.com or google to

RE: [PHP] Multi Dimensional Arrays?

2001-05-15 Thread Robert V. Zwink
You are on the right track but doing something wrong: You are correctly assigning a string to an array: //Main Menu Array $main_menu[0] = Menu 1; //Represents the name of the menu But then you are taking that string one character at a time and replacing it with invalid data: //Menu 1 Array

[PHP] detecting HTML tags

2001-05-15 Thread bill
Is there a way to detect the presence of HTML tags? I don't want them stripped out, I just want to know if a string contains them. I'm rolling my own mailing program and want it to detect the HTML if present and send it appropriately. kind regards, bill hollett -- PHP General Mailing List

[PHP] Integer size limitations

2001-05-15 Thread Richard Ellerbrock
Please copy me on responses. TIA. I am trying to do some IP address arithmetic using php, but am running into problems because the biggest number that php can handle is 32 bits signed. No good for IP addresses. Try the following: echo 2473473024 127; // gives 0 - correct echo

RE: [PHP] This newsgroup

2001-05-15 Thread Robert V. Zwink
Jason Lotito, This mailing list is also a newsgroup you can access it via newserver hosted by php group. My guess is that elias is accesses the mailing list via the news-server. From http://www.php.net/support.php Mailing Lists There are many PHP-related mailing lists available. Most of them

RE: [PHP] Multi Dimensional Arrays?

2001-05-15 Thread Romulo Roberto Pereira
Anyone knows how to determine how many levels has an array? TIA Rom -Original Message- From: Robert V. Zwink [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 10:30 AM To: Brandon Orther; PHP User Group Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Multi Dimensional Arrays? You are

[PHP] NES/iPlanet Web server won't start after php make install (Solaris 7 / 8)

2001-05-15 Thread EGGrant
I am trying to configure PHP4 to be used with Netscape Enterprise 3.6 with NSAPI, LDAP, and SYBASE-CT on a Solaris 2.7 machine. The error from the NES admin tool is pclose() failed. (2: unknown early startup error) Error

Re: [PHP] php on PWS

2001-05-15 Thread Phil Driscoll
On Tuesday 15 May 2001 16:18, Matt Davis wrote: I am trying to install PHP 4.05 CGI onto my WIN 98 machine which is running PWS once have followed all the instructions but when I try to run a php script I get a HTTP 500 error. I have checked that my registry entry is pointing to the right

RE: [PHP] PHP4 and MySQL on Macintosh

2001-05-15 Thread Michael O'Neal
On Mon, 14 May 2001 17:49:08 -0400, Hoover, Josh [EMAIL PROTECTED] wrote: Andy, I believe you can run PHP on Mac OS with the use of WebTen by Tenon (http://www.tenon.com/products/webten/). MySQL does not run on Mac OS. You can run both PHP 4 and MySQL on Mac OS X. Since it sounds like

Re: [PHP] need some ideas here...

2001-05-15 Thread Christian Dechery
At 20:32 14/5/2001 -0500, Ben Gollmer wrote: If you have an account on a remote host, you can always do something like this: ?php include(http://www.remotehost.com/~myaccount/mailfunction.inc;); mymail($to, $mailbody); ? where mailfunction.inc has the mymail function defined

Re: [PHP] detecting HTML tags

2001-05-15 Thread Christian Reiniger
On Tuesday 15 May 2001 16:39, bill wrote: Is there a way to detect the presence of HTML tags? I don't want them stripped out, I just want to know if a string contains them. I'm rolling my own mailing program and want it to detect the HTML if present and send it appropriately. if (strstr

RE: [PHP] php on PWS

2001-05-15 Thread scott [gts]
even though i dont use PWS, the only time i seem to get 500 errors is when i mistype the a filename and the server cannot find the file so that's probably where your problem lies. triple check that PHP is working and installed correctly. then triple check that the server works OK (try to

Re: [PHP] need some ideas here...

2001-05-15 Thread Christian Dechery
At 22:40 14/5/2001 -0700, Ethan Schroeder wrote: I don't know how you can find sendmail on that system if you don't have telnet access. Try writing a script that does an exec(which sendmail) and see if it tells you. I doubt it will, though. Otherwise try different sendmail locations:

Re: [PHP] detecting HTML tags

2001-05-15 Thread James Holloway
Hi Bill ? if (preg_match(/([\])([^\]{1,})*([\])/i, $string)) { echo Houston, we have a problem.; } ? James. bill [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there a way to detect the presence of HTML tags? I don't want them stripped out, I just

Re: [PHP] ssh

2001-05-15 Thread Gyozo Papp
As others metioned, you feel free to use Putty. If it doesn't fit your needs, I 've a fairly old SSH extension to Teraterm Pro, i can post it to you. But it takes a little time to find it. - Original Message - From: Dennis Gearon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 2001.

Re: [PHP] detecting HTML tags

2001-05-15 Thread bill
Yes, I thought similarly. But so far, neither works. $string=blah x4 blah; if (strlen($string) != strlen(strip_tags($string))){ echo html; } else { echo text; } The above still echos html. kind regards, bill Jack Dempsey wrote: $text = 50 100 + 240; not html... would want

Re: [PHP] server alias

2001-05-15 Thread Michael Kimsal
$HTTP_HOST ? Not sure - don't feel like setting up a wildcard... :) Joe Stump wrote: Say i have a server foobar.com and in my httpd.conf i have *.foobar.com as a ServerAlias in my virtualhost is there a common PHP var that will give me the domain someone actually types in? $SERVER_NAME

RE: [PHP] ssh

2001-05-15 Thread scott [gts]
you can get a really great SSH program (free for non-commercial use) at http://ssh.com/ i use a registered copy here at work, but i downloaded a free copy for use at home... it's the best client i've found so far. even supports SFTP. -Original Message- From: Gyozo Papp [mailto:[EMAIL

Re: [PHP] Recursively create directories

2001-05-15 Thread Philip Hallstrom
If you're on unix, and don't mind a system call you could do: system(/bin/mkdir -p $dir); From the man page for mkdir. -p Create intermediate directories as required. If this option is not specified, the full path prefix of each operand must already exist. Intermediate directories are

Re: [PHP] Recursively create directories

2001-05-15 Thread Markus Fischer
- Original Message - From: Philip Hallstrom [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 7:01 PM Subject: Re: [PHP] Recursively create directories foreach($dir_array as $current_dir) { if(! is_dir($DOCUMENT_ROOT./.$current_dir) ) {

[PHP] Image problem

2001-05-15 Thread Michael O'Neal
Hi, I'm still pretty new to PHP, and would like help on a solution for a problem I have. I have a website that has 6 different sections. (about, news, buying, selling, community, and relocation) Each of the sections has it's own subfolder in the root directory of the website. (/about,

RE: [PHP] Image problem

2001-05-15 Thread Jerry Lake
This is how I fixed that same issue in the head of my page snip if (ereg (new, $PHP_SELF)) { $header = img src=location/of/header/image; $title = www.website.com - What's New; } elseif (ereg (products, $PHP_SELF)) { $header = img src=location/of/header/image;

Re: [PHP] detecting HTML tags

2001-05-15 Thread Christian Reiniger
On Tuesday 15 May 2001 18:25, Jack Dempsey wrote: $text = 50 100 + 240; not html... would want regex's i would think, or the striptags version someone sent before... Well, then preg_match ('/[a-z]/i', $text) should work. Is there a way to detect the presence of HTML tags? I'm

[PHP] Replacing JavaScript functionality with PHP

2001-05-15 Thread Richard Notley
Hi, I'm rewriting some web pages trying to replace a lot of JavaScript with PHP (before including some mySQL for even more dynamic content); however, I am having a little difficulty in one area... Currently, if a page is displayed in the main window for the site, then a menu is displayed on the

[PHP] Directory - exist or not ? :)

2001-05-15 Thread Scream
Hi, I've got a one simple question. How I can check directory exist or not ? Plz, help me :) TIA ! -- regards, - scream - scream(at)w.pl ICQ#46072336 ||| GG#480681 Artificial Reins Productions -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Directory - exist or not ? :)

2001-05-15 Thread James, Yz
Hi There, ? $dir_to_check = /this/dir; if (!is_dir($dir_to_check)) { echo No directory here; } else { echo Bingo.; } ? James. Scream [EMAIL PROTECTED] wrote in message 9drq8v$ngb$[EMAIL PROTECTED]">news:9drq8v$ngb$[EMAIL PROTECTED]... Hi, I've got a one simple question. How I can

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

2001-05-15 Thread Gyozo Papp
Hello, while I was reading the post from 'elias', a fairly old question came in my mind which I've not get any answer yet. Maybe you can do it. There is a function quotemeta() which escapes all special regexp character such as: . \ + * ? [ ^ ] ( $ ) with a '\' except one the '|' pipe.

[PHP] Using the key in documents (Newbie needs help)

2001-05-15 Thread Marc Johnson
Greetings fellow devs! I am new to PHP (having tried my hand at running ASP/SQL here at the house. No, I didnt chose ASP, it just happened to be the software I had when I decided to mess with dynamic content. My problem is probably really simple. I am learning to use PHP via online documents

[PHP] Newbie needs help! '' closing PHP Tag

2001-05-15 Thread Marc Johnson
Greetings fellow devs! I am new to PHP (having tried my hand at running ASP/SQL here at the house. No, I didnt chose ASP, it just happened to be the software I had when I decided to mess with dynamic content. My problem is probably really simple. I am learning to use PHP via online documents

Re: [PHP] Newbie needs help! '' closing PHP Tag

2001-05-15 Thread Jack Dempsey
Marc: should not close php ? will can you paste in the script so i can see what you mean? -jack Marc Johnson wrote: Greetings fellow devs! I am new to PHP (having tried my hand at running ASP/SQL here at the house. No, I didnt chose ASP, it just happened to be the software I had when

RE: [PHP] MYSQLDUMP

2001-05-15 Thread Robert V. Zwink
mysqldump --opt -u username -p password databasename filename.sql Try mysqldump --help for additional options, or the MySQL manual. Robert Zwink -Original Message- From: TopFive [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 5:06 PM To: [EMAIL PROTECTED] Subject: [PHP]

[PHP] Missing Records

2001-05-15 Thread William Poarch
Hi all, I have a setup where I populate one table as a temporary holding place for data. When the user's session is complete, I want to transfer all that data to a similar, permanent table. The strangeness is this - most of the time the data is all transferred fine, but sometimes only a few

Re: [PHP] super global variable

2001-05-15 Thread Chris Lee
this is something I never needed todo, but it works. ?php // www.miningsurplus.com/counter.php session_id('0a99a548c57c06306e408cf44b2d5d10'); session_start(); if (!isset($HTTP_SESSION_VARS['counter'])) { $counter = 0; session_register('counter'); }

Re: [PHP] pulling data out of a string

2001-05-15 Thread Chris Lee
this will remove the www plus the top level domain ?php $site = 'www.somesite.home.com'; $site = str_replace('www.', '', $site); $site = explode('.', $site); $site = array_pop($site); $site = implode('.', $site); // somesite.home ? this will remove the first host and the top level

Re: [PHP] Passing vars between functions (with POSTs)

2001-05-15 Thread Chris Lee
this will ensure that the variable is a POST var vs a GET var too... function test() { global $HTTP_POST_VARS; echo $HTTP_POST_VARS['login']; } -- Chris Lee [EMAIL PROTECTED] Miguel Ribeiro [EMAIL PROTECTED] wrote in message 9dpgkk$mdb$[EMAIL PROTECTED]">news:9dpgkk$mdb$[EMAIL

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

2001-05-15 Thread CC Zona
In article 00c301c0dd69$a64de040$6a45c5d5@jaguar, [EMAIL PROTECTED] (Gyozo Papp) wrote: There is a function quotemeta() which escapes all special regexp character such as: . \ + * ? [ ^ ] ( $ ) with a '\' except one the '|' pipe. Forget quotemeta(). Use preg_quote() instead. -- CC

Re: [PHP] This newsgroup

2001-05-15 Thread Henrik Hansen
Paulo Rocha [EMAIL PROTECTED] wrote: I am also curious to know how much disk space is php.general taking. well i can say i have 35 MB mails in 2 months in around 10200 mails, so you can do the math yourself :) -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To

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

2001-05-15 Thread Gyozo Papp
Ok, now it's time to get familiar with preg? If this stands, can you give me a link to a good tutorial with tons of examples beside the PHP manual? The most effective way to learn is to see how it works, I think. - Original Message - From: CC Zona [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Receiving a text stream

2001-05-15 Thread Chris Lee
web browsers can only request data (GET / HTTP/1.1) data can not be pushed to them (except Netscape, dont go there). you can send all the data you want to an IP but the browser only opens connections, it doesnt accept connections, the data will be rejected. if you were to write an app in VB

RE: [PHP] Change 'key' names of an associative array.

2001-05-15 Thread Altunergil, Oktay
Yes. But I want to change the name of the key, not the value. Plus I want to be able to do this without creating an extra key/value pair for each conversion I do. oktay -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 4:22 PM To: Altunergil,

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

2001-05-15 Thread Gyozo Papp
I mean that it seems to me most of the mailers use preg funtions instead of simple ereg functions. Up to now I used only the latter ones. I still know where I can find documantation, I just go further and ask some link to learn more about PCRE functions. I'm sorry if you misunderstand it.

[PHP] Can't connect to mysql after applying MS Hotfix

2001-05-15 Thread Tyler Longren
Hello everybody, Lastnight, I was building a site. Multiple SQL queries were being made on every page. Everything worked nice and smooth. I downloaded and applied the patch for MS01-026 which effects IIS 4.0 and 5.0. I rebooted after applying the hotfix, and after that, NONE of my php

[PHP] WTF: mail() is not supported in this PHP build ???

2001-05-15 Thread Michael Geier
I have never seen this problem (and this isn't my first install)... I am using: RedHat 7.1 php4.0.4pl1 qmail 1.03 I thought the problem was the fact that I didn't have sendmail installed at all (had the qmail sendmail wrapper in place though; ln -s /var/qmail/bin/sendmail

Re: [PHP] WTF: mail() is not supported in this PHP build ???

2001-05-15 Thread Alexander Wagner
Michael Geier wrote: RedHat 7.1 php4.0.4pl1 Installed from source? regards Wagner -- Some guy hit my fender, and I told him, 'Be fruitful and multiply,' but not in those words. - Woody Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP] load balancing...

2001-05-15 Thread Johnson, Kirk
We are doing it here, although I am not involved in the server setup so I can't give you much help. I guess the main thing is setting up the session storage mechanism. If you use session files, then the load balancer needs to add a cookie so that requests in multi-page applications always go to

[PHP] Crypt is not supported in this build??? 4.0.5

2001-05-15 Thread Brandon Orther
Hello, I just installed 4.0.5 on IIS and it is telling me that crypt is not supported in this build. Does anyone know why? Thanks For Da Help Brandon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] How to check aBc different from abc ?

2001-05-15 Thread Bass¨Ð¦õªv
thx ^_^ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] nested functions

2001-05-15 Thread Johannes Schmiderer
Is there no way to access the $x within the inner function: function outer() { $x = 50; function inner() { echo $x; } inner(); } Global in the inner function does not work. I do not want to have $x global for all. Hannes Schmiderer -- PHP General Mailing List

[PHP] Help!! ftp problems

2001-05-15 Thread galkin
Hi I'm having trouble using php to ftp a file from a form. I've scoured the lists and documentation but the answer elludes me. I put in a MAX_FILE_SIZE variable, looked in the php.ini at the tmp_dir (left blank to default to the system temp dir), chmod to 1777 of that temp dir. What am I not

RE: [PHP] Change 'key' names of an associative array.

2001-05-15 Thread Mark Maggelet
reset($array); while(list($key,$value)=each($array)){ $array[strtoupper($key)]=$value; unset $array[$key]; } On Tue, 15 May 2001 16:19:41 -0400, Altunergil, Oktay ([EMAIL PROTECTED]) wrote: Yes. But I want to change the name of the key, not the value. Plus I want to be able to do

[PHP] PHP and GD on a Redhat linux box

2001-05-15 Thread scott [gts]
i had compile problems for PHP + GD on a linux box. my best guess is that GD requires X11 support to work properly, and in turn blows up the PHP compile when GD cannot find the 'X11' library since the box is a server, bells and whistles like Xwindows are not installed figured i'd

Re: [PHP] nested functions

2001-05-15 Thread Gyozo Papp
why don't you pass $x as an argument? - Original Message - From: Johannes Schmiderer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 2001. május 15. 23:41 Subject: [PHP] nested functions Is there no way to access the $x within the inner function: function outer() { $x = 50;

RE: [PHP] PHP and GD on a Redhat linux box

2001-05-15 Thread Brandon Orther
I do not believe this is the reason that you are having problems. I have compiled GD on many Redhat machines without X11 Brandon -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 2:44 PM To: php Subject: [PHP] PHP and GD on a Redhat linux box

RE: [PHP] easy one

2001-05-15 Thread Johnson, Kirk
Just to add a couple details. On the first page request, PHP sets the constant SID as well as the cookie. If the user has cookies disabled, then SID is also set on all following page requests. If cookies are enabled, then the cookie PHPSESSID (if you stick with the default name) exists on all

RE: [PHP] PHP and GD on a Redhat linux box

2001-05-15 Thread scott [gts]
when i checked the 'debug.log' file after it broke, it said : gcc -o conftest -g -O2 [...snip ] -lXpm -L/usr/X11R6/lib/ -lX11 15 /usr/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status perhaps you had the X11 libraries even though you didnt have the actual server binaries. or do

[PHP] coding for 'no match found'

2001-05-15 Thread midget2000x
This is a simple yet fundamental programming question I am hoping somebody will have the patience to explain... I have a mysql database with the email field as the key. Before inserting an new record to it I want to check if there is already a record with that e-mail. This I can do fine. But

RE: [PHP] coding for 'no match found'

2001-05-15 Thread Johnson, Kirk
See http://www.php.net/manual/en/function.mysql-num-rows.php Kirk -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 3:00 PM To: [EMAIL PROTECTED] Subject: [PHP] coding for 'no match found' This is a simple yet fundamental programming

[PHP] RE: it didn't upgrade to 4.0.5

2001-05-15 Thread Joseph Bannon
What can I delete on my server to do a fresh install? I'm trying to upgrade php and it's not working. Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] ANN:Visual PHP Studio 1.0 Field Test 1 B156 New release!

2001-05-15 Thread José León Serna
Hello: The next release of Visual PHP Studio is out!!!. I have reserved the domain visualphpstudio.com and I have moved the web site to a new host to avoid some problems with the old one. The most exciting feature on this release is the ability to work with HTML Forms, a new palette contains

Re: [PHP] How to check aBc different from abc ?

2001-05-15 Thread Steve
$st1 = abc; $st2 = abc; strcmp($st1, $st2);// 0 if equal, -1 or 1 if not equal (depending on which one is larger) Bass¨Ð¦õªv [EMAIL PROTECTED] wrote in message 9ds76j$9mv$[EMAIL PROTECTED]">news:9ds76j$9mv$[EMAIL PROTECTED]... thx ^_^ -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Image problem

2001-05-15 Thread Michael O'Neal
On Tue, 15 May 2001 10:23:39 -0700, Jerry Lake [EMAIL PROTECTED] wrote: This is how I fixed that same issue in the head of my page snip if (ereg (new, $PHP_SELF)) { $header = img src=location/of/header/image; $title = www.website.com - What's New; } elseif (ereg (products,

[PHP] SSL and CURL question --

2001-05-15 Thread phpman
CURL is realy cool, lets me do easy socket stuff, especially with ssl, which leads me to my question: How on God's green earth do I send more then simple requests to a SSL server? Here's my basic request... POST /apps.here/xml/Rate HTTP/1.1 Content-Type: application/xml Content-Length: 1074

  1   2   >