read this: http://php.net/register_globals
If it's still not clear, check the archives.
If you still can't find an answer come back here and we'll spoon-feed you.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
would likely involve writing a PHP extension to
interact with the DLL. PHP|A[1] has a good article on this in the
January issue.
--
Stuart
[1] PHP|A: http://www.phparch.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sichta Daniel wrote:
THX for links but could you please give me url of that article ?
http://www.phparch.com/issue.php?mid=22
Well worth the US$2.49!!
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or SiteRootDir/index.php
called the function containing this relative URL and I want them to
point to the same location.
Why can't you specify an absolute URL?
Thank you.
You're welcome.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Worms tend to fake the from address with an address
picked at random from the infected users address book - that way they
are likely to get past the simplest anti-spam measures. We've been
getting hundreds of these a day lately. Damn pain they are too.
--
Stuart
--
PHP General Mai
Radwan Aladdin wrote:
Just would like to know if you can call DLL from PHP the same way you do in ASP? If so then can any one pass me some example or links.
If COM, http://php.net/com but if vanilla then you're looking at
wrapping it in an extension.
--
Stuart
--
PHP General Mailing List
pplication. What
you'll need to do is wrap the exe in a CGI script (in perl, php,
whatever). I had to do this with a much older version of IMail a while
ago and it worked fine once I had it working.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
de up
from the query string. I would be very surprised if there weren't
examples of doing this with IMail's adduser on the net somewhere. Google
is your friend.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Rajani Anand Iyer wrote:
Can someone recommend some good books on PHP Advanced topics.
http://php.net/books
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Diana Castillo wrote:
How do I replace all single quotes with double quotes in a string for
echoing it with the double quotes?
$text = str_replace("'", '"', $text);
http://php.net/str_replace and please at least RTFM before posting here
in future.
--
Stuart
--
's just me, but I feel that serving a site that wasn't designed
for viewing on PDAs to PDAs is generally a bad thing.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Juan Torres wrote:
I'm trying send emails from PHP with IIS (form Win32).
With ASP, I used CDONTS component.
How can I use CDONTS component from PHP?
RTFM! http://php.net/mail
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mayo wrote:
Has anybody else been getting spammed with penis and breast enlargeners to
their listserv email?
Always.
I use [EMAIL PROTECTED] solely for listservs and in the past week I've
started getting 5-10 spams a day.
What did you expect when you posted to a public mailing list?
--
S
Stuart wrote:
mayo wrote:
What did you expect when you posted to a public mailing list?
Oh, and it's worth mentioning that you've made that address an easier
target by including it in the body of the message. It means that email
harvesters that miss the encoded ones in archives will pr
MHO it's a better way to do it, but I can't actually
see a reason why I feel that way.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
on in several formats and many many
languages: http://php.net/docs
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
heaimsgroup.com/?l=php-general
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Shaun wrote:
How can i tell if one date occurs before another date in the format
-mm-dd?
$date1 = '2004-01-01';
$date2 = '2004-02-01';
if (strtotime($date1) < strtotime($date2))
{
...
}
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
PETCOL wrote:
Stuart
Thank you.
Don't thank me[1], thank them. Preferably with cash[2].
[1] I will accept cash if offered.
[2] http://marc.theaimsgroup.com/?q=about#Begware
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cho array_shift($pieces);
}
http://php.net/array_shift
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
can probably help.
T_VARIABLE is PHPs internal representation of a variable (I could be wrong).
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ve
great hole in your servers security.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
QL does not consider them duplicate rows.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a custom error handler class that's working well. My problem is
that I can't find a way to find out whether a particular error has been
suppressed using the @ prefix. Is there a way to do this with a custom
handler?
--
Stuart
--
PHP General Mailing List (http://www.ph
value of error_reporting and act appropriately. Of particular
note is that this value will be 0 if the statement that caused the error was
prepended by the @ error-control operator.
-
Oops. Thanks John.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
/view/Codev.WindowsInstallModNTLM
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
u are assured that the
user has authenticated and you can get their username from the
$_SERVER['REMOTE_USER'] variable.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dominique ANOKRE wrote:
how to generate a image link with php ?
i use this but it returns errors :
print("");
print("img src="image.jpg");
print("");
Try...
print('');
print('');
print('');
And I'd suggest getting a be
fference.
For more info on what 'open source' actually means, see
http://www.opensource.org/docs/definition.php
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
pass the requested URI to the 404 file? You might be able to
use that.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a lot of effort for little
gain to me.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;s something that should be part of the session handling - it's easy
enough for the few people who would want it to add it themselves.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
use either the isset or empty
functions. The alternatives are to suppress this particular error with
the @ operator or lower your error_reporting level. Everything you need
to make any of these changes is spelt out in detail in the manual.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
commercial and free, that can. I suggest you Google...
http://www.google.com/search?q=pdf+to+text
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
believe there is a PHP-only way to do it. Please prove me wrong though...
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Matt Palermo wrote:
How can I get the field names from a specified MySQL table? I don't need
the data, I just want to get an array of the tables field names.
http://php.net/mysql_list_fields
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
doesn't mean that $i isn't defined. It means that $this->inputs[$i]
isn't defined for the value of $i where the notice is generated.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ben Ramsey wrote:
Anyone know of any kind of character limit in php or mssql (yes,
Microsoft SQL Server) for entering long text into a text column (of
around 4,055 characters in length--that's where it's cutting off)?
Have a look in php.ini - IIRC there are 2 options that affect this.
Will wrote:
My sendmail_from is as follows:
sendmail_from = [EMAIL PROTECTED]
Did you restart Apache (assuming you're using the module) after making
this change?
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ke nothing more than
a waste of cycles to me.
Or am I missing something weird about how PHP works?
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
g like this...
class session
{
var $test="TEST";
var $browser;
function init()
{
$this->browser = new browser($this);
}
}
class browser
{
var $session = null;
function browser(&$session)
{
$this->session = &$session;
}
function parent_test()
st be something not quite right
about your setup. Care to share more information?
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
able. Essentially it
sets error_reporting to 0 while it evaluates that block.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
&' in my variable?
http://php.net/urlencode
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
am violating some html tag rules and the browser does
not have a too much problem with the few hundred post variables.
I am using apache2, php4 and Explorer for the browser, however it also
crashes in Netscape (but not as bad).
Stuart
--
PHP General Mailing List (http://www.php.net/)
To
me servers have 'automatically adjust clock for daylight saving
changes' switched on, some have this off - (im in the UK GMT +0).
With daylight saving on the above script returns: 2003-03-29
With daylight saving off the above script returns: 2003-03-30
Im pu
Alex Shi wrote:
> Is there a good way do drop an element from an array?
Unset (http://www.php.net/unset) the element and it will be removed from
the array.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
our SQL syntax near
> 'WHERE username='kurth' AND preference=required_hits SET preference=5'
> at line 1
>
> what gives?
1) This is a PHP list, not an SQL help list
2) The SET clause goes before the WHERE clause
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e if this is the case - it will be FALSE if
it failed. In this case my guess would be that the backticks are not
valid string delimeters.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
es issue.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wednesday, June 5, 2002 at 1:57:09 PM, you wrote:
> // the error is bieng caused here
> $size = int filesize($file)
You don't need the int and you were missing a semicolon...
$size = filesize($file);
--
Stuart
--
PHP General Mailing
cess
> ="Failure sending email.";
> //31
> if ($emailsuccess == "") {$emailsuccess = "Email Sent Successfully.";}
Line 29 is missing a semicolon at the end. It would have been much simpler if
you had just posted these 3 lines in the first place.
--
Stuart
nasty here
< /SCRIPT>
I don't know what others use strip_tags for, but I've only ever used it to
remove script/html tags from forum posts. Using your code would create a massive
security hole.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday, June 7, 2002 at 10:30:59 PM, I wrote:
> < /SCRIPT>
There should be another space here...
< /SCRIPT >
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ould be valid HTML, but I just checked and it's not.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
azing
> porn.
I'm more amazed that MySQL doesn't fall over and cry like a baby under the
amount of pressure that 2.5 million queries per minute would create!!
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
just installed: http://www.php.net/release_4_2_1.php (specifically the
'External Variables' section).
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt; if ($phrase){ echo "Phrase-- $phrase";}
> Else{ echo "No Variables";}
?>>
Try changing the above code to...
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.com/ for
full info.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday, June 8, 2002 at 3:23:01 PM, you wrote:
> Is there another way to read the files from a directory?
http://www.php.net/readdir
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s $key => $val)
{
if (is_array($val))
$arr[$key] = recursive_array_reverse($val);
}
return $arr;
}
Let me know if this works.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
l to array_reverse :).
function recursive_array_reverse($arr)
{
foreach ($arr as $key => $val)
{
if (is_array($val))
$arr[$key] = recursive_array_reverse($val);
}
return array_reverse($arr);
}
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ens. We are not mind readers.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tuesday, June 11, 2002 at 10:25:36 PM, you wrote:
> I would like to know wether it's possible to put an array into a database?
> If not, what is the best way to archieve something like that?
Yes it is. See http://www.php.net/serialize
--
Stuart
--
PHP General Mailing
ike a 1-dimensional associative array)
> it would work?
As far as I know, serialize will handle multi-dimensional arrays. If I were you
I would suck it and see.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tuesday, June 11, 2002 at 10:59:13 PM, you wrote:
> I Have worked out this, but when $menu is not set it does the foreach
> function anyway, and desplays an error.
> What Can I do to stop the foreach function from working if $menu is not
> set??
http://www.php.net/isset
;d point out an error in your explanation. PHP is executed by the
server, not by the browser. Therefore, IE cannot have "blissfully ignored" an
exit directive since it never saw one. I think you've solved your problem by
coincidence rather than logic - a very bad way to write code.
--
o is on the
manual page. Don't forget to run addslashes on the string before trying to
store it in the database.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ontinue to enjoy it?
> getAd.php?id=1
The variable can be found in the $_GET array, as in $_GET['id'].
Or have I misunderstood your problem?
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
27;TEXT')
echo($record[$field]);
}
}
That's going by your code. However, it still doesn't make sense and will result
in an endless loop since $type never changes.
For the record, a goto would be the worst way to implement something like this!
I hope that helps a bit.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;t do so with text contained within 's. However, neither will be quicker
than inline HTML since PHP completely ignores that as previously mentioned.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hoax".
Unless your server has phps (source view) enabled. If it has then you can see
the source of any file by using the extension .phps.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
>> > So IMHO this is a "hoax".
>>
>> Unless your server has phps (source view) enabled. If it has
>> then you can see
>> the source of any file by using the extension .phps.
> Awright! But then it would be possible with any browser...
Unless I mis
On Thursday, June 13, 2002, 2:59:35 PM, you wrote:
> yes the bad guy says it only happen in opera
> i ask to show me how but give no response until now
Let us know what he says. I think we'd all be interested.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To
On Thursday, June 13, 2002, 4:36:29 PM, you wrote:
> Why $HTTP_USER_AGENT don't work?? I can't get it's value, but in phpinfo the
> value appears. why this???
Try $_SERVER['HTTP_USER_AGENT']. If that works, read
http://www.php.net/manual/en/language.variab
plenty out there. However, to answer the question I
think you were asking, PHP does not come with a ready-to-run web server.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rk I suppose... if you were that way inclined! :)
As previously mentioned, there is one: http://nanoweb.si.kz/
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
they probably already get.
Basic fact: If a normal (anonymous) visitor can get at the email addresses, so
can a bot. It all depends on the bot, but there's no getting around that basic
fact.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ink and
builds the mailto: link at runtime. Google should be able to point you in the
right direction.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hat new
> window again be just as bad as displaying it on the main page?
> I realize this isn't a new idea, but I'm assuming it's more secure than
> just keeping a mailto:[EMAIL PROTECTED] link around.
Yes, that's one common way to 'hide' the email addresses.
:
> Notice: Uninitialized string offset: 1 in show.php on line 4
> How could I know the values of the text? without modify example.html
The easiest way would be to modify example.html and change each instance of
name="text" to name="text[]". However, since you say you cannot do th
echo "Thank you for shopping!";
}
And if it works, read this: http://www.php.net/manual/en/language.variables.scope.php
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he ?
If you really want to, but I can't think of many reasons why you would want to.
> Thanks!
No problem.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
'node'];
> It doesn't seem to know about $_SESSION.
> Can someone help me out?
Do you have a call to start_session() at the top of both files? If not, that's
what's missing.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Before any HTML or other PHP code. This is because it sets a cookie which needs
to be able to send an HTTP header which can only be done before any output is
generated (unless output buffering is enabled). According to the error, the
call to session_start() is on line 9 but output was generated on l
On Thursday, June 13, 2002 at 10:32:25 PM, you wrote:
> Thanks to Julie and Stuart for helping me.
> With your direction, I got rid of the warning about the headers by putting
> the session_start() at the beginning of the file.
> Now I get a different sort of error when I try to
../../../../../../etc/passwd'.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ed to extract the session into the global scope.
> With register_globals=Off, I understand that you need to extract the $_POST
> and $_GET vars. I assumed the same for $_SESSIONS. Is this not true?
No. If you use $_GET, $_POST and $_SESSION to get to those variables then there
is no nee
before.
Dunno, never used SSL with Apache. Sorry.
I hope that helps.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ation.php#ini.max-execution-time
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
project. However, I would expect that there
would be little difference whether you implement it using IIS or Apache.
> Btw, thanks Stuart, thats kinda making me feel easier about keeping it IIS.
No problem. Don't get me wrong, I think the ?AMP combination
(Linux/FreeBSD/etc, Apache, My
know that they do use other platforms for other servers, but as far as I can
tell, they are providing minor services compared to the IIS servers. But do correct
me if I'm wrong.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sion id is. Try putting a link on that page that links to
the same page. Click on the link and you should find that the session variable
now persists.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. I (and I'm sure there are others) would prefer it if you could create a new
thread for a new topic. It makes things a lot easier to follow.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
}
print 'reload page';
?>
It works. If this code doesn't work for you then it's something wrong with your
server configuration.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t be told about it.
Is the server you are using public? Can you post the URL so we can take a
look?
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he page.
It's saying that there is no variable named var stored in the session. I'm at a
loss. I can't see any reason why it's not working. What URL does the link in
your page go to? It should have a query string on it. Does it?
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. It all depends on the job in hand and I will choose a platform based
on my requirements. I would certainly not base my decision on the
foundation-less spoutings of someone on a mailing list (that includes me,
although I am trying to walk the neutral path). My only hope is that people
will stop dism
can find that
setting in the site properties, Home Directory tab, click on the Configuration
button, then go to the Process Options tab. At the bottom of that tab you
should have a CGI script timeout value. Try increasing that.
--
Stuart
--
PHP General Mailing List (http://www.php.net/
ght place and is the tab just
> missing or is there a problem on my behalf?
What version of IIS are you running? It may be in a different place on your
server.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
301 - 400 of 1126 matches
Mail list logo