php-general Digest 22 Feb 2007 04:54:37 -0000 Issue 4639

2007-02-21 Thread php-general-digest-help
php-general Digest 22 Feb 2007 04:54:37 - Issue 4639 Topics (messages 249196 through 249208): reversing utf-8 string 249196 by: James Tu Re: how can I find out if I have mcrypt and mhash installed? 249197 by: Eric Butera 249201 by: Jürgen Wind 249202 by:

Re: [PHP] PHP Dynamic data in CSS Pop Up got but just one.

2007-02-21 Thread Jochem Maas
Chris Carter wrote: Hi, I am trying to create a dynamic table. Which is working fine. On the onclick event of one of the hyperlink in a field (called Details) a small css pop up opens. THis works fine when I have just one row. But in case I have more than one rows the Details link comes

RE: [PHP] Re: Securing user table with sha function

2007-02-21 Thread Tim
Oops, didn't mean to offend or start a fight. Thank you all for your input, its about the same as on the web: there is no right way.. Well i'll just have to mix and match all these methods and decide which works best for me. Just for info, yes its a dedicated server, and i am hosting the same

Re: [PHP] PHP Dynamic data in CSS Pop Up got but just one.

2007-02-21 Thread Chris Carter
Thats great! I would try that as a solution. However, I am not sure if everytime a seperate div would open at the location of the row. For example, if I have data in the first row that row gets hyperlinked and the Div can be opened on the first row. After the first row at least 20 rows are grayed

Re: [PHP] Problems processing UNIX timestamps in events directory

2007-02-21 Thread Dave Goodchild
Thanks all for your input - you're all correct, I don't really need to use timestamps as I am only interested in dates so will be reworking the app to use dates only. I still need to generate sequences of dates and really don't want to deal with DST, so my question is: can I add days to dates

Re: [PHP] css in mail()

2007-02-21 Thread Sancar Saran
Hi, Actual was this !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html head meta http-equiv=content-type content=text/html; charset=utf-8 / meta name=description content= / meta name=keywords content= / titleTitle/title

Re: [PHP] Problems processing UNIX timestamps in events directory

2007-02-21 Thread Németh Zoltán
2007. 02. 21, szerda keltezéssel 09.33-kor Dave Goodchild ezt írta: Thanks all for your input - you're all correct, I don't really need to use timestamps as I am only interested in dates so will be reworking the app to use dates only. I still need to generate sequences of dates and really don't

[PHP] Re: save email in original layout

2007-02-21 Thread David Robley
Richard Kurth wrote: I need to save an email in a mysql database so that it retains it's original layout so the example below Hello , Do you dream of a better life? Do you wish you had financial stability and freedom? Would you like to be your own boss? would look like this

Re: [PHP] Latin letter problem!

2007-02-21 Thread Dotan Cohen
On 20/02/07, Richard Lynch [EMAIL PROTECTED] wrote: PS Mozilla-based browsers want your charset in the HTTP Content-type header IE and IE-knockoff browsers want your charset in the META tags. You have to do *both* to get all browsers to play nicely. Even for mozilla-based browsers you need

Re: [PHP] PHP Dynamic data in CSS Pop Up got but just one.

2007-02-21 Thread Jochem Maas
Chris Carter wrote: Thats great! I would try that as a solution. However, I am not sure if everytime a seperate div would open at the location of the row. For example, if I have data in the first row that row gets hyperlinked and the Div can be opened on the first row. After the first row at

Re: [PHP] Re: remote fopen not working, despite allow_url_fopen = on

2007-02-21 Thread alex handle
On 2/21/07, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, February 19, 2007 9:43 am, alex handle wrote: A minute ago i tried to run my test script (remote.php) on the shell and the remote fopen works!! The problem must be within the php apache module or apache self. Is there a way to

[PHP] New Menu Bar - Can people test it for me?

2007-02-21 Thread Scott Gunn
All, http://www.thebigspider.co.uk/test/menu.html I'm going to write some php code which will build this menu from an XML file. Before I do, I want to know what sort of browser compatibility it has? could you guys test it and let me know if it worked ok and looked like the preview picture?

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-21 Thread Sancar Saran
On Wednesday 21 February 2007 14:12, Scott Gunn wrote: OK for Konquerror Linux All, http://www.thebigspider.co.uk/test/menu.html I'm going to write some php code which will build this menu from an XML file. Before I do, I want to know what sort of browser compatibility it has? could you

[PHP] anti-spam GD security image code validation

2007-02-21 Thread Bare
Can someone explain how the validation works? I have included a code (that generates random security code and places it on a GIF) to the page where the submission form is. Now, when submitting a comment, the user has to type and submit this security code. So far it's OK, but how to VALIDATE if

[PHP] Re: anti-spam GD security image code validation

2007-02-21 Thread Scott Gunn
Could you not ? 1. Generate a code and put it in a session variable 2. Create the validation picture and display to the user 3. On validating compare the code to the session variable Regards Scott. Bare [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can someone explain how the

Re: [PHP] anti-spam GD security image code validation

2007-02-21 Thread cajbecu
Ok, I could store actual security code in a hidden text field of the form, but then it wold be visible to spam bots, isn't it? Or maybe there's another way to do this? it`s not very good ideea to keep the security code in a hidden text field. keep it in a session var. cajb. -- PHP

[PHP] php and .net webservice

2007-02-21 Thread Arno Coetzee
Hi all, I have a php client that needs to interact with a .net web service. The method I call returns a strongly typed dataset (some or other .net object). I cannot seem to get my php client to understand what this dataset is. I can see the information with a tcpdump, but for the life of me

[PHP] printer functions

2007-02-21 Thread Leslie Aguilera
Hi PHP I am having problems with the printer functions, I have a touch screen pos system and it works very fine, all prints works ok on receipt, ticket printers, now the problem I am having is getting it to work on a lan, with 2 computer 4 printers, if I send information to from A to computer B

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-21 Thread Németh Zoltán
works on linux/firefox and xp/ie7 greets Zoltán Németh 2007. 02. 21, szerda keltezéssel 12.12-kor Scott Gunn ezt írta: All, http://www.thebigspider.co.uk/test/menu.html I'm going to write some php code which will build this menu from an XML file. Before I do, I want to know what sort

[PHP] How to call image from mySql to php file

2007-02-21 Thread Chris Carter
I have a field in database called logos which has one value images/logos/some_logo.jpg In my php I am trying to call it in my php file as image. With this code. $sno = $_REQUEST['sno']; $query=SELECT logos FROM table WHERE sno = '$sno'; $result=mysql_query($query);

[PHP] Storing compiled code on the server

2007-02-21 Thread Brian Dunning
I have a few scripts that I want to protect from the prying eyes of even people with root access to my server. The best suggestion I've heard is to store only the compiled version on the server itself. I have no idea how to do this or how those scripts would be called. Can anyone point me

Re: [PHP] How to call image from mySql to php file

2007-02-21 Thread Németh Zoltán
2007. 02. 21, szerda keltezéssel 06.26-kor Chris Carter ezt írta: I have a field in database called logos which has one value images/logos/some_logo.jpg In my php I am trying to call it in my php file as image. With this code. $sno = $_REQUEST['sno']; $query=SELECT logos FROM table

Re: [PHP] php and .net webservice

2007-02-21 Thread Jon Anderson
Arno Coetzee wrote: I have a php client that needs to interact with a .net web service. The method I call returns a strongly typed dataset (some or other .net object). I cannot seem to get my php client to understand what this dataset is. I can see the information with a tcpdump, but for the

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-21 Thread Chris Ditty
Works fine on FF/XP Looks nice btw. (sorry for the dup post Nemeth) On 2/21/07, Németh Zoltán [EMAIL PROTECTED] wrote: works on linux/firefox and xp/ie7 greets Zoltán Németh 2007. 02. 21, szerda keltezéssel 12.12-kor Scott Gunn ezt írta: All, http://www.thebigspider.co.uk/test/menu.html

Re: [PHP] Storing compiled code on the server

2007-02-21 Thread Németh Zoltán
2007. 02. 21, szerda keltezéssel 06.52-kor Brian Dunning ezt írta: I have a few scripts that I want to protect from the prying eyes of even people with root access to my server. The best suggestion I've heard is to store only the compiled version on the server itself. I have no idea how

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-21 Thread Németh Zoltán
2007. 02. 21, szerda keltezéssel 08.58-kor Chris Ditty ezt írta: Works fine on FF/XP Looks nice btw. (sorry for the dup post Nemeth) no problem however, my first name is Zoltán and last name is Németh ;) (it is written in the opposite order in Hungary that's why it appears as Németh Zoltán

RE: [PHP] Storing compiled code on the server

2007-02-21 Thread Edward Kay
I have a few scripts that I want to protect from the prying eyes of even people with root access to my server. The best suggestion I've heard is to store only the compiled version on the server itself. I have no idea how to do this or how those scripts would be called. Can anyone point me to

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-21 Thread Jürgen Wind
Scott Gunn-2 wrote: http://www.thebigspider.co.uk/test/menu.html works/looks nice on FF3 (Minefield ;) Juergen -- View this message in context: http://www.nabble.com/New-Menu-Bar---Can-people-test-it-for-me--tf3266443.html#a9083270 Sent from the PHP - General mailing list archive

[PHP] Re: New Menu Bar - Can people test it for me?

2007-02-21 Thread Al
The W3C validator reports 72 errors. I've found the best insurance for compatibility is to be W3C compliant. Scott Gunn wrote: All, http://www.thebigspider.co.uk/test/menu.html I'm going to write some php code which will build this menu from an XML file. Before I do, I want to know what

[PHP] When to use exception, or When not to use exception

2007-02-21 Thread js
Hello list, Recently I upgraded my dev environment and started to use PHP5 at last! Compared with the former one, PHP5 rocks in many ways. So I love it so much, but sadly, I don't exactly know when to use exception. I'm never used to use Java, or languages that support exceptin so I have to

[PHP] Embeding HTMl into a XML doc

2007-02-21 Thread Dwain Crackel
The $dom-save(); command HTML encodes the text, as such I can't save html inside a XML node. Is there a way around this, as I would I like to do so? Thank you Dwain -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] reversing utf-8 string

2007-02-21 Thread James Tu
There doesn't seem to be a multibyte equivalent of strrev(). Is there an easy way to reverse the order of characters in a string w/o traversing the characters backwards and creating a new string by concatenating the characters? -James -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] how can I find out if I have mcrypt and mhash installed?

2007-02-21 Thread Eric Butera
On 2/21/07, Ross [EMAIL PROTECTED] wrote: Thought it would be in the phpinfo() but cannot find it. R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php If it is compiled in then you should see it in phpinfo. I looked at mine and saw a

[PHP] Zend question

2007-02-21 Thread Brian Dunning
I have eAccelerator on my server. I want to use Zend Guard. Anyone know if I'll need to lose eAccelerator and switch to Zend Optimizer? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing compiled code on the server

2007-02-21 Thread Andrei Verovski (aka MacGuru)
On Wednesday 21 February 2007 16:52:40 Brian Dunning wrote: I have a few scripts that I want to protect from the prying eyes of even people with root access to my server. The best suggestion I've heard is to store only the compiled version on the server itself. I have no idea how to do this or

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-21 Thread Stut
Scott Gunn wrote: http://www.thebigspider.co.uk/test/menu.html While I'm sure you're aware of this, I think it's worth pointing out. You are breaching the copyright of a very litigiously trigger-happy company with this. Unless you have their permission to use this layout and the graphics

Re: [PHP] how can I find out if I have mcrypt and mhash installed?

2007-02-21 Thread Jürgen Wind
Ross Hulford wrote: Thought it would be in the phpinfo() but cannot find it. R. ?php echo 'mcrypt is '; if(!function_exists('mcrypt_encrypt')) echo '*NOT* '; echo 'available'; ? J. -- View this message in context:

Re: [PHP] how can I find out if I have mcrypt and mhash installed?

2007-02-21 Thread Jürgen Wind
Jürgen Wind wrote: Ross Hulford wrote: Thought it would be in the phpinfo() but cannot find it. R. ?php echo 'mcrypt is '; if(!function_exists('mcrypt_encrypt')) echo '*NOT* '; echo 'available'; ? J. ... but if you intend to activate it : remove the

Re: [PHP] Storing compiled code on the server

2007-02-21 Thread Jürgen Wind
Andrei Verovski (aka MacGuru) wrote: On Wednesday 21 February 2007 16:52:40 Brian Dunning wrote: I have a few scripts that I want to protect from the prying eyes of even people with root access to my server. The best suggestion I've heard is to store only the compiled version on the

[PHP] DOM Element default ID attribute

2007-02-21 Thread Eli
Hi, I want to declare a default ID attribute to all elements in the document. For example: If an element got the attribute 'id' then I want it automatically to become the ID attribute of the element. How can I do that? -thanks! -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-21 Thread Jim Lucas
Scott Gunn wrote: All, http://www.thebigspider.co.uk/test/menu.html I'm going to write some php code which will build this menu from an XML file. Before I do, I want to know what sort of browser compatibility it has? could you guys test it and let me know if it worked ok and looked like

[PHP] Re: How to call image from mySql to php file

2007-02-21 Thread Haydar TUNA
Hello, Firstly, your image table field should be BLOB field then you create a image file (for example image.php). in this file, if your application is more secure, you can control the session variables. You get key column of your BLOB table (for example id, studentnumber and so on) with

[PHP] Re: How to call image from mySql to php file

2007-02-21 Thread Haydar TUNA
Hello again, I make a mistake in the image.php code at echo($row['resim']); line. if you change this line echo($row['picture']) , your problem will be fixed. : I have written table field in Turkish. in Turkish picture means that resim :) -- Haydar TUNA Republic Of Turkey -

RE: [PHP] Catch STDERR

2007-02-21 Thread Peter Lauri
Hi Steve, Yes that would be an option. But then I need to put the username and password (alternativly ssh2_auth_hostbased_file). Hrm, will think about it for a while. I might try it out. My speed requirements aren't really restricted as it is run on a local network and no dense traffic. I will

RE: [PHP] DOM Element default ID attribute

2007-02-21 Thread Peter Lauri
This was not clear for me, do you mean: a peter = a id=peter Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Eli [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22,

Re: [PHP] Re: How to call image from mySql to php file

2007-02-21 Thread Kevin Waterson
This one time, at band camp, Haydar TUNA [EMAIL PROTECTED] wrote: Hello, Firstly, your image table field should be BLOB field then you create a image file (for example image.php). in this file, if your application is more secure, you can control the session variables. You get key

Re: [PHP] DOM Element default ID attribute

2007-02-21 Thread Eli
Peter Lauri wrote: This was not clear for me, do you mean: a peter = a id=peter No. Let me try to be more clear.. Say you got the element elem key=peter , then I want the DOMDocument to automatically convert the 'key' attribute to an ID-Attribute, as done with DOMElement::setIdAttribute()