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: -- CC -- PHP General Mailing List (http://www.php.n

Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jule Slootbeek) wrote: > Yeah that's the path to where php.ini should be (/usr/local/lib, in my > case, but the Jaguar version of PHP doesn't use a php.ini file, so > there's nothing there. Jaguar uses php.ini if it's in the expected location

[PHP] Re: flaking out on foreach

2002-08-27 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Robert McPeak) wrote: > Why is this code: > > > $bob=array(1,2,3,5,6); > > foreach($bob as $foo); > { > echo "$foo";

[PHP] Re: Include php code as variable

2002-08-03 Thread CC Zona
In article <00d501c23ada$87050590$3404a8c0@alawi>, [EMAIL PROTECTED] (Alawi) wrote: > How can I Include my php code code as variable and excute it ? include() can return a value, assignable to a variable. Some other ways to get the content of a file (I assume that's why you're saying "includ

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
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Wong) wrote: > On Wednesday 31 July 2002 18:36, lallous wrote: > > Hello when I extended a class and overwrite a function, can i after > > overwriting that function call it so it does what it used to do? > > > > for example in Delphi I say

Re: [PHP] fullname

2002-07-30 Thread CC Zona
In article <001301c23799$2deb3b30$100a0a0a@skink>, [EMAIL PROTECTED] (David Freeman) wrote: > > is there some other easyer way to do in one line than this?: > > > > $fullname = $session["f_name"]; > > $fullname .= " "; > > $fullname .= $session["l_name"]; > > $fullname = $session["f_n

[PHP] Re: mod_rewrite problem

2002-07-18 Thread CC Zona
In article <003d01c22e58$dcb45240$6601a8c0@yourwrjlo8t8dt>, [EMAIL PROTECTED] (Adrian Murphy) wrote: > the following code redirects www.usersite.mysite.biz to > www.mysite.biz/users/sites/usersite > > the problem is when the 'www' is left out it doesn't work. > RewriteEngine on > RewriteCond

[PHP] Re: preg_replace_callback

2002-07-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Rafael Fernandes) wrote: > First, sorry for my elementary english... > I need a function made for PHP3 that works like preg_replace_callback... Before preg_replace_callback() was introduced, preg_replace() used to have another an "f" modifier

[PHP] Re: Regular expression for correcting proper nouns

2002-07-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Henry) wrote: > I'm looking for a simple was to correct a list of proper nouns given all in > lower case! > > For example > > given $string="london paris rome"; > > I would like "London Paris Rome". > > However there is one cavet; if the wor

[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
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Steve Fitzgerald) wrote: > I have been struggling for a couple of hours now trying to write a > preg_match expression to validate a dollar amount - the user may or may > not put in the decimals so I want to allow only digits plus a possible > pe

[PHP] Re: PHP with CSS

2002-06-30 Thread CC Zona
In article <001101c220b8$5338fc30$768c3841@c3>, [EMAIL PROTECTED] (Bruce Karstedt) wrote: > Quick question? > > Is their anything in Apache or PHP that would keep styles from working. Both > external (CSS) and inline styles are ignored. If it was the only the external stylesheet that wasn't wo

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

2002-06-30 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > I was wondering if there is anyway to combine these two IF statements > into one: > > if (preg_match("@siteUserList.cgi?group=site177@", $QUERY_STRING)) > > and: > > if (preg_match("@siteUserList.cgi?group=site177&@", $QUERY_STRING

[PHP] Re: Is this a BUG?

2002-06-23 Thread CC Zona
In article <000c01c21b02$4b69e1b0$1aed0dd1@gateway>, [EMAIL PROTECTED] (César aracena) wrote: > I have a mainusers.php page, which only calls for functions > instead of writing them all together inside that page. At one step, it > calls for an “adduser” function which brings a table that let th

[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.net/) To unsubscribe,

[PHP] Re: preg_replace

2002-06-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Gerard Samuel) wrote: > When you think you got it, you don't get it.. > Im trying to scan the link for =A-Z0-9_=, dump the '=' and evaluate the > remainder as a defined constant. > Yes its funny looking, but if I could get this going Im golden.

[PHP] Re: Regular Expressions Help

2002-06-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (J. Younker) wrote: > Hi, > I'm trying to use eregi_replace to check a user-submitted URL, but I > keep getting the following error message: > Warning: Invalid range end in /var/www/html/_db_db/db_input.php > This what I'm using: > $pattern = "(h

[PHP] Re: php.net sloooooooowwww

2002-05-18 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Caldwell) wrote: > Is there some place else I can download release 4.2.1 ??? www.php.net is > dead slow, and us2.php.net is taking forever to prompt me for the > download -- I keep getting hit with the "Page Cannot be Displayed" error. Ha

[PHP] Re: Register_Shutdown_Function ??

2002-05-18 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Caldwell) wrote: > Here's my code: > > set_time_limit(1); > function clean_up() > { > if(connection_status() & TIMEOUT) >print("Script timed out.\n"); > } > register_shutdown_function("clean_up"); > while(1); >

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

2002-05-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Miguel Cruz) wrote: > I'm guessing he wants to do something like a stack trace to figure out how > a function managed to get itself called with bad data. > > With utility functions that may get called hundreds of times in a single > run, that

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
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Miguel Cruz) wrote: > On Thu, 2 May 2002, Fredrik Arild Takle wrote: > > eregi("$start(.*)end", $rf, $my_var); > > > > And I want it to stop at the first presedence of $end, not the last (thats > > what this is doing). > > Try preg, which is f

Re: [PHP] Re: case-insensitive str_replace

2002-05-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Reuben D Budiardja) wrote: > On Thursday 02 May 2002 04:08 pm, J Smith wrote: > > preg_replace() can be used with arrays. > > Yeah, but how to make it case-insensitive beside changing the my search and > replace strings to a regular expression

[PHP] Re: case-insensitive str_replace

2002-05-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (J Smith) wrote: > Reuben D Budiardja wrote: > > > I am in need of a case-insensitive str_replace. > > > > The feature that I use in str_replace is to put the 'search' and 'replace' > > argument as an array, as described in the documentation fo

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

2002-05-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Joshua E Minnie) wrote: > What I am trying to do is create an error message within in a string that > whenever each function fails it echos this particular string out with it's > pertinent information. > > i.e. > $error_string = "Warning: unab

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

2002-05-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Joshua E Minnie) wrote: > Does anybody know of any constants or predefined functions that will > retrieve the calling functions name? For example: > > function new_func($somedata) { > echo "I am function ".get_func_name(); > } > ?> What wo

Re: [PHP] PHP --help

2002-05-01 Thread CC Zona
In article <002b01c1f115$7ae52790$2f7e3393@TB447CCO3>, [EMAIL PROTECTED] (1lt John W. Holmes) wrote: > Use $_GET["fn"] and $_GET["ln"], or $_POST[], depending on your action. > > Does anybody read the release notes for a product before you download and > install it? I'm just going to save a sta

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

2002-04-30 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Sheets) wrote: > > From: Jeff Bearer [mailto:[EMAIL PROTECTED]] > > > > Is there a way to turn register globals on or off in the script at > > runtime? > Chapter 3 in the PHP manual covers setting PHP configuration directives via > the .

[PHP] Re: regular expressions help please

2002-04-30 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ed Lazor) wrote: > I've been banging my head against regular expressions all night... help > would be greatly appreciated. Could you give me examples on how to do the > following? > > Pull everything except a specific word from a sentence.

[PHP] Re: Problem with fopen()

2002-04-30 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ben Turner) wrote: > I am getting the error that I cannot create the > file in the directory. I have tried chmod and chown on the directory but > nothing is working for me. I have even gone so far as to make the owner of > the directory apache

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

2002-04-29 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Joshua E Minnie) wrote: > Does anybody know of a good way to make sure that a string contains ONLY > certain characters. I tried using > ereg("[~`!@#$%^&*(){}-+=|\\/.,<>'\":;\[\]]", $string); but I get parse > errors. Besides that I only want

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

2002-04-28 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Wong) wrote: > Konqueror is the only browser (that I've used) which supports per-site > javascript policy (deny, allow, disable pop-ups). iCab too. It allows suppression of various intrusive JS features on a global and per-host basis.

[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
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cditty) wrote: > ieUser email address is "Chris Ditty" > <[EMAIL PROTECTED]> or Chris Ditty <[EMAIL PROTECTED]> > > I need to be able to strip the quotes and everything between them and the > < > signs from the first one and then the na

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

2002-04-27 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Matt Wong) wrote: > init_set doesn't seem to work for setting auto_append_file, in php 4.1.2. > the master setting is NULL, and the local setting is properly set when I do > a phpinfo(), but the file never gets appended. Any ideas? The functi

Re: [PHP] Safe mode

2002-04-26 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ashley M. Kirchner) wrote: > Rasmus Lerdorf wrote: > > > You need to use php_admin_flag for safe_mode. > > And I suppose this page has an error on it then: > > http://www.php.net/manual/en/configuration.php > > Since it states ph

[PHP] Re: Safe mode

2002-04-26 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ashley M. Kirchner) wrote: > > php_value include_path ".:/usr/local/lib/php" > php_flag safe_mode On > php_flag magic_quotes_gpc Off > php_flag track_vars On > php_flag track_errors On > > > And the s

Re: [PHP] Array wildcard?

2002-04-25 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Leif K-Brooks) wrote: > One more question. Is there any way to use this with part of a string? > Example: > function checkfruitlove($string){ > $fruitarray = array("apples","oranges"); > if($string == "I love ".in_array($fruitarray)."!"){ > $r

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

2002-04-23 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mark W. Humphries) wrote: > I am running PHP 4.2 and Apache 1.3.23 on Win2k. > I am generating png files. Before upgrading to PHP 4.2 whenever I had a bug > in a png generating script I would get back an error message, now I only get > back a bl

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

2002-04-22 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jeffrey Means) wrote: > In using the setcookie function I can not set a cookie if I specify a time > period. ie. setcookie("Cookie_Name", "Cookie_Value", time()+30); will not > set a cookie, but setcookie("Cookie_Name", "Cookie_Value"); does

[PHP] Re: file_get_contents source??

2002-04-19 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Giovanni Lenzi) wrote: > file_get_contents function is supposed to return the contents of a file in a > binary safe manner. I tried it on two different servers which has different > versions of APACHE+PHP but it still not works. > The server giv

[PHP] Re: Executing a time intensive script

2002-04-18 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Zach Curtis) wrote: > Is there a way to get the function to > execute and let it run on its own within login.php and let the user continue > on to the authenticated area without that delay?

Re: [PHP] Nasty DoS in PHP

2002-04-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Soza) wrote: > Interesting, check out my apache error log: > [Wed Apr 17 18:35:53 2002] [error] PHP Fatal error: Maximum execution time > of 30 seconds exceeded in d:\html\loop.asp on line 7 LOL. You use *.asp for your PHP scripts? Wou

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
In article , [EMAIL PROTECTED] (Richard Archer) wrote: > At 8:55 PM -0400 17/4/02, Justin Farnsworth wrote: > > >This is a rather meaningless thread. It is a > >security issue that is displaced. > > If PHP is not honoring the time limit and memory usage

[PHP] Re: HTTP gzip-compression and fopen

2002-04-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Trond Arve Nordheim) wrote: > I was writing a slashdot RSS-parser for my homepage, and wrote a simple > function to fetch the slashdot.rdf-file from slashdot, and parse it > using PEAR's XML/RSS.php. > > Here's the core reading the remote file:

Re: [PHP] Nasty DoS in PHP

2002-04-17 Thread CC Zona
In article <000401c1e67b$dd64c820$2fa3f318@blackbox>, [EMAIL PROTECTED] (Dustin E. Childers) wrote: > It does not stop after its execution time. We have let this run for 10+ > minutes to see if it would crash the server, and it did. It does not affect > the person that loads the code in the brow

[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
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > RewriteEngine on > RewriteBase/ > RewriteRule$.* index.php RewriteRule takes a regular expression as its first parameter . The "$" regex meta-character is an end-

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

2002-04-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > But now I am receiving a 404 error message and the following message in my > error log: > > [Wed Apr 17 18:31:26 2002] [error] [client 172.131.190.148] File does not > exist: /home/swiften/public_html/404.shtml > > [Wed Apr 17 18:31:

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

2002-04-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Venkateshwar B) wrote: > I have > tried to use "str_replace" and replace "\n" by "". But it does'nt give > me the desired result of limiting text to single line . $nobreaks=preg_replace("/[\r\n]+/"," ",$hasbreaks);

[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. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

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

2002-04-11 Thread CC Zona
In article <00bc01c1e131$7a7bb7e0$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Edward R. Bailey) wrote: > I want to assign the contents of a separate file (a web page) to > $message instead of inserting the contents of the file as a string in > the actual script. I want the body of the email to c

[PHP] Re: ini_set doesn't work

2002-04-10 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Hiroshi Ayukawa) wrote: > I wnat to set auto_append_file in my own php script not in php.ini. > So I used > > ini_set("auto_append_file","hello.html"); > > But it doesn't work. What error message do you get under error_reporting(E_ALL)?

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

2002-04-09 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Maxim Maletsky) wrote: > I was scratching my head to accomplish the following perl regular > expression. It doesn't want to catch me [^\{php}]. From what I understood > reading the docs this is because in a negative class the caracters are bei

[PHP] Re: file seems b0rken

2002-04-09 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Thomas Wentzel) wrote: > $test=@file("some_non_existing_file"); > > Can somebody explain why count($test) is 1. When $test doesn't hold any > data >From : "If var is not an array, 1 will be retu

[PHP] Re: array limits in echo function?

2002-04-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Lmlweb) wrote: > if I use within my html codes: > > , I get an error message telling me: > >how do I best combine the two (other than having to create two separate > codes in the HTML)? Any of these work: //concatenation operator //ech

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
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Dalton Hunter) wrote: > Hi, I want to use fopen to connect to a remote server via ftp and overwrite > a file like ... > > fopen("ftp://username:[EMAIL PROTECTED]/system/path/to/file.php";, "w") > > ... but after connecting I get the "Warning:

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

2002-04-07 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Charlie Killian) wrote: > > Is there one? > I don't now of one. That's because PHP doesn't have "one", it has two: and . (Read the docs carefully; these functions escape slightly differe

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

2002-04-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Adam Wan) wrote: > $content = 'string string 12463409834234 string string'; > $content = ereg_replace( "[0-9]{14}" , substr("\\1",0,5) , $content ); > > // this is the output i want, but the above doesnt seem to be the right way > to generate i

[PHP] Re: conditionaly including classes/functions

2002-04-05 Thread CC Zona
In article , [EMAIL PROTECTED] (Andrew Warner) wrote: > Is it okay practice to condtionally include php files that contain > only classes or functions (as opposed to just straight code)? The > result is a class or function inserted right in the middle of

[PHP] Re: regexp for ' replacement

2002-04-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Thalis A. Kalfigopoulos) wrote: > If I have as part of a text: > ...and then 'the quick brown fox jumped over the lazy dog's piano'... > > How can I substitute the single quote in "dog's" with say \' > I want to aply a substitution for only th

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

2002-04-04 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Devin Atencio) wrote: > I am trying to figure out how to write a script to increase > a number by .1 or decrease a number by .1 but the number needs > to be in the syntax of x.x. $start=1; $up=$start+ 0.1; $down=$start-0.1;

[PHP] Re: Help with " Function " parameter

2002-04-04 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Simonk) wrote: > I have programed a function for counting Date: > > function Datereturn() > { > Return $realday; > Return $month; > Return $year; >} > > But when I want to echo out the result, I have typed: > > Datereturn

Re: [PHP] class instance name

2002-04-01 Thread CC Zona
> > > or are you referring to this? > > > > > > http://www.php.net/manual/en/function.get-class.php > > (a function that I keep forgetting about) > > No because it isn't the name of the class I want it is the name of the > > instance of the class... > ahh! so the variable name then? don't th

[PHP] Re: save page to DB

2002-04-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Phil Solomon) wrote: > Hi all, > I have a page that dynamically produces itself from a mysql db. It produces > a form with the prices of scaffolding items and then uses JS as a quote > calculator. I was wondering whether someone could tell me ho

[PHP] Re: global vars in a function

2002-03-29 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Justin French) wrote: > Am I missing something? I'm trying to use vars set in my config.php file in > a function, and can't seem to do it without using $GLOBALS["varname"] > Is there a way to make global vars available in each function, or is

[PHP] Re: gettext functionality needs configuration flag

2002-03-29 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Thalis A. Kalfigopoulos) wrote: > Someone with the proper authority should probably put on the manual pages > that to get the gettext functionality you have to configure with the > --with-gettext flag. Did you know that anyone is allowed to a

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

2002-03-23 Thread CC Zona
In article , [EMAIL PROTECTED] (S.Murali Krishna) wrote: > can any one tell me what is this > > ;assert.active= On ; assert(expr); active by default > ;assert.warning = On ; issue a PHP warning for each failed > ;assert.bail

[PHP] Re: dealing with # in urls

2002-03-07 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mark) wrote: > in php.ini there is a variable called arg separator.input that looks > like it can help but when I add the line: > > arg separator.input = "&#" > > I still get $id = "0#top" Did you restart the server after modifying php.ini?

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

2002-03-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Wong) wrote: > echo "$doo[dah]"; # is correct If constant 'dah' is defined, and its value is the name of the key you wish to access from array '$doo'. But if the string literall 'dah' is itself the name of the key you are trying to ac

[PHP] Re: Value of $_* variables

2002-03-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (James Taylor) wrote: > $result = mysql_query("select user from users where id = $_SESSION['id]", > $db); > > That just doesn't work, so I have to first go: > > $sid = $_SESSION['id']; > $result = mysql_query("select user from users where id =

[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 allows you to specific the tags you want to preserve. -- CC -- PHP General Mailing List (http

[PHP] Re: Help with functions.

2002-02-28 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Sean Kennedy) wrote: > I need some help with functions. Does anyone know of a good place to learn > about functions? > Will someone be willing to teach me what I need to know about > functions in PHP? If you find after

[PHP] Re: unsetting global variables from an function

2002-02-27 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Enrico Weigelt) wrote: > is there a way for unsetting an global variable from an function ? > > global $var; unset ( $var ); > > does not work since, unset only removes the reference in from > local namespace. but i need to remove it from

[PHP] Re: regex

2002-02-27 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Paul A. Procacci) wrote: > ticket_id=3&change_name=status&change_value=3&ticket_id=3&2=&1=& > > And all I want is 2=&1=&. Well, the closest I came was : > > $string = preg_replace("/[^0-9]+\=/", "", $QUERY_STRING); Assuming > QUERY_STRING w

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

2002-02-27 Thread CC Zona
In article , [EMAIL PROTECTED] (Timothy J. Luoma) wrote: > > > I have a virtual domain under Apache and do not have access to the global > > > php.ini file > > > > > > Apache lets me set site-wide configuration in an /.htaccess file > > > > > >

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

2002-02-27 Thread CC Zona
In article , [EMAIL PROTECTED] (Timothy J. Luoma) wrote: > I have a virtual domain under Apache and do not have access to the global > php.ini file > > Apache lets me set site-wide configuration in an /.htaccess file > > Is there something sim

[PHP] Re: Reading a conf file

2002-02-27 Thread CC Zona
In article <01af01c1bfd7$be373ed0$0200a8c0@wiaka>, [EMAIL PROTECTED] (Brandon Orther) wrote: > Does anyone have a good idea of how I can pull the info out of a conf > file setup like this? Maybe pull it into an array. > > > ## Conf File ## > > domain.websites.com > > > newsite.worldwidew

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

2002-02-25 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (J.F.Kishor) wrote: > I'am breaking my head by trying to put a scroll in a table, > my problem is, using php 'am trying to display a report and the report > should have three tables, data to display are taken from three different > tables

[PHP] Re: multilanguage support

2002-02-25 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Leonid Zilber) wrote: > On our site, we have page with a form a user puts his/her information such > as company name, givenname, etc. Currently, if a name entered is anything > but English characters, PhP fails. > > For example, if I enter Norw

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

2002-02-25 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Kostas Karadamoglou) wrote: > When I change an argument from off to on and then restart the Apache server > the php.info() function displays thats no changes took place. > Exambles like register_global and display_errors. > I dont know what is

[PHP] Re: php 4.1.1 vs 4.0.6

2002-02-22 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ezra Nugroho) wrote: > I am deciding between 4.0.6 and 4.1.1 (or maybe 4.1.2 if it's comming soon). > I heard that there is some significant difference between 4.0.x and 4.1.x > What is the main difference between 4.0.6 and 4.1.1 ? > Are the 4.1

[PHP] Re: gzip?

2002-02-21 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jtjohnston) wrote: > What header do I type to gzip something out on the screen? To make the > output go faster, such as this text output: > http://ccl.flsh.usherb.ca/db/export_to_nb_format.php > I don,t want to actually zip the output, just make

[PHP] Re: unable to process form data

2002-02-21 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jeremy Reed) wrote: > I was able to fix the 'unable to find dynamic etc.' error thanks to you > guys. Now I have a new problem. It seems that I am unable to process form > data. Before upgrading to 4.1.1, you were able to refer to the form da

[PHP] Re: Removing every thing between ( )

2002-02-20 Thread CC Zona
In article <001901c1ba5d$634e3840$89010a0a@bpaulson>, [EMAIL PROTECTED] (Brian Paulson) wrote: > What would the regular expression be to remove all the text > between ( ) > > $string = "This is a (001 Test) and (002 Test)"; $string=preg_replace("/\(.+\)/U",'',$string); Note that leadi

[PHP] Re: argh!

2002-02-19 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Richard Baskett) wrote: > Ok this is getting frustrating! I am serializing a variable and passing it > through the url, in the url and when I echo it on the next page it shows > s:608:, and when I unserialize it and echo it, it doesnt show anyt

[PHP] Re: preg_match vs ereg etc

2002-02-18 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Digitalkoala) wrote: > I was just wondering what your opinions were on using preg_match, preg_split > instead of ereg and explode? > > I have to write a script to parse a lot of html and text files.. and I'm > looking to use the fastest possib

[PHP] Re: More: Frustrating ?

2002-02-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jtjohnston) wrote: > > > $where = "id like $id"; > So I do? > > $news = mysql_query("select * from ccl where '.$where.' order by AU desc"); > > or ? > > $news = mysql_query("select * from ccl where '.%$where%.' order by AU desc"); Neither.

[PHP] Re: Frustrating ?

2002-02-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jtjohnston) wrote: > Heres's a frustrating, and maybe not so stupid question? > > I'm getting "Warning: Supplied argument is not a valid MySQL result > resource" on this line: > > while ($mydata = mysql_fetch_object($news)) > > So what am I d

[PHP] Re: storing arrays

2002-02-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Clark) wrote: > 1) Is it possible to write an array to a file? > 2) Is it possible to specify the name of the key to each item of an array > when you get the array usin

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christian Blichmann) wrote: > "Cc Zona" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > You can look over the environment vars available to you with a quick cal

[PHP] Re: PHP not parsed in HTML

2002-02-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Spyproductions Support Team) wrote: > I am with a hosting company that doesn't want to parse PHP in HTML files > because they are afraid it will slow down their server(s) too much. > > So. I really like them and don't want to move the site if

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christian Blichmann) wrote: > My problem is much more trivial, how to retrieve the string the user > type into the address bar of his/her browser??? You can look over the environment vars available to you with a quick call to phpinfo()

[PHP] Re: Implement @-domains with PHP?

2002-02-11 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christian Blichmann) wrote: > Anybody got some code how to access the first part of > a URI (the string just before the @)? I don't want to use > HTTP-authentication and I'm using Win2k with IIS as CGI... > > Example: > http:[EMAIL PROTECTED]

[PHP] Re: Table exists?

2002-02-09 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Nick Wilson) wrote: > What would be the easiest way to see if a MySQL table exists with PHP? > I can do it by checking against mysql_list_tables() but that seems a > little clumsy. Is there a better way? See MySQL's documentation of the "CREATE

[PHP] Re: I'm new here is there.....

2002-02-09 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cyberskydive) wrote: > I know this php.general - is there another newsgroup which specifically > deals with help issues? PHP General does deal with help issues. Alternatively, you can post to . -- CC -- PHP General Mailing

Re: [PHP] secure form handling

2002-02-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Wm) wrote: > Cc Zona wrote: > > > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Obo) > > wrote: > > > > > > Sorry, perhaps I've misunderstood. You would like to charge a customer's

  1   2   3   4   5   >