[PHP] Re: include file to global scope

2005-10-13 Thread cc
the answer cc wrote: > yes, its possible, consider this: > > /** > * @param $file_to_include path to php file you want to get its content > * @return included contents > */ > function get_output($file_to_include){ > ob_start(); > include $file_to_include; >

[PHP] Re: ampersand in dom with utf-8

2005-10-13 Thread cc
and cilantro'); $dom = DomDocument::loadXML("$html"); On 10/13/05, Marcus Bointon <[EMAIL PROTECTED]> wrote: > On 13 Oct 2005, at 07:24, cc wrote: > > > both `è' and `î' are not entities in charset utf-8, use > > `&egrave;' and `&icirc;&#

[PHP] Re: Removing Items from an Array

2005-10-12 Thread cc
> working. I've been staring at multi-dim arrays all day and am getting > tired, so I'll carry on tomorrow. > > Thanks again, > > Alan > > > -Original Message- > > From: Jochem Maas [mailto:[EMAIL PROTECTED] > > Sent: 12 October 2005 19:18 > >

[PHP] Re: ampersand in dom with utf-8

2005-10-12 Thread cc
both `è' and `î' are not entities in charset utf-8, use `è' and `î' instead. On 10/13/05, jonathan <[EMAIL PROTECTED]> wrote: > I'm now getting this error: > > XML Parsing Error: undefined entity > > with the following entity at the first ampersand: > farm lettuces with reed avocado,

[PHP] Re: Store a variable name in a database field.

2005-10-12 Thread cc
Most likely you are using some template system that require using of {{whatever}} as template varibles. if you want to change {{whatever}} to something else, maybe you should configure your template processing as well, just let it not to find {{whatever}} but the pattern you prefered, and also re

[PHP] Re: Run a php script as a separate thread/process

2005-10-12 Thread cc
Tommy, r u serious? this ain't what you called 'thread or process', just something like an user agent, like any web browser. On 10/12/05, Tommy Jensehaugen <[EMAIL PROTECTED]> wrote: > Thank you very much. This is what I ended up with if anyone needs it: > > function runSeparateThread($strHost, $

[PHP] Re: include file to global scope

2005-10-12 Thread cc
yes, its possible, consider this: /** * @param $file_to_include path to php file you want to get its content * @return included contents */ function get_output($file_to_include){ ob_start(); include $file_to_include; return ob_get_clean(); } of course, you may extend this function to bet

[PHP] Re: Userlogin system seems to override the if statement....

2005-10-12 Thread cc
did u give proper username and password to login with? On 10/12/05, twistednetadmin <[EMAIL PROTECTED]> wrote: > I'm new to this. So I used a tutorial to write this. But it shows "Login > ok. > Welcome" at once when the page loads. Here is the tutorial: > http://www.ss32.x10hosting.com/ss32/files/

[PHP] Re: Freetype and JPEG disabled

2005-10-09 Thread cc
did you configured php with these option? --with-freetype-dir=/path/to/freetype --with-jpeg-dir=/path/to/jpeg On 10/9/05, Feris Thia C. <[EMAIL PROTECTED]> wrote: > Hi All, > > I've tried to compile and install PHP with gd and freetype library enabled, > and all PNG and GIF library are loaded

[PHP] Re: displaying image from blog

2005-10-04 Thread cc
you cant just mix html tags and image data and expect them to be on the same page to get both html and images displayed. if you want image, use a tag, whose SRC attribute maybe a php file, and this php file will output _only_ image data, i.e. echo $obj->photo; nothing more, except if you want t

[PHP] Re: Server Time Out

2005-10-04 Thread cc
did u set up a firewall? maybe you want change the rule to let packets from port 119 go through. or try add a new news account. Good luck! On 10/5/05, Dan Baker <[EMAIL PROTECTED]> wrote: > "Kevin Cloutier" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > > > I'm new to t

[PHP] Re: Passing non GET/POST request methods to php script do not work on RH based linux

2005-09-30 Thread cc
could be problem of apache configuration ? is there directives like 'limit' in your apache config file? On 9/30/05, Yedidia Klein <[EMAIL PROTECTED]> wrote: > no one answered me so i'm answering myself > php.ini has a directive called allow_webdav_methods that is by default off. > > changing t

[PHP] Re: __FILE__ and __LINE__ of calling scripts?

2005-09-27 Thread cc
all u need is debug_backtrace() On 9/27/05, Thomas <[EMAIL PROTECTED]> wrote: > > Hi, > > I want to find out if it is possible to get the file name and the line > number of a calling script (__FILE__, __LINE_) from a calling class > automatically. > > Let me explain: > > I have a db class which ge

Re: [PHP] First PHP

2002-11-29 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Khalid El-Kary) wrote: > http://www.php.net/manual/en/history.php#history.php First public announcement of PHP by Rasmus: <http://groups.google.com/groups?selm=3r7pgp%24aa1%40ionews.io.org> -- CC -- PHP General Mai

Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread CC Zona
options. Or do as others have recommended and download a prewritten one from php.net and place it in the designated location (renamed to "php.ini" if necessary). Or see the configuration page <http://php.net/configuration> for descriptions of other alternatives (ini_set(), .htaccess).

[PHP] Re: flaking out on foreach

2002-08-27 Thread CC Zona
echo "$foo"; > } > ?> > > Rendering only "6". That's it. Just "6". What am I missing here? What do you see in the HTML source view? -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Include php code as variable

2002-08-03 Thread CC Zona
you're saying "include") into a variable: file(), fread(). eval() can execute the value of a variable as PHP code. http://php.net/include http://php.net/file http://php.net/fread http://php.net/eval -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include hassle

2002-08-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Lallous) wrote: > how can i programmatically set the include path? http://php.net/ini-set -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] extending class then calling its original function

2002-08-01 Thread CC Zona
> > for example in Delphi I say: > > > > procedure TMyExtendedClass.Proc1; > > begin > > // do new stuff here > > inherited; // calls the TMyClass.Proc1; > > end; > > Yes. $answer.="http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php"

Re: [PHP] fullname

2002-07-30 Thread CC Zona
uot; ", $session); But that requires the proper foreknowledge. Simple concatenation, like above, is the safer bet. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mod_rewrite problem

2002-07-18 Thread CC Zona
{HTTP HOST} ^www\.[^.]+\.mysite\.ie$ > RewriteRule ^(.+)%{HTTP HOST}$1 [C] > RewriteRule ^www\.([^.]+)\.mysite\.ie(.*) > http://www.mysite.biz/users/sites/$1 Change each of those instances of "^www\." to "^(www\.)?" -- CC

[PHP] Re: preg_replace_callback

2002-07-17 Thread CC Zona
I recall correctly (which I may not), an example would look something like this: $output=preg_replace("/(\w+)/f","'***' . strtolower($1) . '***'",$input); -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Regular expression for correcting proper nouns

2002-07-17 Thread CC Zona
would give "A B C D E". Yes. Again, character classes will be your friend, as will preg_replace(). Just decide which of the whitespace characters you mean to include in that definition of "multiple spaces"... -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Does not work

2002-07-14 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Saci) wrote: > I tried this simple code > > > > Page refered by > echo $HTTP_REFERER.''; > echo $_SERVER['HTTP_REFERER'].''; > ?> > > > > and I receive blank reply even if referenced from a link from other site. > > What am i doing wrong

[PHP] Re: preg_match or not?

2002-07-06 Thread CC Zona
ash, or included within a square-bracketed character class; you don't need to do both. The {1} is implied; you don't need it. if (preg_match("/^\d+(\.\d{2})?$/", $form_data[amount])) {echo "Validated!";} else {exit("That's not a dollar amount.");} -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP with CSS

2002-06-30 Thread CC Zona
ng "standards mode"? (If any of this sounds unfamiliar, you can follow-up with a newsgroup or list where CSS is on-topic, such as <news:comp.infosystems.www.authoring.stylesheets>.) Good luck! -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to put these 2 IF statements into 1, with regex?

2002-06-30 Thread CC Zona
reliable results. Otherwise, you're going to eventually end up with unintended matches like "siteUserList9cggroup=site177&". Regarding the rest of your question: the "?" character is what you seek. if (preg_match("/siteUserList\.cgi\?group=site177&?/&quo

[PHP] Re: Is this a BUG?

2002-06-23 Thread CC Zona
OST_VARS['user']; } adduser(); If this is the problem you're having, you can find more information at: http://php.net/variables.scope http://php.net/global -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: translate perl unpack to php equivalent

2002-06-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Danny Kruitbosch) wrote: > How would I translate this perl unpack statement to the php equiv. > > my ($salt, $xor) = unpack('a2 a*', $something) http://php.net/unpack -- CC -- PHP General Mailing List (http://www

[PHP] Re: preg_replace

2002-06-16 Thread CC Zona
ession 'constant("$2")' with anything, so lose the extra periods. Parentheses aren't needed around the equals signs, so you might as well drop those too. Ex: preg_replace('/=([A-Z0-9_]+)=/e', 'constant("$1")', $foo); -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Regular Expressions Help

2002-06-05 Thread CC Zona
it delimits a range; to use it as a literal, make it the last character in the character class. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php.net sloooooooowwww

2002-05-18 Thread CC Zona
be Displayed" error. Have you tried any of the other mirrors, for example uk.php.net? I'm not sure why us2 is giving you a problem, but hopefully other mirrors would not do the same... -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Register_Shutdown_Function ??

2002-05-18 Thread CC Zona
t ("print" is specifically mentioned as an example) can be sent to the browser at that stage. Try sending youself an email, or logging to a file instead. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: getting a function name of the calling function

2002-05-02 Thread CC Zona
imes in a single > run, that would be some really handy stuff. Being able to trace which function called another would be very useful. (The OP just wanted a constant like __FILE__ to identify the current function in an error message.) -- CC -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] eregi

2002-05-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Miguel Cruz) wrote: > On Thu, 2 May 2002, CC Zona wrote: > > [EMAIL PROTECTED] (Miguel Cruz) wrote: > >> preg_match("/{$start}(.*?)end/", $rf, my_var); > > > > Leave out the braces. > >

Re: [PHP] eregi

2002-05-02 Thread CC Zona
$start(.*)end/U", $rf, my_var); (And make sure the value of $start either doesn't have any regex special chars, or is using them intentionally, or has them escaped <http://php.net/preg-quote>.) -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: case-insensitive str_replace

2002-05-02 Thread CC Zona
rray of straight string values, correct? So just escape the regex special values (preg_quotes()) in each while you're looping through the array to add the pattern delimiters and "i" modifier. Then pass that array to preg_replace. -- CC -- PHP General Mailing List (ht

[PHP] Re: case-insensitive str_replace

2002-05-02 Thread CC Zona
the "i" (for "case insensitive") modifier after the closing regex pattern delimiter: $patterns=array("/foo/i","/bar/i"); -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: getting a function name of the calling function

2002-05-02 Thread CC Zona
to the user, under what circumstances, how, whether to forward the reports to you as well, plus the opportunity to know the context (set variables and their values) in which the error occured. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: getting a function name of the calling function

2002-05-01 Thread CC Zona
t;) then of course you know the name there too. Perhaps if you explained what you're trying to accomplish... -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP --help

2002-05-01 Thread CC Zona
; install it? I'm just going to save a standard message that covers this > because I see questions like this continuing until everybody upgrades. Since there are still people using PHP3, that could be a very looong time. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] apps that need register globals 'on' and others require 'off' on same server

2002-04-30 Thread CC Zona
onfiguration directives via > the .htaccess file. Yes, and these directives can also be used within containers such as , , and within the Apache configuration file. Since the OP asked about runtime, there is also ini_set() <http://php.net/ini-set>. -- CC -- PHP General Mailing

[PHP] Re: regular expressions help please

2002-04-30 Thread CC Zona
on of "word". Is it just adjacent letters? What if they're interrupted by a hyphen? Are leading/trailing punctuation marks included? Do adjacent digits count as words? Etc. Once you've defined the pattern comprising a "word", you can then translate it into regex

[PHP] Re: Problem with fopen()

2002-04-30 Thread CC Zona
user has write permissions to the directory? What is the full text of the error message? -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Looking for an easier regex check...

2002-04-29 Thread CC Zona
uot;; } <http://php.net/preg-match> <http://www.php.net/pcre.pattern.syntax> -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread CC Zona
nd per-host basis. You can surf without the automatic popups, but still traverse all those silly links by authors allergic to the onclick handler. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Stripping characters.....

2002-04-27 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cc Zona) wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Cditty) wrote: > > > ieUser email address is "Chris Ditty" > > <[EMAIL PROTECTED]> or Chris Ditty <[EMAIL PROTEC

[PHP] Re: Stripping characters.....

2002-04-27 Thread CC Zona
; < > signs from the first one and then the name and the < > signs from the > second. > > Does anyone know how to do this quickly and easily? <http://php.net/preg-replace>. For example: preg_replace('/^.*<(.+)>.*$/',"$1",$mailstring); --

[PHP] Re: init_set(): auto_append_file doesn't work?

2002-04-27 Thread CC Zona
ded. Any ideas? The function is ini_set(), not init_set(). -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Safe mode

2002-04-26 Thread CC Zona
n.php > > Since it states php_flag, not php_admin_flag... The beauty of the system is that when one spots such errors, one can immediately add a correction to the annotated docs. (Done.) -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Safe mode

2002-04-26 Thread CC Zona
_errors On > > > And the safe_mode entry doesn't seem to have any effect what so ever. Safe mode used the admin flag: php_admin_flag safe_mode on -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array wildcard?

2002-04-25 Thread CC Zona
chechfruitlove("I love oranges!"); //returns "I do too!" > $answer = chechfruitlove("I love pears!"); //returns "I don't!" <http://php.net/preg-match> -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help PHP 4.2: No more error messages

2002-04-23 Thread CC Zona
ly get > back a blank page. I have error reporting set to E_ALL. Check the value of display_errors too. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Why does this not work??

2002-04-22 Thread CC Zona
et no expiration, the cookie remains set until the window closes. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: file_get_contents source??

2002-04-19 Thread CC Zona
only)". That's why it's not in your version. Reading further, it says "Identical to readfile(), except that file_get_contents() returns the file in a string." So if don't need to do additional manipulation of the contents, there is one viable alternative. The user

[PHP] Re: Executing a time intensive script

2002-04-18 Thread CC Zona
t> <http://php.net/ignore-user-abort> -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Nasty DoS in PHP

2002-04-17 Thread CC Zona
so the developers can track it down <http://bugs.php.net/report.php>. Even though putting header() into an infinite loop sounds like something not to do in general, a bug is still a bug even if it's a pretty esoteric one. -- CC -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Nasty DoS in PHP

2002-04-17 Thread CC Zona
> From: Martin Towell <[EMAIL PROTECTED]> > Date: Wednesday, April 17, 2002 6:37 pm > Subject: RE: [PHP] Nasty DoS in PHP > > > Is that memory usage used by PHP or apache? > > > > -Original Message- > > From: Jason Soza [mailto:[EMAIL PROTECT

Re: [PHP] Nasty DoS in PHP

2002-04-17 Thread CC Zona
is a bug or not remains an open question. I'll be curious to hear whether anyone is able to reproduce a server crash in spite of set_time_limit(30) and ini_set("memory_limit","8M") conditions. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: HTTP gzip-compression and fopen

2002-04-17 Thread CC Zona
xt/html, text/xml, and text/rss--if the latter is a valid content type). BTW, you should take out that @ sign, turn error_reporting all the way up to E_ALL, and add some error checking. Just in case PHP already knows what the problem is, and you're not letting it tell you... -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Nasty DoS in PHP

2002-04-17 Thread CC Zona
settings are being overridden by settings in httpd.conf, .htaccess, or even the script itself... -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mod_rewrite (the solution)

2002-04-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cc Zona) wrote: > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > wrote: > > > RewriteEngine on > > RewriteBase/ > > RewriteRule$.* index.php > > RewriteRule takes a regul

[PHP] Re: mod_rewrite (the solution)

2002-04-17 Thread CC Zona
regex meta-character is an end-of-line marker. It has no special meaning at the beginning of a pattern. If you want a pattern that matches "anything including nothing", use: RewriteRule ^.*$ index.php -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread CC Zona
that file?? ErrorDocument directive <http://httpd.apache.org/docs/mod/core.html#errordocument>. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: help required on removing lf-cr from form data

2002-04-16 Thread CC Zona
"/[\r\n]+/"," ",$hasbreaks); <http://php.net/preg-replace> -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Seeing if a value matches anything in an array

2002-04-15 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Leif K-Brooks) wrote: > I need some way to check for the presence of any value from an > array. <http://php.net/in-array> <http://php.net/array-search> -- CC -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Assigning the contents of a file to a variable

2002-04-11 Thread CC Zona
> Does anyone have an idea or suggestion? <http://php.net/file> or <http://php.net/fread> -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: ini_set doesn't work

2002-04-10 Thread CC Zona
or message do you get under error_reporting(E_ALL)? (Meantime, make sure that the web server's user has permission to read the file, and perhaps try substituting in the full pathname.) -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PCRE - catching a caracter set in a negative class

2002-04-09 Thread CC Zona
ss the caracters are being > taken litteraly one by one and not as a set. I tied to enclose them by () by > that didn't work eigher. What is the work around for this? The section of the PCRE Syntax page that you want is the part dealing with "lookaheads" and "lookbehinds

[PHP] Re: file seems b0rken

2002-04-09 Thread CC Zona
p>: "If var is not an array, 1 will be returned" When file() failed to open your non-existing file, it returned false. False isn't an array, so count() returned 1. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: array limits in echo function?

2002-04-08 Thread CC Zona
//concatenation operator //echo takes variable # of args //double-quotes interpolate //multiple statements //heredocs interpolate too -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Banning javascript?

2002-04-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Murray) wrote: > > I want to ban javascript from my site (users can edit some things). I > > know how to ban it in

[PHP] Re: How do I use fopen() to overwrite a remote file via ftp?

2002-04-08 Thread CC Zona
iles to an HTTP resource"). The example on the FTP chapter's intro page <http://php.net/ftp> demonstrates how. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Function that escapes special caracters from regular expressions

2002-04-07 Thread CC Zona
the docs carefully; these functions escape slightly different character sets...) -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Executing functions within ereg_replace() output

2002-04-06 Thread CC Zona
ve doesnt seem to be the right way > to generate it. > > string string 12363 string string > > > any ideas? For future reference: <http://www.php.net/preg-replace-callback> For this instance: $content = ereg_replace( "([0-9]{5})[0-9]{9}"

[PHP] Re: conditionaly including classes/functions

2002-04-05 Thread CC Zona
t in the middle of an if{} > block: > > > } elseif ($var=='a') > { > include('temp.php'); > > $obj = new foo; > echo $obj->hello(); > > } It's fine, but since redeclaring functions is an error, better to use i

[PHP] Re: regexp for ' replacement

2002-04-05 Thread CC Zona
say \' > I want to aply a substitution for only the single quote that is between two > single quotes and leave the rest of the text in between the same. Does this work for you? $str="...and then 'the quick brown fox jumped over the lazy dog's piano'..."; echo $

[PHP] Re: Incrementing number by .1 or substracting .1

2002-04-04 Thread CC Zona
art-0.1; <http://www.php.net/manual/en/language.types.float.php> -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help with " Function " parameter

2002-04-04 Thread CC Zona
bal scope for you; it's up to you to explicity set a variable. function myFunc() { ... return array ($one, $two, $three); } $returned=myFunc(); echo "{$returned[0]}, {$returned[1]}, {$returned[2]}"; -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] class instance name

2002-04-01 Thread CC Zona
class... > ahh! so the variable name then? don't think you can, unless it's passed to > the object manually (Untried, but FWIW--) I suppose you could loop through all defined vars, testing whether they are objects, then asking each if the name of its class is the same as the name

[PHP] Re: save page to DB

2002-04-01 Thread CC Zona
need a way to uniquely identify the user, so that id can be linked back to the right set of stored data. Sessions are perfect for this <http://php.net/session>. Or, if you had no concern about the implications of client-side storage, you could use JS to store the values directly in a

[PHP] Re: global vars in a function

2002-03-29 Thread CC Zona
s available in each function, or is this > just the way things go? PHP scope rules are different from C and other languages; you must use the 'global' keyword. See <http://www.php.net/manual/en/language.variables.scope.php> for more info. -- CC -- PHP General Mailing

[PHP] Re: gettext functionality needs configuration flag

2002-03-29 Thread CC Zona
mark; click on the plus sign to add your own note to the page. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: assert in php.ini setting.

2002-03-23 Thread CC Zona
been > commented. <http://www.php.net/assert> <http://www.php.net/assert-options> -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: dealing with # in urls

2002-03-07 Thread CC Zona
uld instead extract the query string from the URL by using parse_url() <http://php.net/parse-url>, then turn that query string into variables by using parse_str() <http://php.net/parse-str>. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Value of $_* variables

2002-03-05 Thread CC Zona
is itself the name of the key you are trying to access, then the above is *not* correct. For that, use: > echo $doo['dah']; # is correct or echo $doo["dah"]; # also correct -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Value of $_* variables

2002-03-05 Thread CC Zona
t; $result = mysql_query("select user from users where id = $sid", $db); > > Anyway to get around this? Curly braces: $result = mysql_query("select user from users where id = {$_SESSION['id']}", $db); -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: user input in HTML

2002-03-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Erik Price) wrote: > Or is there some other > method of allowing only certain HTML tags? The second argument of <http://www.php.net/strip-tags> allows you to specific the tags you want to preserve. -- CC -- PHP Ge

[PHP] Re: Help with functions.

2002-02-28 Thread CC Zona
ons in PHP? If you find after reading that that you still need help, posting specific questions here will usually get a quick, helpful response. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: unsetting global variables from an function

2002-02-27 Thread CC Zona
but i need to remove it from the global one. > > any chance to do it ? Instead of using the 'global' keyword, use the $GLOBALS array: $var='foobar'; function gUnset() { echo "BEFORE: {$GLOBALS['var']}"; unset($GLOBALS['var']); e

[PHP] Re: regex

2002-02-27 Thread CC Zona
[^0-9]+\=/", "", $QUERY_STRING); Assuming > QUERY_STRING was the data. $string=preg_replace("/[^0-9]+=[^&]/", '', $QUERY_STRING); -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread CC Zona
; > I'm afraid I did a poor job of asking my question(*). My apologies. > > I would like to set some variables of my own creation (ie $DOMAIN_NAME) on > a global basis. In that case, the "auto_prepend_file" config option may be of interest. It's described on the page previously mentioned. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread CC Zona
> Is there something similar for PHP? Forget "similar", you can set PHP config options in the .htaccess file itself. See <http://php.net/configuration>. You can also set PHP options on a per-script basis using the ini_set() function <http://php.net/ini-set>. -- CC --

[PHP] Re: Reading a conf file

2002-02-27 Thread CC Zona
; > domain.websites.com > > > newsite.worldwideweb.net > <http://www.php.net/file> -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Is there a way to put a scroll in a table ???

2002-02-25 Thread CC Zona
#x27;nt work. The ,, and elements of HTML <http://www.w3.org/TR/html4/struct/tables.html#h-11.2.3> are intended for this purpose, but you may not consider browser support to be sufficient. See <http://www.blooberry.com/indexdot/html/tagpages/t/tbody.htm>, for instance. -- C

[PHP] Re: multilanguage support

2002-02-25 Thread CC Zona
sumptions about what constitutes valid text input. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Changing arguments in the php.ini file

2002-02-25 Thread CC Zona
dont know what is wrong any idea? When you call phpinfo(), look for the line near the top which gives the path to the current php.ini file. Does it match the path to the file you are altering? -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php 4.1.1 vs 4.0.6

2002-02-22 Thread CC Zona
nd 4.1.1 ? > Are the 4.1.x completely backward compatible with 4.0.x? <http://www.php.net/release_4_1_0.php> -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: gzip?

2002-02-21 Thread CC Zona
p the output, just make it go faster. Someone > once told me I could do that so the server spits output faster. <http://www.php.net/manual/en/ref.outcontrol.php> <http://www.php.net/ob-gzhandler> -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: unable to process form data

2002-02-21 Thread CC Zona
able to refer to the form data > simply by concatenating a '$' and the form element name i.e. As of 4.1, you need to use the new arrays $_GET, $_POST, $_COOKIE, etc. or else turn register_globals back on. See <http://www.php.net/release_4_1_0.php> for more info. -- CC --

  1   2   3   4   5   >