This must sound pretty far-fetched, but as far as I can tell, my site is
attempting to set a session cookie from any and all PHP pages, even when
the page has no calls to session_* functions and where there were also no
previous visits to pages with such calls. Where is the setting that is
In article DC017B079D81D411998C009027B7112AA93458@EXC-TYO-01,
[EMAIL PROTECTED] (Maxim Maletsky) wrote:
anyway, is there any script like that (fast and dirty is ok) to run on
MySQL, PHP4.0.2 ?
What about putting a mysqldump call into a crontab?
--
CC
--
PHP General Mailing List
In article [EMAIL PROTECTED], [EMAIL PROTECTED]
(Team JUMP) wrote:
$num=count($bannedwords);
for($i=0;$i$num-1;$i++)
{
$string =
eregi_replace("\b$bannedwords[$i]\b","[censored]",$string);
}
For whatever reason, no word in
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Rick
Ridgeway) wrote:
I grab this line and try to make it an array like this:
print "line: $thelinefromfile\n"; //Check the line
$var1 = trim($thelinefromfile);
$var2 = split(" ", $thelinefromfile);
$count = count($var2);
I'm trying to pass a string variable to a custom function, echoing its
*value on one line, and its *name (that is, its key if this were an array
instead of a string) on another line. I searched the manual's sections on
variable functions and string functions, to no avail. I tried key(), but
In article 069f01c084ca$1642a320$[EMAIL PROTECTED], [EMAIL PROTECTED]
("Richard Lynch") wrote:
I'm trying to pass a string variable to a custom function, echoing its
*value on one line, and its *name (that is, its key if this were an array
I think you are looking for "variable
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote:
snip
$connect = mysql_connect(xx); or die ("dBase not connect.")
snip
$sql = "REPLACE CLIENT SET ID = \"$id\", ITEM = \"$item\", TITLE
=\"$title\", AUTHOR = \"$author\", PUBLISHER = \"$publisher\", DELIVERY
=
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Zack Ham) wrote:
What I'm trying to do is run through it and replace {title} with an
appropriate value. I have tried running
ereg_replace("{$var}",$value,$string) and
ereg_replace("\{$var\}",$value,$string). Neither work. They either do
In article 039901c08a48$3d4b5740$[EMAIL PROTECTED],
[EMAIL PROTECTED] ("Toby Miller") wrote:
Whenever I include files in Apache I always do it like this:
include($DOCUMENT ROOT."/folder/file.php");
However, now I am doing a site in IIS and I do not have $DOCUMENT ROOT at
my disposal.
[re-arranging quotes to bottom posting]
In article 9556pp$sna$[EMAIL PROTECTED], [EMAIL PROTECTED]
("Jeff Warrington") wrote:
hi, im trying to fix this couple of hours but i couldnt find the
mistake... can somebody look at it...
first i want to check the $co_area for 3 digital ... it
In article 95i2ch$1u8$[EMAIL PROTECTED],
[EMAIL PROTECTED] ("McShen") wrote:
I am just wondering if there are any PHP newsgroups like this one.
There are several newsgroups on PHP, but the only one I'd recommend is the
most active of them, news:alt.php. The others tend to have much less
Does extract() work on multidimensional arrays? IOW, I have an array
like...
array($elem1=array($val1,$val2),$elem2=$val3)
...from which I'd like to extract $elem1 and $elem2. Should this be
possible with extract()? The docs just say the function takes an array as
a parameter, but don't
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] ("Thomas Edison Jr.") wrote:
I'm using the following code to insert date into my
mySQL table named "Booking". I've created variables
that store the date with dashes "-" seperating them.
But it's not working. It's giving me an error on the
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] ("Montgomery-Recht, Evan") wrote:
Has anyone spent any time and thought into including help within the
library, ie. so you could do a.
mysql.connect().help() or something like that so as a developer addeds a new
function we as end users
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] ("Jeff Oien") wrote:
if (preg_match("/[a-Z],[a-Z]/",$text)) {
Can you tell me where I'm failing here. I want to do something
if the string has commas in between words with no spaces.
Like:
blah,blah,blah
"Does it have *any instance
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Yev) wrote:
So, it sees $name="field[text][email]", and attempts to retrieve the
value, so in essense $HTTP_GET_VARS[$name] should return
"[EMAIL PROTECTED]", but it doesn't work..
However, if i try to access
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Dennis Gearon)
wrote:
I do an insert using phpadmin, and i get back the error message (or
maybe it's a warning?) The insert is of a duplicate on a unique field. I
expected an error, but when I do mysql_error() or mysql_errno(), nothing
comes
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote:
$SQLStatement = "INSERT INTO Members (Email) VALUES ('".$GetEmails[$a] ."')"
or die ("Problem");
$db = mysql_select_db($dbase, $connection);
$SQLResult = mysql_query($SQLStatement);
Whoa, you're mixing apples with oranges. Try:
$db =
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] (Peter Benoit) wrote:
I've got a bit of a task where I need to poll a text file for several lines
of text which is buried deep within the file. These lines change each day,
but the text surrounding them do not.
Is it possible to extract
[quotes returned to bottom-posting, for clarity]
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] (Peter Benoit) wrote:
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] (Peter Benoit) wrote:
I've got a bit of a task where I need to poll a text file for several
lines
of text which is
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] (Peter Benoit) wrote:
I'd like to search inside the text file for my name, then pull all the info
from that point till the next name which is Fred.
The text file would be called names.txt
So I'm trying to
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] (Peter Benoit) wrote:
Very good info, but this text is located in a text file. How can I
reference it this way?
Get the contents of the text file--for example, using fopen() with
fread()--into a variable. Then use that variable as the
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Aviv Revach) wrote:
2. Let's say I have a string such as:
"http://www.blabla.com/dir1/dir2/file.php3",
How can I can strip the file-ending(".php3") out the string?
Option 1: parse_url()
Option 2: strpos() str_replace()
Option 3:
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Dennis Gearon)
wrote:
I would like to return ONE ROW if possible from a query that would tell
me
whether a value exists in a table.
If the query could result in more than one record, but you only want to see
one, 'limit 1' is helpful.
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Elan)
wrote:
I have a string, "'abc'". How do I convert it to "abc" (i.e. how do I
strip the embedded single quotes) with a minimum of overhead?
If there's no chance that the string could also contain legit single-quotes
(such as as an
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] ("Peter Houchin") wrote:
If I have a email script and use the mail() function ... am i able to do
this ..
mail(values);
if ($mail=1){
do this
}
else {
error
}
Are you trying to test whether mail() returned true?
if (mail(values)){
do
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (acleave)
wrote:
1) How do I return multiple data types at once from a function? For
instance
I might want to return 5, "apple", and true (an int, a string, and a boolean)
all at once from a function.
return array(5, "apple", TRUE);
2)
In article 9984hb$c4e$[EMAIL PROTECTED],
[EMAIL PROTECTED] (CC Zona) wrote:
And while I haven't actually tried this, I assume that anyone could write
their own HTTP_REFERER simply by using fsockopen(). Thanks to PHP's ease
of use, using fsockopen does not require one to have the skills
In article 00be01c0b175$1cee4080$[EMAIL PROTECTED],
[EMAIL PROTECTED] ("Wade DeWerff") wrote:
is there a way to do this in a mail() ? I need to add the $Phone and $Email
variables too the $message, but I need to format it so that it is on a new
line in the emailI tried using br and /n,
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Michael George) wrote:
So if I have an enum with possible values "Yes" and "No" or a set with
possible values "Single", "Married", "Divorced", "Widowed", I seek a function
that will return an array of strings containing those possible values.
I'm resetting set_time_limit() with each iteration of a rather long loop.
Right now when the script reaches its time limit I sometimes end up getting
just a blank page. Even though I call flush() within each iteration and do
lots of error checking along the way, it seems to not be enough.
In article 998dqa$akd$[EMAIL PROTECTED],
[EMAIL PROTECTED] (CC Zona) wrote:
I could have sworn I once saw a function that would check whether the
script was being cancelled because a timeout had occured, thereby allowing
you to make a more graceful exit from the script. But now I can't
In article 99dcc5$vm0$[EMAIL PROTECTED],
[EMAIL PROTECTED] ("Phil") wrote:
I have tried using multiple PHP content manager programs and cannot seem to
get any of them to save files that have been edited over the web interface
unless the file permissions are set to let everybody write to
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Sterling) wrote:
$m = "03";
$list = array(01="Jan", 02="Feb", 03="Mar", 04="Apr", 05="May",
06="Jun", 07="Jul", 08="Aug", 09="Sep\", 10="Oct", 11="Nov",
12="Dec");
$month = $list[$m];
print "$month\n";
What I want to print is the
In article 99dn35$duo$[EMAIL PROTECTED],
[EMAIL PROTECTED] ("Tobias Talltorp") wrote:
I am trying to register a session variable in a function without using the
global in the beginning.
You can pass the variable(s) to the function as an argument. Perhaps it
will be easier to deal with a
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Eelco de Vries) wrote:
"this is line 1
this is line 2
this the 3rd
etc
etc"
I read the mail fine in my hotmail.com account, but when I read that same
mail in my MS Outlook client the mail is one long line of text:
"this is line 1 this
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Greg Scott) wrote:
sleep(seconds);
usleep(microseconds);
I've tried those 2 functions, in an example like this:
PRINT "Thisbr";
SLEEP(2) ;
PRINT "Is abr";
SLEEP(2);
PRINT "TEST";
But the way it works in the browser is to wait for
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Greg Scott) wrote:
You might try using flush() after the prints.
I tried that too, but at least in Netscape 6, it still waits until
everything is done before displaying. I think Jack must be correct that
this isn't possible for browser
In article p04320407b6e35b98ce1b@[209.246.86.33],
[EMAIL PROTECTED] (Kristofer Widholm) wrote:
Warning: Bad escape sequence: \. in validate.inc.php on line 142
CODE:
Line 142: if (!eregi("index\.php",$PHP_SELF)) {
blah blah blah;
}
I didn't know there was any other escape sequence
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Jaxon) wrote:
Any way to combine both forms of url parsing?
I want to use standard slash notation for navigation ,but also account for
the occasional variable used within a single page.
e.g. URL can be either:
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Christian Dechery) wrote:
$myArray = array(
"one" = "something",
"two" = "otherthing",
"three" = "whatever"
);
I want to, given the key (or value), it returns
In article 99oh2o$f95$[EMAIL PROTECTED],
[EMAIL PROTECTED] ("YoBro") wrote:
I can't figure out why this doesn't work. Rather than echo $myrow[0] which
works, I want to use the feild name. Like $myrow[make] to make reading the
code easier. IS this possible?
Here is some code:
$db =
In article 99ou1p$tif$[EMAIL PROTECTED],
[EMAIL PROTECTED] ("Claudia") wrote:
$headline=urlencode("$headline");
print "a href
='http://www.contus.com/test_quote/quotepage.php3?site=$sitepage=miniquote;
subject=$headline'bContact us for more information/b/a/font";
Then in the
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Geoff Caplan) wrote:
I am trying to create a constant name dynamically and then get at the
value.
// We set up the constant
define( CONSTANT_1 , "Some value" ) ;
// Later we try to use it dynamically ...
$constant_number = 1 ;
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Joe Sheble aka Wizaerd) wrote:
In order to use URLs without ? and , there has to be some re-configuration
in Apache, correct? So somebody who didn't have access to httpd.conf
couldn't use this methodology? Or if this is completely
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Bob Stone) wrote:
Dear PHP Helpers,
I cannot find any documentation on how to copy the
data from one mysql table to another, i.e. table1,
columnx to table2, columnx.
Please don't post the same question to multiple PHP.net lists. Or at
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] ("Peter Houchin") wrote:
What is the best way to get set this to one value?
$system=$myrow['system'];
$serial=$myrow['serial'];
$config"=$myrow['config'];
snip much more of the same
extract($myrow);
Done. :-)
See
In article 9a0jpq$9bg$[EMAIL PROTECTED],
[EMAIL PROTECTED] ("Stuart J. Browne") wrote:
After being eye-ball deep in documentation 8 hrs a day trying to learn how
to do things with MySQL, Interbase, PHP, and CSS.. This list certinaly is a
god-send. Not only do questions that are posted GET
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] ("David Balatero") wrote:
So, I guess i need a regexp to remove all the
\n and :space: chars.
Here are some ideas:
$out=preg_replace("/\s+/","",$in); //strip whitespace
or
$out=preg_replace("/\s+/"," ",$in); //replace whitespace with single
set_value($variable,$value)
{
$variable=value;
}
"Warning: Call-time pass-by-reference has been deprecated - argument passed
by value; If you would like to pass it by reference, modify the declaration
of [runtime function name](). If you would like to enable call-time
In article 9a3fme$4hg$[EMAIL PROTECTED],
[EMAIL PROTECTED] ("McShen") wrote:
i have a table named "refer"
I wanna duplicate a table name "refer2" so that i can mess around with it.
Have you checked the manual for your DBMS? Something like "create table
refer2 select * from refer" should
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] ("Marcus Ouimet") wrote:
How can i determine the number of characters in a string?
http://www.php.net/strlen/
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
In article 002901c1980e$4ba456f0$0200a8c0@piii,
[EMAIL PROTECTED] (Sanjay) wrote:
I am new to PHP and want to do object oriented programming in PHP. I want to
write a subroutine and call that subroutine.
http://download.php.net/manual/en/functions.php
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Ben Turner) wrote:
I am trying to find somewhere that I can identify a custom 404
error page and then pull the page based on the document directory.
If you just want to customize your 404 page (presumably to call a PHP
script?), your web
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Bill)
wrote:
Is there a function that can strip high ascii from a string?
How about a regex? preg_replace() supports matching on octal or hex ranges
http://www.php.net/manual/en/pcre.pattern.syntax.php, so perhaps one of
these...?
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Steven Cayford) wrote:
You can tell php to treat quotes as text by escaping
them: putting a \ in front of them like this:
echo table border=\0\;
Or you could drop out of php mode entirely to do your html like this:
?php
...php stuff
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Marc Logghe) wrote:
So it is really easy to *remove* a key-value pair, but how do you put one in ?
$arr[$key]=$val;
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Gerard Samuel) wrote:
If != is the opposite of ==
What is the opposite of === ??
!($something===$somethingelse)
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (John Cuthbert) wrote:
I have a file which does several different things depending on how its
called Ie
file?mode=show is to show it etc
But I want to include the output from the show so I tried
?php include(file.php?mode=show); ? but this
In article 01a601c19de8$adc1b050$5e01a8c0@ben,
[EMAIL PROTECTED] (Ben Sinclair) wrote:
It is possible to disable error reporting, but you would probably remember
doing it.
A call to phpinfo() to check the global and local settings for
error_reporting and display_errors would be the first
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Phil Schwarzmann) wrote:
Dumb question: How do I query results from a MySQL that I've already
queried once before in the same page?
Here is my code:
// querying the database for the first time.
$query = select * from table where thingA
In article 002801c1a6ed$1a9c10a0$0401a8c0@philip,
[EMAIL PROTECTED] (Philip J. Newman) wrote:
$q=preg replace(/[ \W]/,,$q);
I have this to remove all the bad things, but it takes out the space to ...
)o; why?
There's a space in your character class, so of course it will be among the
In article 004d01c1a6f2$cb909070$0401a8c0@philip,
[EMAIL PROTECTED] (Philip J. Newman) wrote:
This returns an error
$q=preg replace(/[^ \w]/,,$q);
Parse error: parse error in d:\hosting\http\philipsdomain\config.php on line
41
Suggestions?
I think ezmlm must strip underscores from
In article 007601c1a91f$ea9ecac0$6401a8c0@kevin,
[EMAIL PROTECTED] (Kevin Stone) wrote:
I don't know why I didn't think of this ahead of time but in order to
produce the HTML-based ePostcard email I have to get the evaluated
template into a string.
I can fopen() the template file and read
In article 000801c1a9c5$26007460$017f@localhost,
[EMAIL PROTECTED] (Hugh Danaher) wrote:
What I am trying to do is have a line of text break at a space after
reading 19 words. Having read the various methods of finding and replacing
one character with another, I settled on preg
In article Pine.BSF.4.10.10201302054330.27254-10@localhost,
[EMAIL PROTECTED] (Philip Olson) wrote:
?
include(file1);
function_somename();
include(file2);
function_somename();
?
file1 and contain a function definition, but the function in both files had
the same name.
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Leif K-Brooks) wrote:
I want to execute code in a mysql datrabase, but is this possible? I want
it to run exactly as if I had tyyped it in to the php file.
http://php.net/eval
--
CC
--
PHP General Mailing List (http://www.php.net/)
To
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Jon Drukman) wrote:
the idea being that if any of the commands in the block fail, the database
package automatically does a die() and the block is terminated.
the nearest i could get with php is:
do {
mysql_query(UPDATE ...);
if
In article 006101c1ab7b$27ec01b0$9d0e533e@mazingerz,
[EMAIL PROTECTED] (Borja martÃn) wrote:
$img[3][src]= img1;
$img[6][src]= img2;
$img[9][src]= img3;
and I would like to change the array index adding one to their values,but
only on the two last arrays, so that
I have:
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
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 [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] (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] (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] (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] (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] (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] (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 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] (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 [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] (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 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] (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 [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] (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
1 - 100 of 371 matches
Mail list logo