[PHP] $HTTP_SERVER_VARS

2002-05-04 Thread Kyle Gibson
Version 4.0.6, if that helps. Thanks, Kyle Gibson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SSH

2002-05-04 Thread Kyle Gibson
with the functions system(), shell_exec(), and exec(). Thanks, Kyle Gibson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $HTTP_SERVER_VARS

2002-05-04 Thread Kyle Gibson
page here: http://php.plaguenet.com/MyAdmin/phpinfo.php. Kyle Gibson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $HTTP_SERVER_VARS

2002-05-04 Thread Kyle Gibson
Whoops. It wont show unless you come from somewhere else... Go here and click the link: http://www.plaguenet.com/wreferer.php Thanks, Kyle Gibson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SSH

2002-05-04 Thread Kyle Gibson
Thanks, I'll try what you suggested. -Kyle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $HTTP_SERVER_VARS

2002-05-04 Thread Kyle Gibson
My firewall prevented me from seeing the variable in action. Ignore this. -Kyle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: HTML to mysql - from msql to html

2002-05-04 Thread Kyle Gibson
You entered data into a text area field that was entered into a mysql row. Then you tried to print it out. Try this: $content = str_replace(\n,br,$row[row_name]); echo $content; -Kyle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] weird foreach problem when calling date or getdate function,

2002-05-05 Thread Kyle Gibson
Those numbers don't look like timestamps to me (as they can't be larger than about 4294967296). What they look like is the result of some imp or perhaps even a gremlin breaking into your code and smooshing together yearmonthdayhourminutesecond, then trying to PRETEND it's a timestamp.

Re: [PHP] $HTTP_SERVER_VARS

2002-05-05 Thread Kyle Gibson
My last guess, was to turn off my Firewall (*Norton* Personal Firewall) and after that my PC returned a correct HTTP_REFERER! Exactly what I did. Funky, huh? Thanks, Kyle Gibson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SSH

2002-05-05 Thread Kyle Gibson
I've tried this, $cmd = `ftpwho`; echo $cmd; and/or $cmd = shell_exec(ftpwho); echo $cmd; But I get this error: Warning: Cannot execute using backquotes in safe mode in test.php on line 2 -Kyle -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: SSH

2002-05-05 Thread Kyle Gibson
Your ISP has safe mode turned on which means you cannot use backquotes. Read all about it at http://www.php.net/manual/en/features.safe-mode.php. I am my own ISP, techically. In the php.ini file, safe mode is off. Which is why I am curious as to why this is occuring. --- ; ; Safe Mode ;

[PHP] Re: Who's having a good hosting experience these days?

2002-05-05 Thread Kyle Gibson
My clients aren't rich big money folks but I need a PHP capable host for about $11ish or less a month. Traffic is minimal, and like I say the only tech support calls I've had to make this past year were when the hosting service tweeked and freaked something thus messing it all up.

Re: [PHP] Re: SSH

2002-05-05 Thread Kyle Gibson
What does phpinfo() have to say about it? It says that the Local Value is on but the master value is off. -Kyle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Detecing a Number

2002-12-04 Thread Kyle Gibson
the above, so it may not work syntactically but the concept is the same... -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Just Curious

2002-12-07 Thread Kyle Gibson
I was just curious, but what program or website do you all use to view and reply to the newsgroups with ? Fun Fact # 14: Netscape 7.0 ;) -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Execute a cgi inside of php?

2002-12-11 Thread Kyle Gibson
include(!--#exec cgi=../cgi-bin/include/horoscopes.cgi --); If you wish for this to be a correct PHP statement, it should be: include(!--#exec cgi=\../cgi-bin/include/horoscopes.cgi\ --); Otherwise it will error. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP

[PHP] Re: Google and php

2002-12-13 Thread Kyle Gibson
of your site, regardless of what the URL is unless you specifically state otherwise in the robots.txt file. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: can I mail unlimited in one click?

2002-12-16 Thread Kyle Gibson
programmatically... -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: nested if in a for statement

2002-12-17 Thread Kyle Gibson
. In the above code you have $i = count($userVars) The problem is that when $i = count($userVars), $i has surpassed the position of the last time, thus causing it to return as being empty. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http

[PHP] Re: nested if in a for statement

2002-12-17 Thread Kyle Gibson
is that when $i = count($userVars), $i has surpassed the position of the last time, thus causing it to return as being empty. Basically, just remove the '=' from $i = count($userVars) -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http

[PHP] Re: recommendation needed for dedicated server hosting

2002-12-18 Thread Kyle Gibson
. Thanks! I've been with RackShack for a little more than a year now and I and very satisfied with them. www.rackshack.net Servers @ $99 per month -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: \Z characters

2002-12-21 Thread Kyle Gibson
quotes instead... $connection = db_connect(Could not connect DB); $SQL=SELECT id,PVLN from lhpl_side WHERE PVLN ='\Z'; $result= mysql_query($SQL,$connection) or die (mysql_error()); $num = mysql_numrows($result); -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP

[PHP] Re: Problem with the List?

2002-12-21 Thread Kyle Gibson
Are my posts getting through? They appear to come back on the list but I also get this response... I see them, so I suppose the list has received them. I got that same error yesterday. Hmmm. :\ -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List

[PHP] Re: Function returning a reference - how ?!?

2002-12-21 Thread Kyle Gibson
is a reference to the Parent object. Then again, I haven't tested any of this, just going on some instinct here. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cheap Hosting

2002-12-26 Thread Kyle Gibson
;) -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Newbie mail () question

2002-11-22 Thread Kyle Gibson
, $headers); //...end The above code seems to work for me. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: put result of include into a variable

2002-11-22 Thread Kyle Gibson
anyone have an idea how to circumvent this problem? Try: $fp = fopen (http://www.example.com/;, r); $data = ; while(!feof($fp)) { $data .= fread($fp,1024); } //$data now contains all the html for the website fclose($fp); -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com

[PHP] Re: Creating file file permissions

2002-11-22 Thread Kyle Gibson
is chmod'd correctly (777) so your PHP script has the ability (ie: permissions) to write/create files inside. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: dynamic arraynames

2002-11-22 Thread Kyle Gibson
(. http://www.php.net/manual/en/language.variables.variable.php Might help too... -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: strings and vars

2002-11-23 Thread Kyle Gibson
; -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Newbie: element index array

2002-11-24 Thread Kyle Gibson
like to ask that how can I completely delete the $a['element2'] in the array? That's mean I will get 'false' in 'isset($a['element2']) after the delete process is taken place. Thanks for your help. Use unset() http://www.php.net/manual/en/function.unset.php -- Kyle Gibson admin

Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread Kyle Gibson
is minuscule. One thing you might want to avoid is using comments inside loops. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Another cookie question

2002-11-24 Thread Kyle Gibson
In the purpose of getting access to mydomain.se/ha/ I will set a cookie: setcookie (login, OK, time()+3600, /ha/); Not sure if this is the case, but try this instead: setcookie (login, OK, time()+3600, /ha/,mydomain.se); -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com

Re: [PHP] perplexed as to why this is happening...

2002-11-24 Thread Kyle Gibson
( as is sposed to ) } if (!$sec = 1){ Right there. Should be... if ($sec != 1){ -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is wrong here?

2002-11-24 Thread Kyle Gibson
in advance, The headers for the page might have already been sent. If there is a space at the top of your PHP file like below, any type of header change wont work: ---top of file ? header(Location: ...); exit; ? -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com

[PHP] Re: BBCode?

2002-11-24 Thread Kyle Gibson
].'); ? But it prints iThis[/i] is a [i]test/i. Is there a better way to do this? ? function bbcode($text) { $text = str_replace([,,$text); $text = str_replace(],,$text); return $text; } print bbcode([i]This[/i] is a [i]test[/i].); ? -- Kyle Gibson admin(at)frozenonline.com http

Re: [PHP] Re: BBCode?

2002-11-24 Thread Kyle Gibson
\\])([^\\[]+)(\\[/i\\]),'i\\2/i',$text); return $text; } print bbcode('[i]This[/i] is a [i]test[/i].'); ? Prints: iThis/i is a itest/i. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: BBCode?

2002-11-24 Thread Kyle Gibson
This code is simply not suitable. The object is to replace tags as an entity as opposed to simply replacing '[' with ''. Obviously not. I was not fully aware of what he required. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http

Re: [PHP] Re: BBCode?

2002-11-25 Thread Kyle Gibson
] is a [i]test[/i].'); ? Works... -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Newbie: ereg

2002-11-25 Thread Kyle Gibson
Martin Try the following: ?php function format_text($text){ $text = ereg_replace(([^]+)([^]+)(/[^]+),'\\2',$text); return $text; } print format_text('FONT COLOR=#8f8f15This shall be visible/FONT.'); ? -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General

Re: [PHP] Re: BBCode?

2002-11-25 Thread Kyle Gibson
Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i] tag, for example). Nested tags? Do you mean [ib] ? Or [i[b]]? If you mean [ib], then I'm afraid what you want cannot be done in ereg_replace. As far as I am aware, that is. -- Kyle Gibson admin(at)frozenonline.com http

Re: [PHP] Re: BBCode?

2002-11-25 Thread Kyle Gibson
I think he means: [i]A sentence in italics, with a word in [b]bold[/b][/i] Yeah he told me. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: BBCode?

2002-11-25 Thread Kyle Gibson
); while($temp != $text) { $temp = $text; $text = ereg_replace($pattern,'\1\2/\3',$text); } return $text; } print format_text('[i] this is a [b]bold[/b] test [/i]'); ? -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing

[PHP] Re: More mail() questions.

2002-11-25 Thread Kyle Gibson
, $headers); TIA As far as I've encountered, you can simply do the following: ? $message = This is the message I wish to send with linebreaks... all the way down here. ; mail (, $subject, $message, $headers); ? -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com

[PHP] Re: deleting a record.

2002-11-26 Thread Kyle Gibson
passed. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: testing for empty array

2002-11-26 Thread Kyle Gibson
I have an array $keywords, how do I test to see if it is empty? $keywords == '' seems to throw out an error. Maybe... if(count($keywords) = 0) { //... } -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: string

2002-11-29 Thread Kyle Gibson
(determine,-4); For more information on SUBSTR, http://www.php.net/manual/en/function.substr.php ;) -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Javascript compatibilty

2002-11-29 Thread Kyle Gibson
to get Javascript working with PHP with ease? Any articles on this? Thanks a lot... again. :) If you show me some code I can look at, I might be able to assist you. You should have no trouble executing JS on a file with a .php extension, so long as it is incorporated into HTML. -- Kyle Gibson

Re: [PHP] Passing arguments to the same script

2002-12-01 Thread Kyle Gibson
this: a href=index.php?page=samples You could then call $_GET['page'], which would contain the value samples. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php