Hey Ben:
Ben Sinclair wrote:
These are all workable solutions
Not really. JavaScrap and cookies are not a solution. They're a quick
answer which doesn't work 100% of the time. *IF* you're going to use
sessions, use a URL based session ID, which will work in 100% of browsers.
Not all
Hey Sergio:
Jena wrote:
how can I pass either the internal anchor and the variable in the url?
I tried in many ways
echo a href=\page.php#my_anchor?variable= . $my_variable . \go to/a;
echo a href=\page.php?variable= . $my_variable . #my_anchor\go to/a;
This URL works for me:
Hi Steven:
Steven Walker wrote:
Does anybody know why the predefined variable $REMOTE_ADDR would be
null, while getenv(REMOTE_ADDR) works fine?
Put register_globals on via your php.ini or .htaccess file. In php.ini,
change
register_globals = Off
to
register_globals = On
Enjoy,
Hi Byron:
Byron Albert wrote:
The major problem here is that some times we want lt; and some
times we want to input html tags.
The solution depends on what you're trying to do. What's your goal. Are you
using the text area to store full web pages, or examples of how to write
HTML, or
Hey Austin:
text has been edited in MSWord and the
quotes that it uses get turned into question marks. does anyone know a
way to convert these MSWord quotes to normal marks?
Replace the nasties with preg...
$Data = preg_replace('/[\x93\x94]/', '', $Data);
I figured out the Hex
Hi Folks:
Upgraded today from 4.0.7-dev to 4.1.1 on my Windows NT / Apache system in
hopes of eliminating a problem I'm having. But, doing so brought up another
problem...
First, I found that in my 4.1.1 implementation, I had to use short file names
when running PGP in an exec() statement. In
Howdy Steven:
Steven Walker wrote:
If data is missing or incorrect, the user is alerted to 'go
back'... but upon going back in history, all the data that was in the
form is lost. This did not occur on my regular not-secure web server.
Page caching. You can alter that through the header()
Hi Sean:
Sean Hurley wrote:
Agree input type=checkbox name=agree[] value=agree
I Do Not Agree input type=checkbox name=disagree value=disagree
if ($agree) /* (I have tried this also with ($isset = $agree)) */
{ header (location: ?link=form);
}
else
{ header (location: /LETS);
}
Hi Olev:
There are several threads on this in the archives. In fact it was discussed
just the other day.
http://groups.google.com/groups?hl=engroup=php.general
Put mime email into the search criteria and that discussion is the third
one down.
Enjoy,
--Dan
--
PHP scripts
Hi Ed:
I saw PHP has built-in support for Cybercash, but that Verisign has
purchased them. It looks like I'll have to go with Payflow Pro, but I'm
wondering if PHP has built-in support, available modules, or what the best
approach is. Any recommendations?
PHP does indeed have support for
Hey Vaclav:
Vaclav Muchna wrote:
system('/fullpath/ob', '100');
produce this message:
X-Powered-By: PHP/4.1.0
Content-type: text/html
No input file specified.
but, when i remove -q parametr from ob, it procude this message:
X-Powered-By: PHP/4.1.0
Content-type: text/html
#!
Hi:
SED wrote:
I'm trying to find out what country the visitor comes from to offer them
suitable language
$HTTP_X_FORWARDED_FOR
or
gethostbyaddr($REMOTE_ADDR)
Domain names and IP's are NOT the way to go. Way to unreliable. Use the
HTTP header
Mr K:
Karadamoglou Kostas wrote:
I don't know to configure MySql Database On Apache Server in
Windows System. What I must do? (step by step)
Read my MySQL Basics tutorial:
http://www.analysisandsolutions.com/code/mybasic.htm. It's a really straight
ahead, step by step explanation on how to
Folks:
Baloo :0) wrote:
header(Location:www.mydomain2.com);
The header funcion really requires a fully qualified URI, and needs a space,
so make that
header(Location: http://www.mydomain2.com/;);
Later,
--Dan
--
PHP scripts that make your job easier
Phillip S. Baker wrote:
Greetings All,
What I want to do is create a tab-delimited text file for download from
records in a database.
Construct then execute the desired query
http://www.php.net/manual/en/function.mysql-query.php
Loop through each record, putting each row into an
Hi John:
jtjohnston wrote:
I'm looking for a function that will find occurences of urls in any
given string and do this:
http://www.nowhere.com/
becomes
a href=http://www.nowhere.com/;http://www.nowhere.com//a
?php
$Val = body of text you want to process...;
$Val =
]'; # from address
$Name = 'Analysis and Solutions'; # your name
$FileName = 'email.attach.test'; # should be a .zip file
# don't include file extension
$InDir = '.'; # directory where file can be found
# Used for purposes of this example,
# but set another way in my real script
Hey Petr:
2) I realize that in string obtained by fread() the following characters are
changed:
#0 () - #92#48 (\0)
#34 () - #92#34 (\)
#39 (') - #92#39 (\')
#92 (\) - #92#92 (\\)
WAIT A SECOND! You've got the magic_quotes_runtime configuration variable
Hi Folks:
Gerard Onorato wrote on the PHP-GENERAL mailing list:
Security Advisory DW020203-PHP
Release: 3rd February 2002
PHP Safe Mode Filesystem Circumvention Problem
... snip ...
FIX
Currently, no fix exists.
... snip ...
A suggested fix for the PHP developers might be to scan
Hi Anthony:
Anthony Rodriguez wrote:
The following php script sends two (2) e-mails to each addressee. Why?
I'll bet the email addresses in question are listed in the table twice. Open
up a MySQL command line prompt and enter select * from con_inf; to make
sure. To keep this from
Hi Philip:
Several problems...
?php
$get_url = http://www.philipsdomain.com;;
Put a / on the end there. Without it, you're not really hitting a page,
but rather a redirect to a page.
$metatags= get_meta_tags($get_url,1);
echo $metatags[Keywords];
The manual indicates that the key
Hi Robert:
Perhaps you can help, since my posts don't seem to be making it to the
newsgroup.
I have been trying to use readfile() or header() to load another PHP...
Check the archives: http://groups.google.com/groups?hl=engroup=php.general
Good luck,
--Dan
--
PHP scripts
Hi Philip:
Philip J. Newman wrote:
?php
$get_url = http://www.philipsdomain.com/;;
$metatags = get_meta_tags($get_url,1);
echo $metatags['keywords'];
echo $metatags[description];
?
This code works perfectly for me, on an NT 4 machine using PHP 4.0.7 dev.
Oh, perfectly, spare the fact
Ben:
?
#Header(Location: index.html);
?
You need to put the complete URL, not just the file name.
By the way, folks, DON'T use JavaScript for redirection (or other
essential navigational stuff). Plenty of people out there keep Java'Scrap
turned off for security and privacy reasons.
Hi Folks:
I haven't been reading the list lately. I went to the mailing list archives
on Google and MARC to see what's been said about the Apache Win32 PHP.EXE
Remote File Disclosure Vulnerability. I was surprised to find only one post
to the php-dev list:
As I responded on Bugtraq, this is,
25 matches
Mail list logo