And won't generate a notice.
Alex Earl wrote:
You can unset the variable www.php.net/unset but also I would recommend
using if(!isset($variable)) instead of just if(!$variable) its a little
more clear as to what you are really trying to see I think.
Alex
--
The above message is encrypted with
www.php.net/eval
Ben Houlton wrote:
Is there a way to get PHP script/code out of a DB? Becasue, when I enter PHP
code into the textbox and hit submit, and go check the page it has nothing
there with and just shows the code, e.g.
include("menu.php"); without the tags, the code I'm using to impor
*sigh* Just do:
eval($msg);
Ben Houlton wrote:
I use
echo $msg;
eval("\$msg = \"$msg\";");
echo $msg;
and it comes up with
include("menu.php");
on the live page
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
news:[EMA
The following function converts minutes to years, monthes, weeks, days,
hours, minutes. For instance, 61 minutes would become "1 hour, one
minute". Before I use it, I want to make sure there are no stupid
mistakes. I can't find any, can any of you?
function min2ymwdhm($min){
$a = array();
Already have, and it seems to work fine. Fairly hard to test though,
since the human brain has a hard time converting number of minutes into
years/monthes/weeks/days/hours/minutes.
Alex Earl wrote:
Why not just try it?
Alex
--
The above message is encrypted with double rot13 encoding. An
If $myoutput is "foo", it will attempt to get input from a file named
"foo". Use "command | $myoutput" instead.
Tim T wrote:
I have a mem var $myoutput I would like to pipe it to the input of a
shell_exec command.
I tried shell_exec("command < $myoutput") however this is not quite right.
Anybo
$query = 'select * from table where fieldname in(\''.
implode('\',\'',$myArray) . '\')';
Roy W wrote:
I have a bunch of variables stuffed in myArray()
I want to run a MySQL SELECT statement ($query=" ..") where it will
access only those records in the database "WHERE" table.fieldname is fou
Use the optional second argument to imagejpeg(). www.php.net/imagejpeg
Monil Chheda wrote:
Can any one guide me as to how can I save dynamically
generated .JPEG images on the server ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Unfortunatley, an equation to do what this script does would be as hard
to come up with, and as likely not to work. That's why I want a second
(human) opinion.
PHP4 Emailer wrote:
I'm gonna go out on a limb here, but isn't that why the "human brain" made
calculators? ;)
Good luck with the but
Most likely, you're using some HTML that AOL doesn't like. It's
definitley a client-side issue, in any case.
rml wrote:
I have recently created a site that has some PHP in it. It works fine in
all browsers except AOL. I can see some of the PHP page in AOL except the
one that fetches informati
$command = isset($HTTP_POST_VARS['action'] and $HTTP_POST_VARS['action'] == "data_input") ? "check" : "display";
Daniel J. Rychlik wrote:
I have a line of code in my form that I am trying to get to work.
$action = ($HTTP_POST_VARS['action'] == "data_input") ? "check" : "display";
I recieved
Whoops!
$command = isset($HTTP_POST_VARS['action']) and $HTTP_POST_VARS['action'] == "data_input") ? "check" : "display";
Daniel J. Rychlik wrote:
I recieved a unexpected T_LOGICAL_AND, expecting ',' or ')';
You need to name it formfield[], not formfield.
Noel Wade wrote:
Hi all,
So I was under the impression that an HTML form "SELECT MULTIPLE" item would
return an array with all of the selected items. This array can then be used
with any of the standard PHP array functions, yes?
I have 1 HTML page
I reccomend you don't talk about cracking Zend software on a list owner
by Zend...
Ryan A wrote:
but you can make it a free version if you
want ;-p
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the
http://us3.php.net/manual/en/function.session-decode.php
Andrew Warner wrote:
How do you manually unserialize session data? Using unserialize() on
session data from a sessions table is not working for me.
I have modified the gc function of my MySQL session handler to save
data from expired se
Mishari wrote:
Hi All
I built a MySQL table for all authorized users and
their password , when user correctly enter his
username and password he can access to a PHP site that
contains a link to all document he need
When he click on one of the document to he can
download it, the URL will appear :
Dan Joseph wrote:
Hi,
Just kind of curious what people think. In your opinion,
should a function avoid output? What I mean by that, is should a
function on "do something" without having echo or printf commands in it?
This is something I've been thinking about lately to improve my
pro
Vernon wrote:
The point is I don't know how to do that. That's why I was asking. :)
But it's a javascript question, not a PHP question.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PH
Steve Marquez wrote:
Hello everyone,
Could someone point me in the direction of some info on .htaccess files?
Could someone send me one, tell me where to put it in my
server? I hope this is not a stupid question. I am running Apache on a Mac
with Jaguar OSX.
This has nothing to do with PHP.
--
T
Vernon wrote:
Missing the point all tighter.
The point now is merely that courtesy goes a long way. Why some one needs to
respond in such a fashion is beyond me.
I think it's pretty simple, if I'm posting to a php group, then obviously
I'm using php. Also very simple, yet again, is if you don't w
Lars Torben Wilson wrote:
I have no idea where you folks have gotten the idea that asking how to
get Javascript to interact with PHP would be particularly off-topic
here. Were it the vile transgression this thread has made it out to be,
we probably wouldn't have included the answer in the FAQ.
Tha
Tony Arcucci wrote:
Why this error ( Linux Redhat 8.0, PHP 4.2.2):
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
allocate 1048576 bytes) in /var/www/html/xpai/xmail.class on line 71
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
allocate 131 byte
Miranda, Joel Louie M wrote:
Hello,
Any ideas on this? I have a form some users try and try to reload and it
floods my mailbox
This is one of the most asked questions, right behind "OMG! MY
VARIABLES DONT PASS111". Search the archives.
--
The above message is encrypted with double rot13 e
Thomas Hochstetter wrote:
Hi guys.
I want to call this generic echo function within a class, but have
trouble referencing the output function with $this-> .
Any suggestions? Maybe there is a better solution to this?
This is within a class:
[snip]
# generic WALK functions
function walki
Mark Clarkstone wrote:
hey everyone do any of you people use mod_l33t? I do it rocks you can have
about 1000 sites on your comp with their own domain & your ram won't even go
down 1mb. its easy to setup & its very cool
email me or post if you want of info
1) This has absolutley nothing to do wit
Denis 'Alpheus' Cahuk wrote:
Can some1 tell me how can I define Super Globals (like the Application
Scope in ASP)?
You can't.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General
[EMAIL PROTECTED] wrote:
Hello all mailing list, House for rent - Good price, :), bye.
URL : http://www.geocities.com/rapogo
Can someone PLEASE unsubscribe the spammer?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted t
I want to use highlight_file() in XHTML Strict. Is there any way to
change PHP to use (and other classes) and use a
stylesheet to colour it? If not, any other suggestions?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted
Ben wrote:
Ok, I'm sort of a beginner at this, so cut me some slack. :-) Ok, I have an
if then statement that after you click a link it looks like this:
blah?page=pagename It looks something like this:
http://www.site.com/home.php";);
}
else{
include ("http://www.site.com/"; . "$page" . ".php");
Ben wrote:
How would I do this then?
include('foo.php');
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
Ben wrote:
But how would I go about using the IF THEN statement but allowing the page
to see the variables.
Not sure if I know what you mean, but:
if($foo == 'bar'){
include('foo.php');
}
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will
Ow Mun Heng wrote:
Hi All,
How can I prevent the browser from sending in cached data after the
user pressed the 'back' button and re-inputted data.
Eg: Originall I enter 3 isbn numbers, submitted it, then the user presses
the 'back' button to re-input 1 new data and then re-submits the da
Lso . wrote:
Ok I have been searching to no avail. I have a form that lets you
add new sets of information to a database. Once you add information i
have a page that displays this information in a series of text
fields. I have done this so you can alter the information in the
fields hit ed
Lso . wrote:
Thanks everyone. Honestly I tried so many things that Im not sure
exactly what combinations I tried. The textfield trick works, and I
so sick of looking at this script Im moving on. Ill try something
else the next time around. Thanks again for all of the excellent fast
help!!
John Wulff wrote:
How would i find the value of the largest number in this array?
$example_data = array(
array("Mar-99",100,2000,5945.33,1234,10),
array("Feb-99",908,3454,4764.90,4321,50),
array("Jan-99",542,8000,13365.52,6012,60)
);
www.php.net/max
--
The above message is encrypted with double
Stevie Peele wrote:
I am new to this list. Does this list also provide help with PHP?
Not sure what your post has to do with this thread, but what do you mean
by also? What else does the list do?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt
D. R. Hansen wrote:
I am getting a "Call to undefined function" when invoking
session_regenerate_id().
No typos -- I've checked.
Fatal error: Call to undefined function: session_regenerate_id() in
/path_to_my_script/resetsession.php3 on line 5
Running PHP 4.3.1 on RH 8.0 and Apache 2
http://u
This hardly belongs on the PHP list ... but try looking into JavaScript focus().
--
Jason k Larson
Angelo Zanetti wrote:
Hi guys how do I set the cursor to start in a particular textfield (password field) when my php page starts?
TIA
--
PHP General Mailing List (http://www.php.net/)
To
Blake Schroeder wrote:
Hey all
I used to include a perl script via Sever Side Include how could I do
this in php?
example:
You can't use SSI in PHP. PHP is not SSI. You can do something similar
though, www.php.net/virtual.
--
The above message is encrypted with double rot13 encoding. Any
mode.
Unless you decide to do a ocicommit () afterwards, it's not being committed due to the
OCI_DEFAULT mode.
Or maybe you could try this:
$execute = ociexecute($stmt, OCI_COMMIT_ON_SUCCESS);
--
Jason k Larson
Moore, Christie wrote:
I don't receive any errors from this code but when I l
Marcus Akre wrote:
Hi.
I'm currently developing a system that accepts http requests
containing xml data. A third-party application delivers the xml data
in the post part of the http request. The post data is however not
associated with
any name. So it cannot be indexed as normal with $_POST["k
Brian V Bonini wrote:
Can anyone make this work with Mozilla?
@import url("site.css.php");
No matter what I try , header("Content-type: text/css")
or ini_set to will not output anything other then text/html
This has nothing to do with PHP.
--
The above message is encrypted with double rot13
The INI file should be:
[mysql_info]
host=spore.org
uid=myuserid
passwd=mypassword
Also, you'll probably want to do:
$INI = parse_ini_file("/home/revref/mysql.ini");
Doug Essinger-Hileman wrote:
I am just beginning to use php and mysql together (I'm new to both).
I am having trouble getting th
Miranda, Joel Louie M wrote:
This is what I have made, im not sure if its correct.
---
enter name:
enter email:
---
Believe it or not, creating a variable called $value_* isn't going to
magically set an input box's value. Did you even read the example?!
--
The above message is encrypted
Sparky Kopetzky wrote:
I'm getting this error while sending email with mail():
Warning: mail(): SMTP server response: 550 5.7.1 <[EMAIL PROTECTED]>... Relaying denied in (path to my program)
How do I turn relaying on??
That has nothing to do with PHP, it's your SMTP server. I'm guessing
you'r
Thank you very much, David--you understood the problem exactly and your
solution worked perfectly!
I'd like to add a comment about mysql_data_seek to the php manual entry on
mysql_fetch_row, because I would think that this might be a common
problem...
Matt
- Original Message -
From: Dav
re php info:
put this into a file, put it on your server, and call up the page in a
browser:
it will show the settings for php on your server. As Jim suggested below,
you should check the register_globals setting. If register_globals is on,
you'll need to use the _Get function. see more on
ever since I put up a personal firewall, when I start MySQL I''ve been
getting alerts that MySQL is trying to access this ip address when I start
it...
what, exactly, is it, and is there any reason why MySQL would need to access
the internet if I have apache on my own machine?
thanks,
Matt
--
I'm making a website for a friend, and trying to do everything the right
way. I want to add slashes to EGPCS values. I know how to use this,
but one of the comments on the get_magic_quotes_gpc entry in the manual
points out that it wouldn't work with arrays in these values - and they
have a
I am trying to use cookies for logins (I would use sessions, but the
free host this site is on doesn't support them). With all of the bugs
in various browsers influencing cookies, what does everyone think is the
most compatible way to set cookies?
--
PHP General Mailing List (http://www.php
PLEASE don't tell the newbies to mess up their code! That is not
compatible with all versions of php! DO NOT USE THOSE!!! STICK TO YOUR
CURRENT GOOD CODE! Bother with them for security and compatibly.
Lord Loh. wrote:
>http://myadress/php/mypage.php?modo=123&color=red&size=3
>
>is fine!
>
By any chance, is page one the "entrance" page to your application?
I.e. is there a session id in either the query string of the page URL or
was there one passed to it via a POST?
Without cookies enabled, there is no way to allow users to use the back
button to go back to the entrance page while
You cannot avoid using cookies. When you use Sessions web server is making
use of cookies (unless you go for URL rewriting) which remains in the
browser until one quits the browser.
To tackle your situation, you can effectively make use of a database table
and a session cookie:
1. set a sessi
> I'm getting a value of 0 returned, but from a command line the executable
> works fine and does what it is suposed to do is there any other way i can do
> this or ami i doing it work ??
Well, as far as I know, command-line returnes 0 on success and other on
failure.
So if your exec ( $command,
h a strong DC area company, please send a cover
letter and resume with salary requirements to [EMAIL PROTECTED]
Thanks,
Alok K. Dhir
[EMAIL PROTECTED]
Symplicity Corporation
http://solutions.symplicity.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
You can use the following pattern with preg_match:
"/([a-f0-9]+)((:[a-f0-9]+){7})/i"
I made an assumption that you are using the x:x:x:x:x:x:x:x address
format.
Anil
On Wed, 28 Aug 2002, Adam Alkins wrote:
> Hi Folks,
>
> Seeking some guidance here. My regexp knowledge is pathetic. I
I'm designing a site, and I want to put mail with folders on it. Fairly
simply, but I'm not sure what to do for the default folders. I want to
have three precreated folders: inbox, trash, and sent. I'm not sure
about the best way to do these. Any ideas?
--
PHP General Mailing List (http:
This message sounds as though I want a system that checks email, etc.
That is not what I'm after. What I'm trying to do is make a system
where users can mail each other, using a mysql database.
Leif K-Brooks wrote:
> I'm designing a site, and I want to put mail with folders
I'm wondering if random numbers in a cronned script would be anywhere
near random (I know that rand() isn't true random, but I don't want
every number to be the same...)? Since the number is seeded from
time... and cron runs by time...
--
PHP General Mailing List (http://www.php.net/)
To un
First of all, the second try should be print $_COOKIE["Access"]; with no
second $. But, more importantly, I would reccomend you change the
cookie name to access. This may not be the problem, but case in names
seems to generally cause problems.
Tom Ray wrote:
> I'm having some issue's with $
Try echoing those vars in the loop to see if their values are correct...
Roberto Ramírez wrote:
>I dont get the difference between this two instructions...
>
>
>mail("[EMAIL PROTECTED]", "Subject", "Message") or die("It suck");
>
>
>mail($mailto,$subject,$content) or die("It suck");
>
>
>
>Im jus
I've been using php for a while now, and I've made plenty of web sites
in that time. But there's been a nagging problem: the best way to put a
layout and global code on each page. My first site had two .txt files
with header and footer code which were fopen()ed (with absolute paths!)
and eva
I am using quotes around the key, just a dumb mistake in the example...
Leif K-Brooks wrote:
> Any idea what that error means? I'm trying to do something like:
> $array[] = array(a => "a value");
>
--
The above message is encrypted with double rot13 encoding. A
$actions[] = array("display" => "Discard");
Bogdan Stancescu wrote:
> That piece of code works. Maybe you could be so kind as to post the
> exact piece of code which doesn't work? If it's not too much to ask,
> of course.
>
> Bogdan
>
> Le
Any idea what that error means? I'm trying to do something like:
$array[] = array(a => "a value");
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www
If they're the only input in the form, you could do something like:
foreach($_GET as $key=>$value){
if(!array_key_exists($key,$_GET)){
$_GET[$key] = 0;
}
}
//Subsitute $_POST for $_GET if it's a post form.
Paul Kaiser wrote:
Hey there,
I have around 50 checkboxes on an HTML form. Their "value"
Why not store them in a database with one php script selecting them?
Monty wrote:
This is a more general server question: I know that having a large number of
files in one folder can slow down a web server, but, how many would it take
for this to be a problem? Wondering if I should store all art
I know there's a way to check the current server load... does anyone
know how? Thanks.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To u
My guess is that you're doing something like "insert into
table(col1,col2,col3) values('val1','val2')". You need to have an equal
ammount of columns and values.
Miguel Brás wrote:
Hi guys,
I was doing a script to insert data on a table, and the following message
appeared me when testing the f
I'm using some regexes for swear filtering, but I have a problem. I
need to look for ab[ct] and have it replaced by xyz but not replace the
[ct]. I.e. it would be replaced by xyzc or xyzt. Any ideas?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to de
I guess it wouldn't be too hard for me to switch to perl reg...
Timothy Hitchens wrote:
Can you use or know perl reg??
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]
-Original Message-
From: Leif K-Brooks [mailto:eurleif@;buyer-brokerage.com]
Sent: Tuesda
I need a way to make a string be replaced with its uppercase version
using ereg_replace. Any ideas?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.p
I don't want the entire string upercase, just part of it as defined by a
regex.
Chris Shiflett wrote:
Why must you use ereg_replace?
Does your question mean that you, for whatever reason, cannot use
strtoupper() instead?
Leif K-Brooks wrote:
I need a way to make a string be replaced
In my never-ending battle against swearing on my site, I'm trying to use
a regex that changes any word that ends with abc to xyz. I'm using:
$tofilter = "This is a string containing the word 123abc.";
$tofilter= eregi_replace("[^ ]abc","xyz",$tofilter);
But it returns "12xyz". It clearly pick
I need to do a few other things that require regex though, like making
either an a or an @ match (people love to get around filters by using
symbols instead of letters...).
@ Edwin wrote:
Hello,
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote:
[snip]
But that doesn't work
X.x No. It's turned off for a reason: security.
Chris Shiflett wrote:
I think you mean turn on register_globals. :-)
Sascha Cunz wrote:
try
echo $_GET['tmp'];
?>
or turn off register_globals in your php.ini file.
Am Mittwoch, 30. Oktober 2002 20:49 schrieb Manuel Jenne:
My Script:
Tes
A variable can't have 4 values at once? :)
Peter Houchin wrote:
howdy,
can any one tell me what's wrong with this my mind is going a miss on me..
if ( $state == 'NSW' && $state == "QLD" && $state == "NT" && $state ==
"ACT"){
do sum stuff
}
else {
do other stuff
}
TIA
Peter
"the only dumb
I'll give you one instead...
setcookie("yourcookie","here it is!");
John Meyer wrote:
>Do I get a cookie for passing this test?
>
>
>
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
I'm looking for a good class to manage forms. It doesn't need to do
anything with the form itself, I'm looking for something that does form
validation on the processing side. I've looked on phpclasses, but
everything I found was either insecure (passing data about the form
through hidden form
Uh, no. That makes it think it's a constant, which generates a notice.
Rasmus Lerdorf wrote:
Don't use quotes around the array index inside a quoted string.
-Rasmus
On 10 Nov 2002, Ray Seals wrote:
The fact that tutorials are outdated & using old code is not a good reason
to stick with it
I'm trying to replace the X-Powered-By header out of security concerns.
I know it can't really hurt - just me being paranoid. Anyway, I'm using:
header("X-Powered-By: somethingthatisntphp",true);
But it has 2 headers. Is there any way to do this?
--
The above message is encrypted with double
Sorry if I'm using the wrong words - not sure of the exact terminology.
Anyway, is there a way to exec() two statments in the same shell? Example:
//On win32 test machine
exec("cd somedir");
print `dir`;
//Outputs directory listing for c:\, not c:\somedir
//But is there a way to get the directory
I'm just guessing here. For one thing, to seperate variables from
constants. Also, it makes it possible to use variables within quotes.
brucedickey wrote:
I've searched, but haven't found the answer -- from a language design point
of view, why are there $ on the front of PHP variable names?
T
I am planning to use Manuel Lemos's form class for a web site I am
working on. However, I need to have register_globals set to off. I was
planning to rewrite the portions of the class that access submitted form
values directly to use the suberglobal arrays. When I started, though,
I saw how
Because it isn't? Instead of echoing $PHP_SELF, echo
$_SERVER['PHP_SELF']. With the $_POST problem, it's complaining that
you're using a variable that isn't defined. Use?
if(array_key_exists('formfieldnamegoeshere',$_POST)){
print $_POST['formfieldnamegoeshere'];
}
?>
Chris Jackson wrote:
I
I'm looking for a good class for forms that will work with
register_globals off. I was planning to modify Manuel Lemos's class,
but it turned out to be too big of a task. Any ideas?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be pr
I'm looking for a good way to convert minutes to hours, days, or years -
the largest it will fit into. For example, 120 would become "2 hours".
90 would become "1 hour and 30 minutes". Any ideas?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt
That, or an iframe. You can't pass variables on the same request, though.
Jeff Bluemel wrote:
I'm been ignored on this question for 4-5 days now. even if it is not
possible could somebody please verify this?
is it possible to pass a variable from javascript directly to php WITHOUT
using eithe
Are you using an exact path or a relative url (such as somepage.php)?
It should be absolute (such as http://someserver/somepage.php).
Baumann Reto wrote:
Hi all
Does somebody know if there is a potential problem with
Header("Location: ");
not working properly?
I have a redirection, but
I don't mind helping, but can you please read the archives next time?
This has been asked a lot. Anyway, the correct syntax is:
HREF="action.html?action=deactivate&confirm=yes"
Jeff Bluemel wrote:
I'm using the following syntax, but evidently it's not correct.
HREF="action.html?action=deactiv
echo testfunction($var1, $var2, $var3, $var4);
Or if you need to do something else with the value before echo()ing it:
$meat = testfunction($var1, $var2, $var3, $var4);
//Do something with $meat
Beauford 2002 wrote:
Hi,
I have form that a user would input information and that info is sent to
I'm trying to make a fairly simple encryption thing. My idea is to use
base 27 numbers (the first 27 digits are the alphabet, the 27th is the
space), and then converting to base 10. Any one know of a way to do this?
--
The above message is encrypted with double rot13 encoding. Any unauthorize
I'm wondering which is faster, eregi('[A-Z]',$variable); or
ereg('A-Za-z',$variable);?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To un
I'm trying to make a script that people using PHP can get information
from my site from by including it. They would do something like:
$var =
include("http://mydomain.com/infoscript.php?infotoget=info1";); //returns
"This is info 1."
Is there anything I can do in my script to make return()
I am using Netscape 7 preview release. When I go to www.php.net, it
displays the php logo in the address bar. Does anyone know how this is
done?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I want to make all fatal errors trigger an error file to be include, the
file to exit, and the error never t be displayed. Is there any way to
do this without access to php.ini?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks. I am trying, but it refuses to work. Can you help? My code is:
function error_handler ($code, $str) {
if(($errno == FATAL) && (error_reporting() != 0)){
//include the error file
exit;
}
}
set_error_handler("error_handler");
//set_error_handler returns false. When I test it, the de
I'm trying to make sure the referer is right on certain pages. I know
the variable and everything, but it gets annoying to have to check wth
www., without www., with urlencode(), and with rawurlencode(). If there
an easier way?
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
I have a site with logins. I am planning to recode logins soon (right
now the username and password are stored in cookies with no encoding).
In your opinion, which of these is a better idea:
1. Storing in two cookies with md5 encoding for the password
2. Use sessions
3. Store logins in a datab
I am planning to change how my site stores logins to using sessions.
Are there any reasons not to do this? Reasons against it I should
know? Thanks for your input.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
501 - 600 of 874 matches
Mail list logo