in a function you will need to do:
function whatever(){
global $HTTP_POST_VARS;
.
.
.
}
Just a guess :)
--
Best regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ravelomanana Rija
R>> [EMAIL PROTECTED]
R>> BP 1528 Port Vila
R>> Vanuatu
TR> If they are being used in a function you will need to do:
TR> function whatever(){
TR> global $HTTP_POST_VARS;
TR> .
TR> .
TR> .
TR> }
TR> Just a guess :)
TR> --
TR> Be
but still, it's
MD> not a good practice, i'm sure there is a way to emulate real parameters when
MD> they are needed and skip them in the call if you don't have them.
MD> Can anybody help me out?
MD> InsaneCoder
Send the table list as an array then use count($array)
l have to hard code the
session id in the url if this is the case.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;
$f = fread($fd,4);
if($f == "JFIF") echo "JPEG ";
fclose ($fd);
endif;
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
jpeg's */
$im = getimagesize($_FILES['uploadFile');
if(!($im[2] == 2 && $im[0] > 0 && $im[1] > 0)){
echo "You can only upload jpg images.";
exit();
}
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
timagesize($_FILES['uploadFile');
>> if(!($im[2] == 2 && $im[0] > 0 && $im[1] > 0)){
>> echo "You can only upload jpg images.";
>> exit();
>> }
The $im[2] being set to 2 means it is a jpeg other image types have a
different
gt;
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
Another trap to fall into is if you have magic quotes on you will need
to run strip slashes on any GET or POST variables BEFORE
you serialize them, otherwise addslashes will escape the escapes.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
icles/css-or-not.shtml
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Gareth-
This sounds more like a sendmail issue to me. I've run into this a few times myself.
What's happening is simple, sendmail has a file that it reads generally called
"domains" this file tells sendmail what domains it should be handling mail for. When
you submit your form the first thing
HP use it also.
SF> --clip--
SF> $XML = "Apple";
SF> echo $XML;
?>>
SF> Thanks,
SF> FletchSOD
Another variation with single quotes :)
echo '';
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Friday, August 2, 2002, 5:03:19 AM, you wrote:
H> Is there some easy way to make rand() only use each number once in a loop,
H> to avoid getting the same values more than once?
H> Håkan
Have a look at shuffle() it may do what you want
--
regards,
Tom
--
PHP General Mailing L
t;;
JV> $name->firstName = "marge";
JV> break;
JV> }
JV> }
JV> ?>
JV>
JV>
JV>
JV>
This should work:
foreach ($names as $key=>$val) {
if (strcmp($val->firstName, "homer") == 0) {
echo "changing homer to marge";
$names[$key]->firstName = "marge";
break;
}
}
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jun
JB> May
JB>
Does this help...
$now = time();
$i = 36;
while($i > 0){
echo date('M-Y',$now).'';
$now = strtotime('-1 month',$now);
$i--;
}
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;t know if it works, but that's the way it'd do it ;)
- Tom
-Original Message-
From: Serdar Sokmen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 12:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] progress bar
Hi,
I would like to add a progress bar to an installt
Hi!
Well you have to uncomment it AND restart apache afterwards!
Plus, i assume that your extensions dir in the php.ini is correct, if not,
apache will give you an error message ;)
Have a nice day,
- Tom
-Original Message-
From: NoWhErEMan [mailto:[EMAIL PROTECTED]]
Sent: Monday, August
Hi!
Can anyone recommend me some entry-level php-classes tutorials, because
the php.net page about classes is not that helpful and difficult to
understand IMO.
Thanks in advance,
- Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt;a = new a();
}
$this->a->test();
}
}
$a1 =& new a();
$a1->t = 'This is a test';
$b1 = new b();
?>
whether it is better depends on usage, but it should be good for a db
class so you only make the one connection :)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Thursday, August 15, 2002, 3:20:47 PM, you wrote:
>snip
LM> Is there a way to get rid of any new lines in a string?
LM> Because this is making my directory listing go whacko.
LM> Cheers,
LM> Liam
trim($dir)
--
regards,
Tom
--
PHP General Mailing List (http://w
rl and that is bookmarked
then the session could be restarted before the timeout occurs in a new
browser.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Tuesday, August 20, 2002, 1:04:12 PM, you wrote:
S> In ASP I use the expression myvar = string(254,"A")
S> to have a var filled with 254 characters 'A'
S> What is the similar one in PHP?
Try this:
$string = array();
$string = array_pad($string,254,
Hi,
TR> $string = array();
TR> $string = array_pad($string,254,'A');
TR> --
TR> regards,
TR> Tom
Ignore this I was asleep :)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
compile, I had to go back to version 0.90
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
has 2 php patches here that appear to
G> fix this:
G> http://www.gingerall.com/charlie/ga/xml/d_sab.xml
G> HOW do I apply the patches??
>From the same site :)
To apply a patch, copy it to the Sablotron root directory (Sablot-x.xx)
and type: patch -p1 < patch_filename
--
rega
TECTED]...
>> Sure, turn register_globals on only for the oasis directory. In your
>> httpd.conf add:
>>
>>
>> php_value register_globals on
>>
>>
>> -Rasmus
>>
>> On Mon, 19 Aug 2002, Andy wrote:
You may need to add in the direc
Hi,
Wednesday, August 21, 2002, 9:32:43 PM, you wrote:
A> thanx tom, but this doen not seem to have anything to do with it.
A> Regards,
A> Andy
A> "Tom Rogers" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
A> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
Wednesday, August 21, 2002, 10:53:48 PM, you wrote:
TR> Hi,
TR> Wednesday, August 21, 2002, 9:32:43 PM, you wrote:
A>> thanx tom, but this doen not seem to have anything to do with it.
A>> Regards,
A>> Andy
A>> "Tom Rogers" <[EMAIL PR
n> }
?>>
n> Thanks in advance for your help
n> Jennifer
If you have the latest version of php (4.2.2 or 4.2.1) try
if(!empty($_POST['memb_name']))$memb_name = add_slashes($_POST['memb_name']);
if(!empty($_POST['bookname']))$bookname = add_slashes($_POST['bookname']);
and so on, then add them to your query string.
(add_slashes() will take care of any pesky quotes)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nt(1) if true, bool(false) if not
b) strpos($nav->>userAgent, "search for this") > 0// gives me a boolean
JJ> directly
JJ> Any tips of which one I should use?
JJ> /José Jeria
you can do
if(eregi("search for this", $string)) echo 'found';
ver...
>>
>> if (!isset($PHP_AUTH_USER) "and or" blah($blah)) {}
>>
>> Thank you
>>
>> - vic
>>
>> __
>> Post your free ad now! http://personals.yahoo.ca
>>
>> --
>> PHP General Mailing List (http://www.php.n
t; Subject: [PHP] Average Number For Math Functions
>> > >
>> > >
>> > > Ok I looked at all the math functions for PHP but saw no way of
>> returning
>> > > the average of a set of numbers - I plan on using this for a rating
>> > system -
&g
t; Peter Turcan
what it is compaining about is the '&' symbol not the PHPSESSID, you
need to change the '&' to index2.php?pg=2&PHPSESSID=195c0283f8
If you use session.use_trans_sid you need to change the outgoing
seperator in php.ini(can't remember it's name
escape the "?
MT> Martin
Try this with single quotes:
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or productname. Clearly, I don't=20
MK> understand something here, can anyone tell me what?
MK> Thanks for the time,
MK> Michael
To use the result a second time you will need to reset the internal mysql
pointer like this:
mysql_data_seek($result,0);
After the first loop through.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
dev/null 2> /dev/null
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;> > Thanx for any help on that,
>> >
>> > Andy
>> >
>> >
>>
>>
According to netscape the cookie date value is expected to be in the
GMT time zone only so that is not the problem. This is more likely the
cause (from Netscape again)
The expire
ses
MT> single- and/or double-quotes.
How about this then...
No need to decode the returned value
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
POST the form. Can anyone tell me just what in tarnation
JV> is going on here?
JV> Many many thanks...
JV> Jed
what does echo $_SERVER['REQUEST_METHOD'] print out?
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt; echo "Version: ",phpversion(),"\n";
RL> exit(1);
?>>
RL> # ./t3.php ; echo "last run exit value:"$?
RL> Version: 4.2.2
RL> last run exit value:255
Try changing the commas to dots like echo "Version: ".phpversion()."\n";
--
r
oo late and won't have any effect. The only way is
by .htaccess if you have apache.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to assign values to
them then submit.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hotmail.
PH> http://www.hotmail.com
You need to do this:
if($result = mysql_query($detailqry)){
$row = mysq_fetch_array($result);
}
else{
echo "Error: Failed finding task details ".mysql_error();
}
All your fields will be in the array $row. $result is just an
identifier not the actual result set.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Wednesday, September 11, 2002, 12:22:05 AM, you wrote:
RM> Could someone show me a quick and simple way to randomly sort array
RM> elements? I can't seem to pinpoint the correct parameters in the docs.
RM> Thanks!
The function you need I think is shuffle()
--
regards,
Yes, but how do you format the information that comes back out of the
whois? I'm doing this:
$whois";
?>
But all the information is shown as one big line, no breaks or anything.
How would I do this so it showed properly formatted output?
Adam Williams wrote:
>Have a php page that runs exec(
Nope still comes up with everything in one big line. I'm running through
different options right now..but I'm tired and my brain is starting to
hurt :)
Adam Williams wrote:
>try with and see if that works.
>
> Adam
>
>On Thu, 12 Sep 2002, Tom Ray wrot
A working solution to the whois question
$whois";
?>
Notice those are back ticks, not single quotes. This will give youthe
information you need, and the tag puts it out in the proper format
for you.
yasin inat wrote:
>Thanx friends
>
>
>
>
>
>
--
PHP General Mailing List (http:/
if($res > 0) $t = $this->words[0][$res]. "
hundred".$and.$t;
}
}
else{
$res = $res%10;
if($res > 0){
($left == 0)? $and = '':$and = ' and
}
}
else{
$res = $res%10;
if($res > 0){
($left == 0)? $and = '':$and = ' and ';
$t = $this->words[0][$res]. " hundred".$and.$t;
}
else{
if($left > 0)$t = ' and '.$t;
}
$num = intval($num/1000);
num($num);
}
return $t;
}
}
//usage
$n2t = new num_to_text();
for($num = 0;$num < 1102;$num++){
echo $num.' '.$n2t->convert($num).'';
}
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
}
TR> $num = intval($num/1000);
>>>>>> $this->num($num);
TR> }
TR> return $t;
TR> }
TR> }
TR> //usage
TR> $n2t = new num_to_text();
TR> for($num = 0;$num < 1102;$num++){
TR&
I'm having some issue's with $_COOKIE and $HTTP_COOKIE_VARS, I can't
seem to retrieve data from them.
First I set the cookie like so:
setcookie ("Access", "Test_Value",time()+31536000);
Then I check my Cookies in Netscape and I can see that I have the cookie
stored. But when I go to the page t
cess. 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 $_COOKIE and $HTTP_COOKIE_VARS, I can't
>> seem to retrieve data from them.
>>
>> First I set the cook
Test message
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php4.2.3 apache mod
linux rh7.2
---
I am trying to add unix system account user via a simple php and shell script
when i ran add.php on my browser, i get
254 user creation fail
I created my add.sh file in /usr/bin and I have setuid it:
-rwsr-xr-x1 root devel 21
Dear Pete,
Yes, apache runs as nobody. But I have setuid add.sh. Wouldn't that be sufficient ?
--
tim
--- Peter Houchin <[EMAIL PROTECTED]> wrote:
> you need to make sure that the web has permission to use that file .. my
> guess is it don't have permission hence why you can run add.sh from the
>xml_parser,
array(&$this,"start_element"),array(&$this,"end_element"));
xml_set_character_data_handler($this->xml_parser,array(&$this,"character_data"));
}
function character_data($parser, $data) {
}
functi
Discovered my cookie issue. I wasn't setting the path in setcookie() so
it defaulted to what ever directory the script ran in. I set it so it
loads from the root of the website now, and it's working like a charm.
Thanks to all that helped!
John Holmes wrote:
>>I do the print $_COOKIE["Accces
s[0][$res]. "
hundred".$and.$t;
}
}
else{
$res = $res%10;
if($res > 0){
($left == 0)? $and = '':$and = ' and ';
$t =
I have a question that I have yet to figure out. Let's say I have a PHP
script with multiple fuctions, how do I call on the script to perfom
specific functions through a url? Ex:
http://www.sample.com/script.php?fucntion1
TIA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Dear Marek,
Where do find that? I am no C programmer.
--
tim
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> It's a shell script, and your shell drops root privileges. Use a shell
> that doesn't or use a C-wraper.
>
> tim tom wrote:
>
> >Dear Pete,
>
I have a chat script that I downloaded and according to the license I
can modify it as much as I want, and I'm a little stuck on a simple
modification I want to make. When you type in a message it stores in in
a file called text.php and then the chat page does an include call for
the text.php
Ahah! That's what I was thinking, thatnks for helping me clear that up!
John Holmes wrote:
>>I have a chat script that I downloaded and according to the license I
>>can modify it as much as I want, and I'm a little stuck on a simple
>>modification I want to make. When you type in a message it st
ards
P> Patrick
A quick fix that won't account for daylight saving differences
unless Sweden uses the same dates as the US...
date("Y-m-j",strtotime(+8 hours));
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks!
JS> Joseph
JS> --
JS> PHP General Mailing List (http://www.php.net/)
JS> To unsubscribe, visit: http://www.php.net/unsub.php
I do this in cron
0,15,30,45 * * * * /usr/bin/lynx -dump http://domain.com/clkdown.php 1> /dev/null 2>
/dev/null
--
regards,
Tom
ery = "select * from images where type = '$type'";
or if you prefer
$query = "select * from images where type = '".$type."'";
PS check your comps date its a year out
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks for the answers all, I`ve combined the floor and the precision
answer and it does exactly what I want it to do.
Cheers,
Tom
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: 23 September 2002 16:24
To: Tom; [EMAIL PROTECTED]; Support @ Fourthrealm.com
I want to compare a password to a encrypted password stored in my mySQL
database using password('password'), what's the best way to compare the two?
Encrypted the password sent by the user and compare or pull the password
from the database based on username, decrypt it and then compare?
--
I dipped into mcrypt about a month or so, and did this script back then.
I had it working, it would kick out the encrypted data for me but today
when I test it I get a Fatal error: Call to undefined function:
mcrypt_create_iv() in test2.php on line 3.
And I don't understand why...any help would
also if I comment out $iv, I get the error "Call to undefined function
mcrypt_encrypt()" on that line.. I just don't understand why it keeps
doing this.
I'm running 4.2.2
Tom Ray wrote:
> I dipped into mcrypt about a month or so, and did this script back
> then.
eone finds this useful.
Cheers
Tom
--
*******
Tom Oram
SCL Computer Services
URL http://www.scl.co.uk/
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm having a small problem with a form I'm designing and I hope someone can
point me in the right direction here. The form's function is rather simple
actaully. It's supposed to take the information, run through it to make sure
all the required fields have data in them, if there is a blank require
Thanks for your help.
RB> Raph
RB> PS:Having some troubles to send on the ML, I send this through the news
RB> server (excuse if you get my request two times)
One way to cheat :)
'
?>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
doctype();
echo '';
prin
; >
>> >
>> > __
>> > Do you Yahoo!?
>> > New DSL Internet Access from SBC & Yahoo!
>> > http://sbc.yahoo.com
>> >
>> > --
>> > PHP General Mailing List (http://www.php.net/)
>> > To unsubscribe, visit:
>> http://www.php.net/unsub.php
>> >
>>
DC> __
DC> Do you Yahoo!?
DC> New DSL Internet Access from SBC & Yahoo!
DC> http://sbc.yahoo.com
make sure that register_argc_argv in your php.ini is set to true
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Thursday, September 26, 2002, 4:45:04 AM, you wrote:
SF> How do I encrypt the data and decrypt it back using PHP? I do know that hte
SF> random number can not be used becuase it will make it impossible to decrypt
SF> it.
SF> Thanks!
Here is a simple class for encoding and decoding:
class
What am I missing?
RM> Thanks!
try $key = str_replace('"', '', $key);
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e data out of a table, and, ideally format the html
into a table for display.
Have them enter the data as a comma delimited list like this:
[table]
Name,Address,City,Country
Tom,Home,Brisbane,Australia
...
[/table]
Then you could parse looking for [table] and work on the data after till
[/table
tal number of results,number of
results to show,max number of pages on a sliding scale (ends up as 2x this number..ie
20)
$limit = $page->get_limit();
$Query_beperkte_records = "SELECT woordenboek.* FROM woordenboek WHERE
".$taalkeuze. " LIKE '%" .$zoekwoord. "%' ORDER BY woordenboek.woord_ost ASC ".$limit;
$result = mysql("oostends",$Query_beperkte_records) or die(mysql_error());
$hstring = $page->make_head_string('Results');
$pstring =
$page->make_page_string("&zoekwoord=".$zoekwoord."&whatever=".$whatever);//
add the other variables to pass to next page in a similar fashion
echo "".$hstring."";
while($row = mysql_fetch_array($result)){
echo "".$show_data_here."";
}
echo "".$pstring."";
}
?>
this is of course untested with your code :)
Note: the search variables on subsequent pages will be passed by GET method
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mem(true));
echo '';
?>
When it saves the document it should then convert to iso-8859-1
Just make '' whatever the root element will be.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rtwo";
DB> echo "$id->city";
DB> Makes this XML:
DB> 1d
DB> PO BOX 698
DB> 13
DB>
DB> 1a
DB> ABCDEF GHIJKL
DB> Couldn't see anything in the bug report, ideas?
DB> /B
what exactly is $id? An object, array ?
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
valid code?
No
It should be
$print_year = $year['year']
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
o your expression, try ($adTitle != "")
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
they would like to
JB> recharge.
JB> --
JB> Jeff Bluemel
You need something like this:
function ask(){
if(document.form1.Message.value = prompt('Name',''))
form1.submit();
}
--
regards,
Tom
--
PHP General Mailing List (ht
= prompt('Name',''))
TR> form1.submit();
TR> }
TR>
TR>
TR>
TR>
TR>
TR>
TR>
TR> --
TR> regards,
TR> Tom
One too many heads...revised code:
function ask(){
if(document.form1.Message.value = promp
Hi,
Wednesday, October 2, 2002, 12:21:29 PM, you wrote:
JB> OK Tom - that script worked beautiful.
JB> there are a few different applications that I need this for, and I'm
JB> wondering if you can either help me with the coding, or refer me to a
JB> webpage that can get me sta
ogin.php I use the code
AG> $first=mysql_result($result,0,"FIRST_NAME");
AG> and I want to print this $first variable all of my php site.
AG> Thanks!
If you are wanting it to be 'global' for the same visitor across your site use
php session functions.
--
re
gt;> function CHOOSEDB ( $MyVars , $MyContents )
>> {
>> mysql_select_db( $MyVars[DATABASE] , $this->DBLink[$MyVars[LINK]] );
>> }
>> }
>>
>>
>> Thanks!
>>
>>
>> Lewis
>>
>>
Looks like you change the name of the index from NAME to LINK
and it should be $this->DBLink[$MyVars['LINK']]
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s
That is a class I put together. I use libmcrypt-2.5.2 configured with:
configure --prefix=/usr --enable-ltdl-install=no
and mcrypt-2.6.2 configured with:
configure --prefix=/usr
and in php configure:
--with-mcrypt=/usr/src/mcrypt-2.6.2 (thats where it was untarred)
and it works like a dream :
ding of the xml
document to ISO-8859-1 so it would look like this:
DÖJ>
DÖJ> -
DÖJ> -
DÖJ> sdfsdfsdf
DÖJ> ssdfsdf
DÖJ>
DÖJ> -
DÖJ> asdf
DÖJ> asdf
DÖJ>
DÖJ> -
DÖJ> sdfasdf
DÖJ> ?
DÖJ>
DÖJ>
DÖJ> Any Ideas ho
/Attach title and artist as children of item node
$record->new_child("title", $title);
$record->new_child("artist", $artist);
}
echo $doc->dumpmem();
}
?>
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
JB> error messages.
I just recompiled using the latest versions of libmcrypt - mcrypt -
mhash and it still works ok. I don't use dynamic loading of php it is
built into apache statically.
What version of PHP/apache are you using? .. I use 4.2.3
--
regards,
Tom
--
PHP General M
ing truncated to 0
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;
}
to:
class encrypt_decrypt{
var $secret;
function encrypt_decrypt(){
$this->secret = 'this is a very long key, even too long for the
cipher';
}
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
= mysql_query("SELECT userid FROM users WHERE
userpassword=PASSWORD('".$_SESSION['sspw']."') AND userid='".$_SESSION['ssun']."'",
$db_link);
SV> }
SV> $norows = mysql_num_rows($result);
SV> if($norows==1)
SV> {
Hi,
Tuesday, October 8, 2002, 12:00:59 PM, you wrote:
TR> After the successful first login you are not saving the $_POST variables
TR> into the $_SESSION equivalents
TR> --
TR> regards,
TR> Tom
Ok after looking a little harder I found you were setting it :)
Your prblem is i
or
JWH> does opera have a method to view all the headers?
JWH> ---John Holmes...
You may find this very usefull:
http://www.ethereal.com/
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John Holmes...
Yes it is encrypted ... quite a mess :)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
LOPT_HEADER, 1);
echo '';
if(!curl_exec ($ch)){
echo 'Error: '.curl_error($ch).'';
}
echo '';
curl_close ($ch);
?>
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt; Thanks,
JD> Jonathan Duncan
They are not talking about the cgi version, they mean don't compile
php into apache as a permanent module and also try to load it as a
dynamic one at the same time cgi is treated as a completely seperate
program so it can co-exist with an internal apache ph
ion.
>From the manual..
copy and rename the php.ini-dist file to your "bin" directory from your
PHP 4 source directory:
cp php.ini-dist /usr/local/bin/php.ini
or (if your don't have a local directory)
cp php.ini-dist /usr/bin/php.ini
might be of help
#x27;m allowed to use the open source code instead
SF> of the compiled codes.
You dont normally need to specify anything in php.ini for it to work
just make sure you have
--with-mcrypt=/usr/src/mcrypt-2.6.x (thats where it was untarred)
when you configure php. I have it working with nothing set in php.ini
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
int "my name is $name";
?>>
MK>
Try
If that works lookup register_globals on www.php.net
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
401 - 500 of 1845 matches
Mail list logo