RE: [PHP] ssh

2001-05-15 Thread Jason Murray
> >> 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 requestor was looking for free. > > I like just regu

Re: [PHP] [Win32,PHP/4.0.5] Problem with session

2001-05-15 Thread Christian Ribeaud
Hi Kirk, Thanks. But I am not sure I have understood. How to register the variables? with session_register($HTTP_SESSION_VARS["language"])? How to change the code so that it works? Thanks for your patience and have a nice day. Respects, christian "Johnson, Kirk" wrote: > With register_globals

Re: [PHP] How to change value of input on form from iframe?

2001-05-15 Thread Dezider Góra
Hi, thanks for the effort. The only thing I need is to store the value of the second combo that is inside of the iframe to the hidden textbox which is in the main form so I can send it's value with the main form for further processing. I just can't seem to find the correct syntax for this. Anybod

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 addition

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 th

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 b

[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

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: Notice the .= before $recipient = $email ? Also why, is the $num_rows in there? It's not being used for

[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 increm

[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 f

[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 --enabl

[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 PROTE

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 -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. Do

[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,

Re: [PHP] This newsgroup

2001-05-15 Thread Paulo Rocha
I am also curious to know how much disk space is php.general taking. elias wrote: > > 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

Re: [PHP] How to change value of input on form from iframe?

2001-05-15 Thread elias
argh! consider these two files man! i think i even answered you from the first post,... test1.html New Document test2.html -- New Document this is test2 -elias http://www.eassoft.cjb.net "Dezider Góra" <[EMAIL PROTECTED]>

[PHP] Recursively create directories

2001-05-15 Thread Darin Isola
hi all, does anyone have a function to recursively create directories? heres what I have so far: $dir = "dir1/dir2/dir3/dir4"; $dir_array = explode("/",$dir); foreach($dir_array as $current_dir) { if(! is_dir($DOCUMENT_ROOT."/".$current_dir) ) { mkdir($DOCUMENT_ROOT."/".$current_dir,0

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 (Sy

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 "$v

Re: [PHP] File pointers

2001-05-15 Thread Zef Hemel
for afaik the only way is to fgets($fp, 4096); Now you moved the pointer 1 line :-) Zef "Steve Wade" <[EMAIL PROTECTED]> schreef in berichtnieuws [EMAIL PROTECTED] > 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 leng

Re: [PHP] Pushing to Multidimensional Arrays.

2001-05-15 Thread Christian Reiniger
On Tuesday 15 May 2001 11:44, Nick Davies wrote: > 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]

[PHP] easy one

2001-05-15 Thread Romulo Roberto Pereira
Hello! How do I check if a session exist before I call session_start()? TIA, Rom -- PHP General Mailing List (http://www.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] still not friends with RegExps..

2001-05-15 Thread elias
Hello, Maybe RegExps are still my point of weakness...but I still like them as much as I like the Self-Reference phrases... Okay now, how can i replace all the matches of "\" , "*", "+", "-" and ";" with an empty string by calling once the preg_replace() or str_replace() or any string replace fu

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-

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. Us

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 Evange

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] still not friends with RegExps..

2001-05-15 Thread Taylor, Stewart
preg_replace does not seem to agree with '\\'. Below seems to work with ereg_replace. -Stewart ~ -Original Message- From: elias [mailto:[EMAIL PROTECTED]] Sent: 15 May 2001 23:37 To: [EMAIL PROTECTED] Subject: [PHP] still not friends with RegExps.. Hello, Maybe RegExps are still my

[PHP] Capturing the url in the location bar

2001-05-15 Thread Don Pro
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 contact the list administrators, e-mail: [EMAIL PROTECTED

RE: [PHP] Site search engine suggestion.

2001-05-15 Thread Matt Williams
Hi Try DGS Search form http://www.digitalgenesis.com Looks pretty tidy Only downside is you can't exclude directories HTH M@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list adm

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 i

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 th

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

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-general&w=2&r=1&s=tutorials&q=b Kees - Original Message - Fro

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 php.kindly

Re: [PHP] easy one

2001-05-15 Thread Adaran (Marc E. Brinkmann)
Hi Romulo, Romulo> Hello! Romulo> How do I check if a session exist before I call session_start()? check if the Cookie PHPSESSID has been set! --- EnjoY, Adaran ([EMAIL PROTECTED]) check http://www.adaran.net -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] PHP based Job Search/Board package ( like Monster.com)

2001-05-15 Thread Altunergil, Oktay
Hi , I'm going to create a local PHP job list. Before starting to code it however, I would like to know if some such package is already available as open source. Does anybody know of any job list, job board, employmen listing software prefereably in PHP? THanks. Oktay ALtunergil -- PHP Gener

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

2001-05-15 Thread Miles Thompson
First of all, WELCOME! Only you know what you need, your background and skill level. Rather than listing every possible resource here, do a search on google for PHP tutorial. Having said that Juli Meloni has some excellent tutorial material at http://www.thickbook.com There is also material a

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

2001-05-15 Thread Jason Lotito
> > Dear sir, > I am new to php.kindly recommend me tutorials tp get started. > thanks asif > www.newbienetwork.net www.phpdeveloper.org www.devshed.com www.webmonkey.com www.irc-html.com www.phpbuilder.com www.zend.com Jason Lotito www.NewbieNetwork.net -- PHP General Mailing List (http:

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 pa

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 mach

[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 poss

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 help

[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

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 (

RE: [PHP] detecting HTML tags

2001-05-15 Thread Altunergil, Oktay
Look into regular expressions. -Original Message- From: bill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 10:40 AM To: [EMAIL PROTECTED] Subject: [PHP] detecting HTML tags Is there a way to detect the presence of HTML tags? I don't want them stripped out, I just want to know

[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 2473

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 on

[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] How to change value of input on form from iframe?

2001-05-15 Thread Robert V. Zwink
Try this: window.parent.document.forms["newphone"].operatorid.value=oper_id; You probably need to target the parent window, working with IFRAME is like working with FRAMES. Robert Zwink -Original Message- From: Dezider Góra [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 8:35 AM

RE: [PHP] Multi Dimensional Arrays?

2001-05-15 Thread Robert V. Zwink
Check out the count() function in the manual http://www.php.net/count . There are some user contributed functions towards the bottom of the page that claim to count all non-null values in a multi-dimensional array. Robert Zwink -Original Message- From: Romulo Roberto Pereira [mailto:[EMA

[PHP] php on PWS

2001-05-15 Thread Matt Davis
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 place. Does anybody have any ideas how to fix this.

[PHP] Tutorial

2001-05-15 Thread Roman
Do you now where I find tutorial (not online) or some good helps for PHP-GTK+. In gtk.php.net dosn't good help. Thanx for all. roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

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 rig

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 li

[PHP] Any Golive Users?

2001-05-15 Thread Michael O'Neal
Hi, I'm thinking about doing a PHP Extension for Adobe Golive. Basically, it would be some pre-made chunks of script (MySQL calls, etc...) that you could drag and drop from a PHP palette. If anyone uses/knows Golive 5, and wants to help ( I could use it) please drop me a line. mto Michael

RE: [PHP] detecting HTML tags

2001-05-15 Thread Taylor, Stewart
You could try something like if (strlen($string) != strlen(strip_tags($string)) { // maybe some html in string } -Stewart -Original Message- From: bill [mailto:[EMAIL PROTECTED]] Sent: 15 May 2001 15:40 To: [EMAIL PROTECTED] Subject: [PHP] detecting HTML tags Is there a way to detec

Re: [PHP] Tutorial

2001-05-15 Thread Michael Kimsal
gtk.php-coder.net I think has something (might be .com) ? Roman wrote: > Do you now where I find tutorial (not online) or some good helps for > PHP-GTK+. > In gtk.php.net dosn't good help. > > Thanx for all. > > roman > > -- > PHP General Mailing List (http://www.php.net/

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: > > include("http://www.remotehost.com/~myaccount/mailfunction.inc";); > > mymail($to, $mailbody); >?> > >where mailfunction.inc has the mymail function d

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 (st

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 load

Re: [PHP] detecting HTML tags

2001-05-15 Thread Jack Dempsey
$text = " 50 < 100 + 240"; not html... would want regex's i would think, or the striptags version someone sent before... -jack Christian Reiniger wrote: > > 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

Re: [PHP] MySQL Query not working?

2001-05-15 Thread Julian Wood
You might also want to remove the comma after "url = '$url'" and try an echo mysql_error($link) to see what the problem is. Julian on 5/14/01 5:46 PM, Peter Houchin - SunRentals Australia at [EMAIL PROTECTED] wrote: > change it to > > $sql = "UPDATE CLASS_ADS > SET client_id = '$client_id',

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: /usr

Re: [PHP] detecting HTML tags

2001-05-15 Thread James Holloway
Hi Bill ]{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 want to know if a

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 x<4 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... > > wo

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 is there a common PHP var that will give me > the domain someone actually types in? > > $SERVER_NAME only give

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:[EMAI

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."/".$curr

[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, /new

RE: [PHP] Image problem

2001-05-15 Thread Jerry Lake
This is how I fixed that same issue in the head of my page if (ereg ("new", $PHP_SELF)) { $header = " then call the header in in the appropriate place in your html Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www

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?

[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 l

[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: [EMAI

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

2001-05-15 Thread James, Yz
Hi There, 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 check directory exist or not ? > Plz, help me :) TIA ! > > > -- > regards, - scream ->> scream(at)w.pl >

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. wha

[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 and

[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 and

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

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

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

2001-05-15 Thread Mark Roedel
> -Original Message- > From: Marc Johnson [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 15, 2001 1:05 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Using the > key in documents (Newbie needs help) > > > My problem is probably really simple. I am learning to use > PHP via online document

RE: [PHP] HallMark uses PHP!!!!

2001-05-15 Thread Ralph Guzman
Here is another big one that uses PHP. http://www.marketplayer.com/ They provide stocks simulation games for sites like etrade.com, and smartmoney.com, to name a few big ones. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, May 11, 2001 10:31 PM To:

RE: [PHP] php chat or customer support center

2001-05-15 Thread Robert V. Zwink
The same people who make phpMyAdmin have a chat program. From the description it sounds pretty robust http://www.phpwizard.net/projects/phpChat/ I've used the following chat program before, it was easy to setup and seemed to work just fine: http://www.phpheaven.net/projects/phpMyChat/ Robert

RE: [PHP] HallMark uses PHP!!!!

2001-05-15 Thread Cristopher Daniluk
Don't equate this to success, bigger companies use much "crappier" technologies. The technical merits of something don't necessarily reflect in the acceptance of it. We have to be 10 times better to get half the recognition! > -Original Message- > From: Ralph Guzman [mailto:[EMAIL PROTECT

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

2001-05-15 Thread Marc Johnson
My bad.. Typical am error. I have concurrent dev locations for my documents (one live/one test) since the live side is the only connected to PHP/SQL I have been doing my dev there. Of course I was a) seeing the problem in HomeSite (which will close the tag in its browe window) and b) reading the

Re: [PHP] detecting HTML tags

2001-05-15 Thread mark
bill <[EMAIL PROTECTED]> 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. > > kind re

  1   2   >