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 Mailing List (http://www.php.net/)
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.
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Robert McPeak) wrote:
Why is this code:
?php
$bob=array(1,2,3,5,6);
foreach($bob as $foo);
{
echo $fooBR;
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 include)
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
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:
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_name] . .
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.
snip
RewriteEngine on
RewriteCond
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 word already has a
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 which
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Saci) wrote:
I tried this simple code
html
body
Page refered by
?php
echo $HTTP_REFERER.'br';
echo $_SERVER['HTTP_REFERER'].'br';
?
/body
/html
and I receive blank reply even if referenced from a link from other site.
What am i
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
period
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))
Remember
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
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 the
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.
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,
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 =
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);
?
Here's the
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.
Have you
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: unable to
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (J Smith) wrote:
Reuben D Budiardja wrote:
I am in need of a case-insensitive str_replace.snip
The feature that I use in str_replace is to put the 'search' and 'replace'
argument as an array, as described in the documentation for php =
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? The
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 faster and
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.
Don't they get removed by the parser's handling of double-quoted strings
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 would
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 standard
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 would be
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 and
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.
snip
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 .htaccess
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 the
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 name and the
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 PROTECTED]
I need to be able to strip the quotes and everything
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.
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 function
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Ashley M. Kirchner) wrote:
IfModule mod_php4.c
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
/IfModule
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 php_flag, not
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).!){
$return = I do
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 blank
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 work. What
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 give me
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?
http://php.net/set-time-limit
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:26 2002]
In article [EMAIL PROTECTED], [EMAIL PROTECTED]
wrote:
RewriteEngine on
RewriteBase/
RewriteRule$.* index.php
RewriteRule takes a regular expression as its first parameter
http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteRule.
The $ regex meta-character is an end-of-line
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 regular expression as its first parameter
http://httpd.apache.org/docs/mod
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 browser,
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:
$fp
In article p05100304b8e3cee5ab0c@[210.49.237.250],
[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
]
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 PROTECTED]]
Sent: Thursday, April 18, 2002 12:35 PM
To: CC Zona
Cc: [EMAIL PROTECTED]
Subject
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?
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);
http://php.net/preg-replace
--
CC
--
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 unsubscribe, visit:
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 http://www.php.net/manual/en/function.count.php:
If var is not an array, 1 will be returned
When
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 being
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: File already
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 script tags, but does anyone have a function
that bans javascript in ALL of the ways of puting it on? It would
take me a
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Lmlweb) wrote:
if I use within my html codes:
?php echo $fname $lname; ?, I get an error message telling me:
snip
how do I best combine the two (other than having to create two separate
?php..? codes in the HTML)?
Any of these work:
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:
http://php.net/preg-quote and http://php.net/quotemeta. (Read the docs
carefully; these functions escape slightly different
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 it.
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 the single
In article f05100303b8d23ce1c0d5@[217.37.50.73],
[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 an
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Simonk) wrote:
I have programed a function for counting Date:
function Datereturn()
{
snip
Return $realday;
Return $month;
Return $year;
}
But when I want to echo out the result, I have typed:
Datereturn();
echo
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;
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 how to
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 think you can,
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 add
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]
snip
Is there a way to make global vars available in each function, or is
In article Pine.LNX.4.20.0203231339370.28994-10@Larry,
[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=
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?
As for
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 = $sid,
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
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?
http://www.php.net
Will someone be willing to teach me what I need to know about
functions in PHP?
If you find after
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 ##
ServerName
domain.websites.com
/ServerName
ServerName
In article Pine.WNT.4.44.0202271857090.3884-10@associate,
[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 similar
In article Pine.WNT.4.44.0202272245210.1448-10@associate,
[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
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Paul A. Procacci) wrote:
ticket_id=3change_name=statuschange_value=3ticket_id=32=1=
And all I want is 2=1=. Well, the closest I came was :
$string = preg_replace(/[^0-9]+\=/, , $QUERY_STRING); Assuming
QUERY_STRING was the data.
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 the
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 wrong
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 Norwegian
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 and
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.x
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 data
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 it
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
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
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 possible
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 doing wrong
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Jtjohnston) wrote:
$where = id like $id;
snip
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. Where
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Clark) wrote:
1) Is it possible to write an array to a file?
http://php.net/serialize
http://php.net/fopen
http://php.net/fwrite
2) Is it possible to specify the name of the key to each item of an array
when you get the array using file().
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()
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 I
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 call
to phpinfo() http://php.net/phpinfo.
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
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
news:alt.php.
--
CC
--
PHP General Mailing List
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
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Erik Price) wrote:
Pretty confusing. Can anyone shed some light on whether or not there is
a final definite way to do this? I've used (!($_POST['var'])) with no
problems in the past, but does good coding style suggest that I use
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Obo)
wrote:
Sorry, perhaps I've misunderstood. You would like to charge a customer's
card without the customer knowing how much you're charging them?
i want the user to be able to see the amount being charged on the
screen, but not to be
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
card without the customer knowing how much you're charging them
In article 001001c1ac45$406eab00$017f@localhost,
[EMAIL PROTECTED] (Hugh Danaher) wrote:
Thank you for your help regarding parsing the url (Hey, go figure, they
named the function almost exactly the same as my question.).
I am still at sea about getting all the information from the url
1 - 100 of 371 matches
Mail list logo