but when I use PHP's header(location: b.php); expression a new session is
created and the data from the previous one is lost. Anyone familiar with
this problem? Any known solutions? It's been really driving me nuts!
you sure the cookie is being set? try this
header(Location: http://; .
On Thu, 26 Aug 2004 21:52:12 -0700, Ed Lazor [EMAIL PROTECTED] wrote:
The site has a spot where you can search for locations in your area that
give the test. Buy a voucher and then call the nearest place giving the
test and schedule to take it.
I was thinking there was (hopefully free)
Notice: Use of undefined constant DB_PORTABILITY_ALL - assumed 'DB_PORTABILITY_ALL'
in D:\utf8php5\config.php on line 16
What can I do about this?
include PEAR::DB before you include this config file
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Fri, 20 Aug 2004 03:23:48 -0700 (PDT), khuram noman
[EMAIL PROTECTED] wrote:
hello
i have problem in destroying session id, i use the
following code
?
session_start();
print before Destroy.session_id();
session_destroy() ;
session_start();
print After Destroy.session_id();
?
= Start of Code =
?php
session_start();
header(Cache-control: private); //IE 6 Fix
if(!$_SESSION['count']){
$_SESSION['count'] = 1;
$sid = session_id();
echo 'pSession is: ' . $sid . '/p';
} else {
$_SESSION['count']++;
}
echo 'pYou have visited ? echo
SELECT name=Company List multiple size=8
?php
$db = new COM(ADODB.Connection);
$dsn = DRIVER=SQL Server; SERVER=D63WV941;UID=sa;PWD=sa;
DATABASE=BINDER;
$db-Open($dsn);
$rs = $db-Execute(SELECT * from company);
while (!$rs-EOF)
{
$Name
On Thu, 19 Aug 2004 14:01:45 +0100, WebMaster. Radio ECCA
[EMAIL PROTECTED] wrote:
I tried what you said but i get an eval error:
Parse error: parse error, unexpected '=' in /index.php(135) : eval()'d
code on line 1
;(
- Original Message -
From: Jay Blanchard [EMAIL
On Thu, 19 Aug 2004 16:50:28 -0400, Don [EMAIL PROTECTED] wrote:
Hi,
I have a PHP file containing the code below. It works great when all
default setting exist in IE; each time I click on refresh, the session
variable is incremented and displays on the screen. If I change my browsers
decidmelo!
me llamo matt
try this list: http://news.php.net/group.php?group=php.general.es
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 18 Aug 2004 17:16:24 +0200, Nicklas Bondesson [EMAIL PROTECTED] wrote:
Hello,
How do I find an exact match of a string with preg_match?
Example:
String1: www.test.com/
String2: www.test.com/somepage.php?param1=true
How do you write the regexp to only return String1 and not
On Wed, 18 Aug 2004 14:35:19 -0700, Leticia Campos
[EMAIL PROTECTED] wrote:
Why since I put session_start(); in my php code the input items lost values
previously entered if user goes back to the form page?
might have something to do with session.cache_limiter , get rid of it
and see if you
On Wed, 18 Aug 2004 23:56:57 +0200, Yngve [EMAIL PROTECTED] wrote:
Hi!
I wonder if it´s possible (and how) to delete a file after it has been
downloaded, without running anything on the server except for the PHP page
which the user gets the file from.
If it is not possible, i wonder how i
while (list ($key, $val) = each ($_POST[firstname])){
$_POST[firstname][$key] = trim($_POST[firstname][$key]);
$_POST[middlename][$key] = trim($_POST[middlename][$key]);
$_POST[lastname][$key] = trim($_POST[lastname][$key]);
you might be able to get this one yourself.
if (session_is_registered($_SESSION['login']))
echo(seesion is reg);
else
echo(seesion not reg);
try
if (isset($_SESSION['login']))
echo(seesion is reg);
else
echo(seesion not reg);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Mon, 16 Aug 2004 17:39:21 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote:
ok I thought the problem was fixed but its not. The session variable
gets registered correctly however when I go to the next page and too see
if its still registered using the isset() function its not registered
session_write_close();
header(Location: franchise_menu.php?.SID);
exit();
SID will be empty if session ID was set in an appropriate session cookie
if you do a print_r($_SESSION) on franchise_menu.php do you see anything?
If you have access to the webserver you could just go in and look at
Keeping the name the same makes them a RADIO button and you will only
get the last one.
this is not true
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 2 Aug 2004 09:26:18 -0500, Brad Ciszewski [EMAIL PROTECTED] wrote:
Does anyone know any good software for PHP/mysql coding? I currently use
DreamWeaver MX, however it doesn't have much PHP support, and no MySQL
support. I just want an easy program to script in, and upload on to my
How would I get all the boxes check when grouping them by using the
same name for all checkboxes in the name field?
there are a number of ways, try:
form action=process.php method=post
input type=checkbox name=checkBoxGroup[] value=first /
input type=checkbox name=checkBoxGruop[] value=second
I'm in the process of building an application that has an adminstration
back-end shared by multiple sites. I need to maintain a persistent session
across these sites to properly identify users. I'm using a db to store the
session data but when switching from site to site, a new session_id is
here:
http://sweetphp.com/nuke/modules.php?name=Script_Previewscript=6
As a thank you to all those who have helped me on here I am giving away 5
free copies of the program to the first 5 people who contact me about it.
Thanks again for all your help guys. Great job!
Matt Palermo
[EMAIL PROTECTED
I would rather not put it into a file as it will be changing in real time
dynamically so it would put some strain on the filesystem. All I really want to
do now is just stick it into a string variable. How could I do that?
you could just use http://us2.php.net/file_get_contents
--
PHP
I've been looking for about changing somewhere the session exiration
time, but only found about the session cookie expiration.
- Wich is the default timeout for a session? And, is some way to know
the expiration time for a session?
Take a look at the ini variables.
unset($_COOKIE['foo']);
And also
$_COOKIE['foo'] = '';
Are you trying to delete the cookie on the client side?
if so try:
setcookie ('foo', '', time() - 3600);
http://us2.php.net/setcookie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Warning: main(PEAR.php): failed to open stream: No such file or directory in C:\
www\pear\Archive\Tar.php on line 21
Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUM
E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop1.tmp') in C:\www\pear\Archive\Tar.php on line
21
pear is
On Tue, 27 Jul 2004 21:22:05 +0200, Erik Franzén [EMAIL PROTECTED] wrote:
I am correcting myself...
?PHP
class foo {}
$oObjectA = array();
$oObjectB = array();
for($i=0;$i2;$i++) {
$oObjectA[$i] = new foo();
$oObjectB[$i] = $oObjectA[$i];
}
unset($oObjectA[1]);
My web host recompiled php with the freeTDS library for me so that I can use
the php mssql extensions but it still doesn't seem to work. He has told me
that I can change the configuration file...what needs to be done?
any error messages? Can you use tsql to connect to the mssql databases?
I was simply using a script which attempts to use the mssql_connect function
yet I still get the error that it is undefined
http://mwvre.ht-tech.net/dbtest.php
if you do a phpinfo() do you see any mssql information?
php needs to be compiled with freetds
http://us4.php.net/mssql
--
PHP
I'm familiar with perl's LWP library. Today I searched through the PHP
documentation, but the only thing I found that was somewhat similar to
LWP was file() and some socket-functions to do http-GET/POST calls to a
foreign server. Are any higher level functions available so I don't have
to
Problem is that when someone goes so far in the ordering process, and then
(for whatever reason) leaves the site, and comes back hours, seconds or
whatever later, and goes again to place an order, the details are different
(time), and the session stays the same so the order entry is entered
Ten separate arrays with an array at 0 that has the data I'm after.
This is where I'm getting stuck. How can I get to the keys that are
either 'mc' or 'truefalse' and sum them?
foreach my man
http://us2.php.net/foreach
foreach ($_SESSION['arans'] as $arans) {
$truefalse +=
I need to kill that extra Texas and Virgina.here's how I'm doing this:
table border=1
?
$query=mysql_query(SELECT DISTINCT state FROM members WHERE
country='US' ORDER BY state ASC);
while($q=mysql_fetch_array($query)) {
$q1=mysql_fetch_array($query);
$q2=mysql_fetch_array($query);
--snip--
$char_code = strpos($char_set,(substr($input,$loop,1)));
--snip--
even a little shorter
$char_code = strpos($char_set,$input{$loop});
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am learning php.
I need to log all actions on my page. (like ip, browser, time, pages etc).
question is: how can i identify a user and when he is on my page(s) to log
all his actions.
Along with the other stuff posted, take a look at
http://phpsniff.sourceforge.net/
--
PHP General
the form is separated into 5 sections and if there are no items filled out
in that section, then i need to hide the title too.
I have been playing around with the syntax and am not having any
success...any suggestions?
here is a sample of what i am trying:
?php
PDF Lib is very COOL , its give you ability to encrypt an existing pdf file
its give you a powerful method to import pages from an existing pdf file and
do some thing on it , its have only one problem very expensive price for
full power .
if they only split php version annd change the price
Needless to say, the href is quite long and includes several '
characters. My conditional works great but I want to know if there is an
easy way to escape the whole href so that the ' characters will not be
seen as PHP quote marks. See below...
urlencode will escape the quotes
--
PHP
Good solution, but the problem is once the program is
completed it goes out of my hands and most prolly the
client wont know the exact paths, the templates folder
would *always* be one below...but the path before the
/templates will change.
if you dont know what directory it will be in, how
Have you tried
$_SERVER['DOCUMENT_ROOT'].'/';
sorry, I meant
include($_SERVER['DOCUMENT_ROOT'].'/templates/header.php');
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
foreach($_POST as $key = $value){
if($key == 'Submit'){
exit;
}
else{
$sql = INSERT INTO registration ('$key')
VALUES ('$value');
$result = mssql_query($sql);
}
}
not sure if wrapping columns names in single quotes is valid mssql, try:
$sql = INSERT INTO registration
I've got a field in my database that contains a single numerical character
(1 or 2 or 3, etc.). I need to load a different background image in
one cell of a table depending upon what the number the field contains.
What's the easy syntax for associating entries in the field (1 or 2 or
3, etc.)
imgBkgrnd = array(1= bkgrnd-default.gif, 2 =
bkgrnd-positive.gif, 3 = bkgrnd-negative.gif);
You got it...
imgBkgrnd = array(1= bkgrnd-default.gif, 2 = bkgrnd-positive.gif,
3 = bkgrnd-negative.gif);
imgNeeded = table['field'];
imgName = ???
http://us3.php.net/array
$imgBkgrnd =
How do I determine with which user's permissions PHP scripts are executing?
I am experimenting with suEXEC and running PHPs as CGIs; I need to know
with which user's permissions PHP scripts are executing.
I've tried using getmyuid() and get_current_user(), but these only report the
owner
I never tried but i think it is possible using the pecl extension:
http://pecl.php.net/package/perl
Here is a short tutorial
http://www.zend.com/php5/articles/php5-perl.php?print=1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have decided to look for an alternative to file_exists() because it is
taking too long. Is fopen() a good alternative or what?
maybe stat()
http://us4.php.net/manual/en/function.stat.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If anyone knows how to setup IIS6 to allow the same .php extension to be used
with dedicated copies of php.exe + ini files I would really appreciate the
assistance. Maybe some clue I am missing about the behavior of the web extensions
manager or a method of defeating it?
Have you tried a IIS
I am developing an app in which my visitors must be able to enter text and
do some minimal HTML formatting including making some of the text
hyperlinks. I like the looks of htmlArea, but can't get either available
version to work in any Mac browsers. I've also found EditLive! and am
intrigued
I would prefer to have if possible:
input name=Grid1[] typecheckbox //1st grid, 1st
checkbox
input name=Grid1[] typecheckbox //1st grid, 2nd
checkbox...
That's what Matt M proposed.
If I do: echo $_POST['Grid1'];
I have on as a result and not a value. I also tried
with echo $_POST
Since you are getting the information from the page anyways, just simply
do:
$_SERVER[PHP_SELF]?parameter1=$_GET[parameter1]parameter2=$_GET[paramet
er2]parameter3=$_GET[parameter3] etc...
should also make sure to urlencode the data
here is another thrread about it
I am writing an app and right now im working on code that will display x
number of items on one page, and if there is overflow, provide a link to
the next. The url coming into the page looks something like:
projects.php?action=viewcompleted=nostart=0
My code so far, i just took the
If I don't want to use session cookie , how to set it?
thanks.
ini_set('session.use_cookies','0');
before all of your session_start() calls.
or set it in the php.ini, .htaccess or httpd.conf file
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
what do you get when you print_r($_SESSION) ?
try session_write_close() at the end of your scripts.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi to all,
is there any function wich can format a double or string into money
format.for example: 1526789,99 to 1.526.789,99 or something like that.?
Regards Lukas
You could try http://us2.php.net/manual/en/function.money-format.php or
Now, I want to know which numbers have been checked by the player.
I have a :
input name=Grid1 type=checkbox
for the first grid. Grid2 for the grid #2...
input name=Grid1[] type=checkbox value=whatever /
input name=Grid2[] type=checkbox value=whatever /
if the user checks any Grid1[] boxes
ps.. to you guys who said that the textarea doesn't have a value=''.. it
does...
Where did you find this out? I was pretty sure that is did not have
the value attribute.
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/textarea.asp
I would like to use the file_exists() or something similar to check for the
existance of any of the xml files regardless of what filename it use. Like
file_exist(*.xml) for example. Anyone know??
http://us3.php.net/readdir
?php
if ($handle = opendir('/path/to/files')) {
while
Anyway to do it using PHP?
Com objects or use perl
http://search.cpan.org/~kwitknr/Spreadsheet-ParseExcel-0.2603/ParseExcel.pm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I need to check that the substring R (that's a space followed by an
uppercase R) is not contained within my haystack.
Just one way to do it:
$strings[] = 'Blah Blah R 99.99';
$strings[] = 'Blah Blah R99.99';
$strings[] = 'Blah Blah 99.99CR';
foreach($strings as $value) {
if
How do I gather up all the variables in $_POST and attach them as a
string after the question mark? Thanks.
this is untested:
$arr = array();
foreach($_POST as $key = $value) {
$arr[] = $key.'='.urlencode($value);
}
$URL = https://example.com/script.asp?.implode('',$arr);
I have a form where one option is a dropdown menu. I'd like that menu to
only have items in it that are actually available. Selecting the items with
a query is easy enough but I wondered if anyone could tell me where to start
wit the code.
I dont know what kind of db so I will just use mysql,
Thanks for the helpful examples. One other question. Is there an
advantage to sending the URL via a header as opposed to doing http_post
like this?
http://shiflett.org/hacks/php/http_post
Jeff
Like someone mentioned earlier. URL's have length limits. That would
be one reason to do a post.
Ok then, I want to know how to do it the right way but just using
$_POST['text'], as stated before, in my query still cuts off the text at
the quote.
While passing this field between pages I don't do anything to it but when
I want to show it to the user I would use
Obviously the new-line is missed. Any thoughts on this?
sample code:
ereg(Last Name:\s*(.*)\n, $strInput, $regs)
echo $regs[1];
try this:
ereg(Last Name:\s*(.*[^\n]), $strInput, $regs);
echo $regs[1];
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi! I saw the php function flock(), since I never used it before so I
thought I would ask you folks a couple of questions.
did you read all of the user comments on http://us2.php.net/flock
There is a bunch of good info in there
--
PHP General Mailing List (http://www.php.net/)
To
.
Can someone help me?
FYI: I'm a newbie. Please forgive me if this is an old-hat question.
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I want to use a large Excel sheet in a website. The Excel sheet exists of
lots of functions and the developer of it is a financial person who is used
to programmning in Excel, not in other programming languages. How can i:
insert the data that's filled in in several forms on web pages (i guess
?
setcookie(cookie[name],$_POST['name'], time()+86400)
setcookie (cookie[email],$_POST['email'], time()+86400)
setcookie (cookie[bgcolor],$_POST['bgcolor'], time()+86400)
setcookie (cookie[tcolor], $_POST['tcolor'], time()+86400)
?
you could try this:
setcookie ('values',
How can I handle this cookie when using php? Is there an easy way? It
would be best just to use fopen(http://...;).
http://pear.php.net/package/HTTP_Client
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anyone have any ideas why this happens???
You have any code examples?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$mydata-JR = eregi_replace($searchenquiry, b.$searchenquiry./b,
$mydata-JR);
echo $searchenquiry;
What I should display is if $searchenquiry = $mydata-JR in a case insensitive way
then
echo b.$searchenquiry./b;
Do I use if (x =~ b) {} or some sort of string compare or ... ?
John
if
The problem is $searchenquiry would be contained inside $mydata-JR so I would need
to see if it exists and then put b.../b around it, without changing the original
case.
what do you have in $searchenquiry?
try this
echo preg_replace ('/('.$searchenquiry.')/i' , b$1/b, $mydata-JR);
--
:if ($calcentry) {...}part of my code and do some calculations with
php and mysql and put my output into textarea2.
if ($_POST['calcentry'] == 'Calc Your Entry') {
}
is one way to do it
So my first question is how do I keep the data in textarea1 so when I
perform my submit I can do some
What I'm trying to do:
I'm trying to have the proper variables for the eregi_replace so that each
word in the $dico array is replaced by a link to its definition respecting
the following rules :
-only exact match makes a link to the definition, for example :
- abaisseraient doesn't
$searchenquiry = Never cry Wolfe
and
$mydata-ST contains ... Never Cry Wolfe ...
This code echos:
td.preg_replace ('/('.$searchenquiry.')/i' , b$1/b,
$mydata-ST).nbsp;/td
td... bNever cry Wolfe/b .../td
But I want it to use the original text and echo:
td... bNever Cry Wolfe/b
1. pull a list of products from the database
2. truncate each product id down to it's first letter
3. remove all the duplicates
4. use this list to build the links.
I would let sql do some of the work.
select count(*) from products where product_name like 'A%'
if count does not return 0 you
SELECT autoQuesID, fldQuesTitle, fldBody FROM tblFAQ_Question WHERE
(blnHidden = FALSE AND ((fldBody LIKE '%$strCriteria%') OR (fldQuesTitle
LIKE '%$strCriteria%')));
Say $strCriteria comes from one of the values in the $_REQUEST array,
a user change is coming through in that variable. so
This looks like a good solution. What is the best way to list the current
users, since the sesssionData seems to be serialized in the db or something?
I just want to list out all the users from the db.
Thanks,
Matt
http://sweetphp.com
Greg Donald [EMAIL PROTECTED] wrote in message
news:[EMAIL
Okay, I actually found out how to list the users, but you have the following
line of code:
define('SITE_ONLINE_EXPIRE', 900);
What is the 900? Is that 900 seconds?
Thanks,
Matt
http://sweetphp.com
Matt Palermo [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
This looks like a good
On Thu, 01 Jul 2004 11:52:47 -0400, John Taylor-Johnston
[EMAIL PROTECTED] wrote:
Hi,
I need another variable. I need the filename itself. I want to substitute
/var/www/html/new1/foo.html
for
/var/www/html/new1/phpinfo.htm
I am not exactly sure what you want to do but I think you
,
Matt
http://sweetphp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in
existance. Is this possible to do?
Thanks,
Matt
http://sweetphp.com
Zareef Ahmed [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
If you are using a database on your server you can
do this as follows:
1. Make a table named
active_users(userid,last_access);
2. Record every visit
That just put me right back at the beginning, IE trying to DL the PHP
page...
I have php 4.2.2 installed at this moment as well...
there might be some things you could try in this thread
http://marc.theaimsgroup.com/?l=php-generalm=108361967402210w=2
--
PHP General Mailing List
another button to the form that utilises my JavaScript popup function and
takes the values from the same form?
This is not a php question.
All you need to do is loop through the form fields on you page and add
them to the end of your url.
--
PHP General Mailing List (http://www.php.net/)
Thanks for your reply, the problem here is that if I loop through the values
and them to the URL when the other button is pressed to submit the form the
form action will still kink to itself rather than opening a new popup
window...
input type=submit name=submit value=Submit onclick=return
There's a number of functions in PHP that will give me the position of
the *first* instance of the matched string, but it doesn't look like the
function would keep searching after the first match. Anyway, am I
overlooking a function that already has the functionality that I'm
searching for?
I want to have something similar to this but as mentioned above want
something more reliable so does anyone know a php function to do this or
have a better option?
http://us3.php.net/manual/en/function.str-word-count.php, also some
good suggestions in the user comments
--
PHP General Mailing
and the HTML) and when I sent an
email to his hotmail account, hotmail simply displayed a blank page.
My client is getting quite frantic about this so if anyone has any
suggestions, I'd be very grateful.
This is the script I am using:
$to=Matt MacLeod [EMAIL PROTECTED];
$from=Vinciane Rycroft [EMAIL
[snip]
The catch here is that my target is an asp page that requires a login
to
get to the page I would like to get to. They do allow for the check
here so i will be remembered next time, but will that work with a php
screen grab.
[/snip]
http://pear.php.net/package/HTTP_Client
--
PHP
[snip]
Anyway, to get this to return a count of two?
[/snip]
just strtolower or strtoupper both $strHaystack and $strNeedle
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Is this right? Is there other efficent way to do it?
What about if data changes (i.e. new records are added) while the user
browses through pages?
[/snip]
on each page do a:
SELECT count(*) FROM table WHERE your_condition
this will give you your total number of results
--
PHP General
[snip]
echo Some text.aFunction().some more text;
[/snip]
Have you checked to see if aFunction() is returning anything?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
echo Some text;
aFunction();
echo Some more text;
[/snip]
What is printed out?
if aFunction() is returning the string test then this code: echo
Some text.aFunction().some more text; should print out:
Some texttestsome more text
--
PHP General Mailing List (http://www.php.net/)
To
[snip]
Can someone help me fix my code so that when I add an element I can
also set
some contents or a value for that element? example
serial_number000/serial_number
[/snip]
$doc = domxml_new_doc(1.0);
$root = $doc-add_root(Server);
$root-set_attribute(Name, pxtest01);
$el =
[snip]
I have a csv string. But the string also contains other strings with
commas.
[/snip]
is the csv coming from a file? if it is try
http://www.php.net/manual/en/function.fgetcsv.php
if not there is some user comments on that page that might help.
--
PHP General Mailing List
[snip]
So I have:
$doc-save(/tmp/test.xml);
This does not work
Thoughts?
[/snip]
you have this in your previous email $doc-dump_mem() . Just do this
$file = $doc-dump_mem();
then write $file to a file.
there is also this
http://www.php.net/manual/en/function.domdocument-dump-file.php
[snip]
Any help with parsing a string to replace those comma in string?
[/snip]
this was in the user comments on
http://www.php.net/manual/en/function.fgetcsv.php
function csv_split($line,$delim=',',$removeQuotes=true) {
#$line: the csv line to be split
#$delim: the delimiter to split by
[snip]
The part that's not working is the $REQUEST_METHOD=='POST' line.
[/snip]
try $_SERVER['REQUEST_METHOD'] instead of $REQUEST_METHOD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Have I gone loopy? Wait, don't answer that. Do I need to do something
else to get the file size? I have read and searched, but to no avail
yet. TIA!
[/snip]
Have you tried absolute path in filesize($theFile); or maybe chdir to
$arrDirectory[$i]
--
PHP General Mailing List
[snip]
What i am thinking about is using the MAC-address instead of the
IP-address
to ban troublesome users from forums etc.
[/snip]
Do you make people login? If you do couldn't you just flag troublesome
users and not allow them to login.
--
PHP General Mailing List (http://www.php.net/)
To
[snip]
When I use include, my script is waiting included script results. But I
just
want to run another local script without wait result.
[/snip]
you could try something like this
$cmd =/path/to/php.exe . ' ' . /path/to/your/script
exec($cmd);
check out
401 - 500 of 1597 matches
Mail list logo