New to the list, so I hope I'm in the right place.
I'm trying to write a small php function which checks a page filled
with a list of satellite images of earth, and loads the latest one to
have been taken at 4:25 in the morning, when the view is most complete
(full credit to be given to the ori
Thats the strange thing... there IS NO CODE that change the value...
And the cut/paste is bad... there is no parse errors and the code snip is only
a small part of a scriptfile.
- Svein
On Tuesday 03 June 2003 15:33, Jay Blanchard wrote:
> [snip]
> I'm not able to reproduce this in a short code-
Hi NG,
I am trying to implement the CDP (Cisco Discovery Protocol) into PHP. For
this task it is needed to send Layer2 frames to a specific MAC address. Is
there a possibility to do so ?
Please answer as fast as possible either to [EMAIL PROTECTED] or to this NG.
Thanks !
Kai M Poppe
WLAN Infra
On Tuesday 03 June 2003 15:27, CPT John W. Holmes wrote:
> > On Tuesday 03 June 2003 13:58, Jay Blanchard wrote:
> > > [snip]
> > > We would have to see some code
> > >
> > > Jay
> >
> > I'm not able to reproduce this in a short code-snippet.
> > But from the first echo to the last echo $lid ch
Hello,
On 06/03/2003 06:21 AM, Shaun wrote:
I am creating a timesheet application, how can I make sure that a user has
entered a number, and that the number is a whole number or a decimal up to 2
places, and that the number is less than 24?
You may want to try this forms generation and validation
[snip]
http://rsd.gsfc.nasa.gov/goesg/earth/Weather/GMS-5/jpg/vis/4km/";;
if (!($fp = fopen($URLbase, "r")))
{
echo "Could not open the url";
exit;
}
$contents = fread($fp, 100);
fclose($fp);
?>
[/snip]
Was that r
If I have a date in unix format in a numeric field in my table (Mysql) and I
want to compare it to a date which is in unixformat also, will the query
work like this?
"SELECT from tarifs where unix_from_date<=".$dateinunixformat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
> Yep, its a bad paste :) The script is error-free...
> But there is no code that change the variable and it still get changed.
> Eg. it change from 75497 to 6894
In order of increasing probability:
- you can attribute it to black magic
- you've hit upon a php bug
- there's something wrong wi
Your pattern should look like:
$pattern = "([[:digit:]]{6}0425\.jpg)";
This will give you the image name, but remember that ereg works on
single lines and also the image might be taken at some time around 4:25.
So you need a while loop to read the html line by line, in the loop try
to match the
Cut&paste the code, also file include/surveysavereply.inc.
Svein Larsen wrote:
On Tuesday 03 June 2003 15:27, CPT John W. Holmes wrote:
On Tuesday 03 June 2003 13:58, Jay Blanchard wrote:
[snip]
We would have to see some code
Jay
I'm not able to reproduce this in a short code-snippet.
But fr
No, not with php. You can use some external program or write a php module.
Kai Poppe wrote:
Hi NG,
I am trying to implement the CDP (Cisco Discovery Protocol) into PHP. For
this task it is needed to send Layer2 frames to a specific MAC address. Is
there a possibility to do so ?
Please answer as f
What about trying it first?
Diana Castillo wrote:
If I have a date in unix format in a numeric field in my table (Mysql) and I
want to compare it to a date which is in unixformat also, will the query
work like this?
"SELECT from tarifs where unix_from_date<=".$dateinunixformat
--
PHP General
Hi,
This is more of a JS question than a PHP but have not found anything on
google
(http://www.google.com/search?q=javascript+onclick+button&sourceid=opera&num
=0&ie=utf-8&oe=utf-8) and cant remember how I did this last time
I simply want to submit my form to either one.php or two.php or thr.php
[snip]
I simply want to submit my form to either one.php or two.php or thr.php
depending on which BUTTON is pressed (I am using html buttons ) I have 3 buttonshow do i set it?
[/snip]
Instead of 3 different .php why not use one.php with a SWITCH statement?
http://us3.php.net/manual/en/control
Marek,
Your pattern should look like:
$pattern = "([[:digit:]]{6}0425\.jpg)";
BINGO!
This will give you the image name, but remember that ereg works on
single lines and also the image might be taken at some time around
4:25. So you need a while loop to read the html line by line, in the
loop t
don't echo anything before the header. else there is automatically a header
generated by your server.
"Mishari" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi,
> I used it before, but I had a problem
>
> my code look like,
> if (--) {
> echo "---";
> header(--)
I am trying to get the Sample Barcode to run on my server, however the
following line does not execute:
echo "";
To see if it is executing, I have an "Echo" statement in the script.
The image.php file is in the same directory as the other script files.
What am I missing here?
Todd
--
None of my old scripts worx nowadays and the most common error message is
'undefined variable'. What is the best/simplest way to work around this
situation?
if !isset($myvar) {
do this
blah blah
}
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
did u made copy&paste with your code?
yes? then why don't you try to use the path='image.php?blahblahmoreblah'
no? then please give us more details about the error you're getting...
good luck,
Alex
- Original Message -
From: "Todd Cary" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
oh I see, you want to execute that image.php script ?
- Original Message -
From: "Alex Ciurea" <[EMAIL PROTECTED]>
To: "php mailing" <[EMAIL PROTECTED]>; "Todd Cary"
<[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 6:07 PM
Subject: Re: [PHP] This line does not execute...
> did u made co
How do I grab the first X characters of a string?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RTFM
http://us2.php.net/manual/en/function.substr.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Alex -
The code I placed in the messsage is a copy and paste of the code from
the sample.php script provided by the author of the barcode class and it
agrees with the demo he has on his site.
The "error" is that nothing is happening which I interpret as the file,
image.php is not being accesse
How do you know it is not being accessed? You should output an image,
and if it is not an image, broken image icon is displayed in IE or
nothing in Netscape/Mozilla (I see you use Netscape). Look at the html,
and if the tag is there, I'm sure your browser tries to read the
image.
Todd Cary wr
That procedure it's call "validation" so i think you don't need compare, or
query to bd any. Just validate if a $variable is a valid date in UnixFormat,
i don't know how to do this, but google or someelse maybe know.
regards.
EF.
"Diana Castillo" <[EMAIL PROTECTED]> escribió en el mensaje
news:[
Ok Tod, this is what I understood so far:
1) image.php should generate for you a barcode;
2) you placed an echo statement inside image.php and nothing happens
Marek have good ideea: try to see the html source code, the code that is
interpreted by your browser.
the executable file ./image.php pr
> Guys, that's exactly what the SID predefined constant is for -- it's defined
> only when a session is active, and it has the value
> = (e.g. PHPSESSID=1afd764ecb938274) if and only if
> the session id was passed in the URL -- otherwise it contains the empty
> string. So you can safely do:
>
> h
Marek -
Yes, the Img is being executed (Broken image icon in IE) as evidenced by
the HTML:
Success:
Barcode = 0123456789
However, the image.php is apparently not being executed. I put an Echo statement
in the top of image.php:
// Debug
echo "Debug";
Is there some setting in the php.in
When you recivied that error ?, in a form ?, if is in a Form just put in the
top of .php files this code
$HTTP_GET_VARS["variable2"];
$HTTP_GET_VARS["variable3"];
Of course if you send with other method (post) change the GET for POST
$HTTP_POS_VARS["variable2"];
$HTTP_POS_VARS["variable3"];
Reg
> Hi,
> I want action of a form to be PHP_SELF untill user presses "continue"
> button. If continue button is pressed than "next.php" should be the action of
> the form. how to do this? Thanks in advance, Mukta
I'm not sure why it's necessary to do this, but, not sure it can be done.
Maybe with Ja
tag can only display images, even if you did put echo "Debug";,
this is not a valid image, so it is not displayed. Try Right Click ->
View Image, you should see your debug output.
Todd Cary wrote:
Marek -
Yes, the Img is being executed (Broken image icon in IE) as evidenced by the HTML:
Succe
I'm not sure what you mean. To give ONE example:
Earlier I could use this code on top of every page:
if ($printout != "yeah") { include("header.php"); }
This code gives an error today. The variable $printout is set if the visitor
choose to click on the 'print_page_image', otherwise the variable ha
Hi,
What he means is that with "register_globals=off" you cannot do this:
echo $path
you need to do this (if the variable is sent by "POST" action)
echo _POST('path')
and through "GET"
echo _GET('path')
-Original Message-
From: Øystein Håland [mailto:[EMAIL PR
Hi guys,
I have successfully implemted "pagenting" on one of my pages to generate "
PREV 1,2,3,4 (etc) NEXT" depending on the records that are being returned
and the number of rows i specify in a LIMIT.
One little problem, right now I have very few records so I dont mind it
giving a 1,2,3,4 etc ti
Uh, I think you mean
echo $_POST['path'];
and
echo $_GET['path'];
Jonathan Wilkes wrote:
Hi,
What he means is that with "register_globals=off" you cannot do this:
echo $path
you need to do this (if the variable is sent by "POST" action)
echo _POST('path')
and through "GET"
echo _GET('path
yep I did, sorry about that
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]
Sent: 03 June 2003 17:15
To: Jonathan Wilkes
Cc: 'Øystein Håland'; [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Migration from register_globals=on to
register_glob als=off
Uh, I think you mean
echo $
Uh, just putting those variables at the top of your page won't help
you. You need to do something with them.
Esteban Fernández wrote:
When you recivied that error ?, in a form ?, if is in a Form just put in the
top of .php files this code
$HTTP_GET_VARS["variable2"];
$HTTP_GET_VARS["variable3"]
At 6/3/2003 04:24 PM, Ryan A wrote:
> I simply want to submit my form to either one.php or two.php or thr.php
> depending on which BUTTON is pressed (I am using html buttons type='submit' value='blah'>) I have 3 buttonshow do i set it?
You can do this one of three ways:
1. Instead of actuall
Then i don't understand you problem.
"ØYstein HåLand" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> I'm not sure what you mean. To give ONE example:
> Earlier I could use this code on top of every page:
> if ($printout != "yeah") { include("header.php"); }
> This code gives
> I have successfully implemted "pagenting" on one of my pages to
generate "
> PREV 1,2,3,4 (etc) NEXT" depending on the records that are being
returned
> and the number of rows i specify in a LIMIT.
>
> One little problem, right now I have very few records so I dont mind
it
> giving a 1,2,3,4 etc
on 04/06/03 3:02 AM, Øystein Håland ([EMAIL PROTECTED]) wrote:
> I'm not sure what you mean. To give ONE example:
> Earlier I could use this code on top of every page:
> if ($printout != "yeah") { include("header.php"); }
> This code gives an error today. The variable $printout is set if the visi
Hi folks,
I've heard something about the possibility to set an option somewhere that
will include a file to each php file requested... but I can't find it..
What I'm trying to do is something similar to things done with mod_perl ..
loading a file which sets things the lib dir and stuff... Set som
I tried changing my code to (since the variable $printout in this case is
sent with GET)
($_GET['printout'] != "yeah") { include("header.php"); }
and got the following error:
Undefined index: printout
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
I am trying to create a text only version of an HTML formatted message.
I would like to convert all links from:
http://domain.tld.page.ext";>link name
to:
link name [http://domain.tld/page.ext]
The problem is that some links may have additional modifiers and onthers
may not.
I have seen many ex
One little addit:
use indeed $_GET for vars passed through the query string and $_POST to read
out postdate .. $_COOKIE for cookies, but you'll find a combination of them
all in $_REQUEST
(nobody happens to know why $_SESSION is not included in that one .. or
knows one that includes $_SESSION in
On Tue, 3 Jun 2003 18:41:59 +0200, Wouter van Vliet wrote:
>I've heard something about the possibility to set an option somewhere that
>will include a file to each php file requested... but I can't find it..
It's an ini setting (auto_prepend_file). Check here:
http://us4.php.net/ini_set
It can
I have a customer who wants me to add a bookmarking feature on all his pages
that will create a link on the IE toolbar for that page. Any ideas as to how
I can do this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What do you mean by additional modifiers?
Jim Lucas
- Original Message -
From: "Jackson Miller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 9:43 AM
Subject: [PHP] preg_replace help
> I am trying to create a text only version of an HTML formatted message.
> I
on top of your script add
extract ($_POST);
or may be a little more checking to see if its actually a form submission by
POST method like
if ($_SERVER["REQUEST_METHOD"] == 'POST')
extract($_POST);
same thing goes for GET
Then you can access all form variables just as you were accessing.
HTH
On Tue, 2003-06-03 at 11:52, Jim Lucas wrote:
> What do you mean by additional modifiers?
Some links may be in the format:
http://domain.tld/page.ext"; target="target" name="description
of the link">link name
I just want to ignore any of those modifiers in the text version.
-Jackson
>
> Jim Luca
Someone has sent me a line of text that is base32 encrypted that I need to
decrypt. Does anyone know of a php module or snippet that can decrypt
this? I have searched on google and the php.net site, but was unable to
find anything that can help.
Thanks
CDitty
--
PHP General Mailing List (ht
At 18:43 03.06.2003, Jackson Miller said:
[snip]
>I am trying to create a text only version of an HTML formatted message.
>I would like to convert all links from:
>http://domain.tld.page.ext";>link name
>to:
>link name [http://domain.tld/page.ext]
>
>The prob
We have a multi-user database we use for telemarketing. It is used across
the internet. All the pages are PHP, I am trying to lock or keep other users
from accessing the same record, so that they do not call the same lead. For
example, the user selects a zip code to work from and then a lead pops u
At 18:43 03.06.2003, Jackson Miller said:
[snip]
>I am trying to create a text only version of an HTML formatted message.
>I would like to convert all links from:
>http://domain.tld.page.ext";>link name
>to:
>link name [http://domain.tld/page.ext]
>
>The prob
probably because $_SESSION is a server side thing not coming from the client
side in a Request ?
R'twick
- Original Message -
From: "Wouter van Vliet" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 12:48 PM
Subject: RE: [PHP] Re: Migration from register_globals=o
> We have a multi-user database we use for telemarketing. It is used
across
> the internet. All the pages are PHP, I am trying to lock or keep other
> users
> from accessing the same record, so that they do not call the same
lead.
> For
> example, the user selects a zip code to work from and then a
I know you can use javascript to add the bookmark to the favorites folder,
not sure how to add an icon to the toolbar..
http://www.yourpage.com',
'Your Page');">Bookmark This Site!
-Original Message-
From: Joaco [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 12:51 PM
To: [EMAIL
That's already very helpful. Thanks.
"Edward Peloke" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I know you can use javascript to add the bookmark to the favorites folder,
not sure how to add an icon to the toolbar..
http://www.yourpage.com',
'Your Page');">Bookmark This Site!
-
I've never even heard of base32... Only base64... Maybe mcrypt but nah,
can't see why mcrypt would include that... Errmm... Maybe you should check
for some RFC about this... geektools.com seems to let you search RFC's...
"Cditty" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Some
Thanks !!!
-Oorspronkelijk bericht-
Van: Wendell Brown [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 3 juni 2003 18:52
Aan: PHP General; Wouter van Vliet
Onderwerp: Re: [PHP] Automatically include global file ...
On Tue, 3 Jun 2003 18:41:59 +0200, Wouter van Vliet wrote:
>I've heard some
Now my code is
extract ($_GET);
if ($_GET['printout'] != "yeah") { include("header.php"); }
but I still get the following error:
Undefined index: printout
I understand nothing
"Jonathan Wilkes" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
Hi,
What he means is that with "regi
Maybe I should clarify.
$message = 'Visit http://jaxn.org"; target="_top">My personal
site to learn more about me.
Visit http://memigo.com";>memigi to learn about current
events.';
What I want is to run a preg_replace to get the following:
Visit My personal site (http://jaxn.org) to learn more ab
Hey John,
Thanks, its working fine now, actually a little better than I expected :-)
Dont understand the logic though, if you find time point me to the correct
place where i can read up and figure out the logic you used.
Thanks again.
Cheers,
-Ryan
- Original Message -
From: "John W. Hol
can you try if ($HTTP_GET_VARS['printout']!="yeah") {include("header.php");}
does that work?
-Original Message-
From: Øystein Håland [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] OK guys, thank you so far
Now my code is
extract ($_G
I have the following scenario:
I have this timeclock program that my employees access by logging into and
the program pretty much allows them to clock-in and clock-out. The problem
is that I noticed some of the employees were clocking-in and clocking-out
from their home. The main problem is that t
Best way to do this, in my opinion, is by using a javascript-code like this
The javascript function would then look like this:
function processForm(url) {
document.forms[0].action = url;
document.forms[0].submit();
}
"Mukta Telang" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTE
Adding the icon is done like this (grabbed it from the php.net site):
http://static.php.net/www.php.net/favicon.ico"; />
"Edward Peloke" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> I know you can use javascript to add the bookmark to the favorites folder,
> not sure how to add
On Tue, 3 Jun 2003 19:16:30 +0200, +ystein Hland wrote:
>Now my code is
>
>extract ($_GET);
>if ($_GET['printout'] != "yeah") { include("header.php"); }
>
>but I still get the following error:
>
>Undefined index: printout
>
>I understand nothing
Ok, it looks like you are mixing your metaphors...
yeah .. I knew it .. but it would be so very helpfull if it would be just
included in a superglobal similar to $_REQUEST ...
-Oorspronkelijk bericht-
Van: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 3 juni 2003 19:01
Aan: [EMAIL PROTECTED]
Onderwerp: Re: [PHP] Re: Migrat
Thanks guys, didnt realize this would be a javascript question, so this post
is on the wrong site. I appreciate all the help none the less.
"Yves Daemen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Adding the icon is done like this (grabbed it from the php.net site):
http://static
are you wanting to prevent them from using this from home? Do they vpn or
something into the work network and then view this page or can they just get
there from the web?
-Original Message-
From: Dale [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:21 PM
To: [EMAIL PROTECTED]
Sub
Hello,
I have been playing with the mycrypt function. Im having a bit of
trouble understanding why it is important to use a vector IV.
I was wandering if there is a reasonably powerful encryption algorithm.
That uses a key only instead of getting the block size and using a IV.
I basically w
Couple of clarifications Dale:
Is this an internal intranet server? Can it be?
Do you have admin rights to the server?
What's OS and Server are you running?
~Ed
-Original Message-
From: Dale [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:21 PM
To: [EMAIL PROTECTED]
Subject: [
> yeah .. I knew it .. but it would be so very helpfull if it would be just
> included in a superglobal similar to $_REQUEST ...
Do it yourself, if you must: array_merge()
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Thanks, its working fine now, actually a little better than I expected :-)
> Dont understand the logic though, if you find time point me to the correct
> place where i can read up and figure out the logic you used.
The logic isn't too hard. You're on page X. You show links to other pages
from X
Hi,
I've setup a simple PHP script that runs through a database table and sends
an email to a group of members asking them to verify their information. My
new ISP allows me to access the cron tab so we can have this script run at
set intervals. However I'm a little new to the whole cron tab c
Alex -
The problem is/was that I run PHP with register_globals = Off. Knowing
that, I thought that I had put in all of the $HTTP_XXX_VARS statments,
but I did not. Setting register_globals = On temporarily fixed the
problem.
Now the question is what is the "usual" setting for register_glob
On Tue, 03 Jun 2003 12:59:41 -0500, Tim Thorburn wrote:
>is it possible to have a PHP script execute on command from a cron
>tab?
Absolutely!
>And if so, could someone proide an example of say having the script
>run on the first of every month?
It should look something like this.
0 0
[snip]
I've setup a simple PHP script that runs through a database table and
sends an email to a group of members asking them to verify their
information. My new ISP allows me to access the cron tab so we can have
this script run at
set intervals. However I'm a little new to the whole cron tab c
You can also call the file through lynx or wget if you can't call the php
executable directly.
lynx --dump http://www.yourserver.com/file.php
wget http://www.yourserver.com/file.php
Down side is that the file has to be in your web root. Works great for
calling remote files, though.
---John Holme
The web server sits outside of the office and can be accessed from anywhere
pc. I was thinking that if I could some how query the MAC address of the
store workstation, I could write some code that would allow only pc with
certain MAC addresses to access this timeclock program.
The server is a win
Hi Guys,
I'm trying to do the following:
I've got a multiple selection box build out of a query of table
0)
{
while($row2 = mysql_fetch_object($result2))
{
?>
Somewhere ; ?>
The outcome is stored in the VALUE[]..
Now i want to have an INSERT query that insert each value sepera
Daniel Rychlik wrote:
> Hello,
>
> I have been playing with the mycrypt function. Im having a bit of
> trouble understanding why it is important to use a vector IV.
>
> I was wandering if there is a reasonably powerful encryption algorithm.
> That uses a key only instead of getting the block si
I've tried and here's the output:
Undefined index: input
if ($HTTP_GET_VARS['printout'] != "yeah") { include("header.php"); }
"Edward Peloke" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> can you try if ($HTTP_GET_VARS['printout']!="yeah")
{include("header.php");}
>
> does that
What comes in my mind is that usually in offices (or schools) all
workstations have IP's within some IP range.. Unless each workstation dials
up to or makes it's own connection with 'the internet'...
You should be able to do something with that..
-Oorspronkelijk bericht-
Van: Dale [mailto
What you need to generate as HTML looks smth like this
---
First Thingie
Second Thingie
Third Thingie
Fourth Thingie
Fifth Thingie
---
page.php should look a bit like this:
---
$Value) {
Lo all,
Some input much appreciated. I upgraded mod_php4 from 4.2.3 to 4.3.2, and
needless to say, something went horribly wrong. PHP compiled without any
serious problems, and the installation seemed to have gone fine as well.
When issuing a apachectl restart, apache immediately core dumped... O
How I can use php and mcrypt on windows? I mean. What I have to do to turn php able to
use mcrypt function on windows.
Thanks
Just uncomment the extension php_mcrypt.dll from the php.ini file and
restart the server.
"Gilberto Garcia Jr." <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
How I can use php and mcrypt on windows? I mean. What I have to do to turn
php able to use mcrypt function on windows.
Please RTFM before asking questions! http://php.net/mcrypt answers your
question.
Gilberto Garcia Jr. wrote:
How I can use php and mcrypt on windows? I mean. What I have to do to turn php able to use mcrypt function on windows.
Thanks
--
The above message is encrypted with double rot13 enco
I read more on vector IV and I agree with you. I've been reading this manual on
mcrypt_encrypt and _decrypt functions. I came up with this from what I read and
pretty much took the example. I have a problem with my decrypt statement. Im passing
what I believe is the correct params, but I cou
Simple question:
How do I check the expiration of a cookie that has been set? I can't
seem to find it on php.net, if it is there..please provide the proper
link for me and I will read up on it.
Thanks,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.
You're using the same input for both encryption and decryption. Change the
decryption line to
$decrypted = mcrypt_ecb(MCRYPT_BLOWFISH, $key, $encrypted, MCRYPT_DECRYPT,
$iv);
srand() isn't doing anything here, you can get rid of it. Also, the IV does
nothing here, it is ignored in ECB mode. Try
Thanks. I'm using PHP-4.3.1.
The problem is not with $_SESSION. I used session_is_registered("sess_var");
to check from the second script and cannot see the variable("sess_var"). Can
anyone tell me why?
page1.php:
";
?>
Next page
page2.php:
";
}
else
{echo "false";}
echo "sess_var = $_
The browser simply doesn't provide this information. You may be able to
do it with javascript, but certainly not PHP.
Tom Ray [Lists] wrote:
Simple question:
How do I check the expiration of a cookie that has been set? I can't
seem to find it on php.net, if it is there..please provide the prop
Hello,
This is a reply to an e-mail that you wrote on Tue, 3 Jun 2003 at 20:04,
lines prefixed by '>' were originally written by you.
> I've tried and here's the output:
> Undefined index: input
> if ($HTTP_GET_VARS['printout'] != "yeah") { include("header.php"); }
You have error reporting set to
Hi,
I have two very simple php scripts and the second srcipt is not seeing the
variables session_registered by the first script.
I'm running PHP-4.3.1. And have both "register_globals" and
"track_vars" set to "ON".
Well, the first script prints out the session var fine, but not the second
one. As
> Thanks. I'm using PHP-4.3.1.
>
> The problem is not with $_SESSION. I used
> session_is_registered("sess_var");
> to check from the second script and cannot see the
> variable("sess_var"). Can
> anyone tell me why?
Your code should work for register_globals "on". Check that:
- php.ini is whe
I would look into doing something like this.
The HTML code that Wouter will work just fine. My ideas are for the process
page.
When you insert data into a table, it has to re-index the table if you make
your statement insert all the data at one time it will only re-index the
table one time.
It
On Tue, 2003-06-03 at 02:12, Bix wrote:
> I'm fine with using while loops, use them for most of my listing work, but I
> wanted to try using a foreach loop instead but it seemed not to work as
> expected. For ym table generation, I need the $key to do some maths on in
> order to get my table lookin
1 - 100 of 201 matches
Mail list logo