Re: [PHP] Cheap Hosting

2002-12-26 Thread Kyle Gibson
tp://www.melchior.us Try www.frozeonline.com ;) -- 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: Function returning a reference - how ?!?

2002-12-21 Thread Kyle Gibson
reateParent, which 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

[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: \Z characters

2002-12-21 Thread Kyle Gibson
t might solve the problem. Use single 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

[PHP] Re: recommendation needed for dedicated server hosting

2002-12-18 Thread Kyle Gibson
e feedback. 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 unsubscri

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

[PHP] Re: nested if in a for statement

2002-12-17 Thread Kyle Gibson
e from 0 to 9. 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 Ma

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

2002-12-16 Thread Kyle Gibson
,$email[n]\n"; Of course the BCC list could be filled 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: 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: Execute a cgi inside of php?

2002-12-11 Thread Kyle Gibson
include(""); If you wish for this to be a correct PHP statement, it should be: include(""); Otherwise it will error. -- 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: Detecing a Number

2002-12-04 Thread Kyle Gibson
I haven't tested 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

Re: [PHP] Passing arguments to the same script

2002-12-01 Thread Kyle Gibson
RY_STRING"] equals 'questions', 'samples', etc... $_GET['var'] requires that the link look like this: 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

[PHP] Re: PHP & Javascript compatibilty

2002-11-29 Thread Kyle Gibson
I do 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 G

[PHP] Re: string

2002-11-29 Thread Kyle Gibson
my mind.. $x = "mean" help please... $x = substr("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: 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/) T

[PHP] Re: deleting a record.

2002-11-26 Thread Kyle Gibson
ror"; Then, place an 'exit;' after the header(...) command to see if the $delete variable is actually being 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: More mail() questions.

2002-11-25 Thread Kyle Gibson
ot;; $message .= "4th Line\n"; mail ("", $subject, $message, $headers); TIA As far as I've encountered, you can simply do the following: -- 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
('[i] this is a [b]bold[/b] test [/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-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
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)frozenonlin

[PHP] Re: Newbie: ereg

2002-11-25 Thread Kyle Gibson
: ]+>)([^<]+)(]+>)",'\\2',$text); return $text; } print format_text('This shall be visible.'); ?> -- 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
Thanks a lot, but do you know how to do the same with ereg_replace? I'm trying to learn PCRE, but until I do, I won't be able to add anything to this... \\2',$text); return $text; } print bbcode('[i]This[/i] is a [i]test[/i].'); ?> Works... -- Kyle Gibson ad

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 Gen

Re: [PHP] Re: BBCode?

2002-11-24 Thread Kyle Gibson
'[i]This[/i] is a [i]test[/i].'); ?> Prints: This is a test. -- 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: BBCode?

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

Re: [PHP] What is wrong here?

2002-11-24 Thread Kyle Gibson
ng before that... what can be wrong? Thanks 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; ?>

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

2002-11-24 Thread Kyle Gibson
lts $sec = mysql_result($res, 0, 'sec'); echo $sec; // pulls out sec as 2 ( 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

[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/",&q

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

2002-11-24 Thread Kyle Gibson
at is lost in standard applications 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: Newbie: element index array

2002-11-24 Thread Kyle Gibson
etime' => '20D', 'dayname' => 2); $a['element3'] = array('btime' => '15D', 'etime' => '17D', 'dayname' => 3); I would like to ask that how can I completely delete the $a['element2'] in th

[PHP] Re: strings and vars

2002-11-23 Thread Kyle Gibson
ply do the following: $string = "string"; -- 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
ated simply by... ${$name} = array(". 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: Creating file & file permissions

2002-11-22 Thread Kyle Gibson
How do I get around this?? Make sure the 'users' directory 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: put result of "include" into a variable

2002-11-22 Thread Kyle Gibson
to a variable. Does 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($f

[PHP] Re: Newbie mail () question

2002-11-22 Thread Kyle Gibson
ipient, $subject, $message, $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

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: 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. ht

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: 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 unsubscri

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

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

2002-05-04 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. >

[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","",$row["row_name"]); echo $content; -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: 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

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

Re: [PHP] $HTTP_SERVER_VARS

2002-05-04 Thread Kyle Gibson
ok at my phpinfo 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

[PHP] SSH

2002-05-04 Thread Kyle Gibson
along 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

[PHP] $HTTP_SERVER_VARS

2002-05-04 Thread Kyle Gibson
It changes everytime, so it is hard to say. I'm running on PHP 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