473,811 Members | 2,597 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
6
36,215
thread by: Jørn Dahl-Stamnes | last post Nov 10 '05 by: Ewoud Dronkert
I got the following code: reset ($_POST); while (list($key,$val) = each($_POST)) { echo "$key => $val\n"; } But this prints out nothing. If I replace the code above with:
5
13,264
thread by: Krustov | last post Nov 10 '05 by: Krustov
For use in a install.php What would be the best way to do it .
3
6,579
thread by: fionathomson | last post Nov 10 '05 by: Janwillem Borleffs
Hi, I am using PHP version 4.4.0.0 and apache2 version 2.0.54. I am trying to install the xml dom support but am not having any luck. Following the instructions on php.net I have done the following:
4
1,863
thread by: Nel | last post Nov 10 '05 by: Nel
Hi all, I am driving myself crazy trying to think of a solution to this - perhaps one of you guys can see a simple solution. The problem is displaying the contents of an array in what appears to be random order, but in fact is a set sequence depending on a given value (e.g. the day of the month). So on the 1st of the month the array is...
1
1,379
thread by: Carramba | last post Nov 10 '05 by: puneet.kandhari
hello! I have sipmle logging script that cechs is user exist in user_table and if pasword is corect. know I want to serch 2 tables user_table and admin_table to lock if person is user or admin if admin I want to set one kind of permitions (to se specific pages) if user to se. that is the best way to do it? should I set session to...
0
2,085
thread by: spoonlikesham | last post Nov 10 '05 by: spoonlikesham
I've never used SOAP before, so am more than a little foggy on it. Just doing a project where it's basically the only way, and due to limitations on the server, I have to use nuSOAP (unless there's a better option that runs as a class...). Anyway, I've got it talking to the server happily.. Just not passing attributes. This is what I need, in...
5
4,992
thread by: Daniel | last post Nov 10 '05 by: Daniel
Does anybody have any practical experience at running PHP scripts as a Windows service? I've followed the instructions at http://www.php.net/manual/en/ref.win32service.php and have downloaded the php_win32service.dll file and placed it in my extensions directory, added the line "extension=php_win32service.dll" to my PHP.ini file, restarted...
4
1,691
thread by: Peter | last post Nov 9 '05 by: Peter Jay Salzman
Very perplexing. This function creates a png image of a random string (this is to filter out blogging spam). It should be very straight forward. function createImage( $text=0 ) { $img_dir = '/tmp'; (snip!)
9
2,007
thread by: frizzle | last post Nov 9 '05 by: frizzle
Hi groupies, I have 2 small questions, which i really want to be sure about: - does mysql_real_escape_string() prevent any kind of mysq-injection? - can it put escaped quotes etc in the DB, or are those automatically 'converted' again? Thanks!
1
1,554
thread by: frizzle | last post Nov 9 '05 by: Andy Hassall
Hi there, I had another topic about this problem, and i thought i figured it out, but i didn't :( I tested inserting the following text: '"\ (single quote, double quote, backslash) Via PHP:
8
4,920
thread by: Maximus | last post Nov 9 '05 by: Peter Jay Salzman
Is there any any any way I could grab the NIC MAC Address in PHP? if no, is there any way i can grab any hardware ID using PHP? I actually need it for a poll system, I don't wanna use IP system for many users use 1 IP, and cookies is a real non-secure way. If there's by any chance a way to use either the NIC MAC or the internal IP address...
0
367
thread by: frizzle | last post Nov 9 '05 by: frizzle
Hi there, I had another topic about this problem, and i thought i figured it out, but i didn't :( I tested inserting the following text: '"\ (single quote, double quote, backslash) Via PHP:
1
1,601
thread by: Adam i Agnieszka Gasiorowski FNORD | last post Nov 9 '05 by: Justin Koivisto
I downloaded evaluation version of Zend Studio for Mac and it seems it is completely unusable - I see no way to make the default font used to display code any bigger (nor choose a different font family). As for now, it is so tiny on my display I can hardly read it. I remember I liked the product on Wintel and looked forward into playing with...
0
1,221
thread by: ǧ½ï¶¥ | last post Nov 9 '05 by: ǧ½ï¶¥
Õã½*ǧ½ï¶¥×¨ÒµÉú²ú³§¼ÒΪÄúÌṩʱÉгäÆøǧ½ï¶¥¡£ <a href=http://www.sx-machine.com/intro.htm>º¼ÖÝǧ½ï¶¥</a>ʹÓ÷½Ê½´òÆÆÁ˳£¹æµÄҺѹʽǧ½ï¶¥·³Ëö¡£ -- http://www.mw-internet.de - Service und Kompetenz aus einer Hand
5
5,954
thread by: JackM | last post Nov 9 '05 by: Adam i Agnieszka Gasiorowski FNORD
I'm trying to write a function that will trim and strip new line character returns from submitted $_POST values. Does this look serviceable? function trim_data($formdata) { foreach ($formdata as $key => $value) { $value = preg_replace("(\r\n|\n|\r|\t)", "", $value); $newdata = trim($value);
1
1,701
thread by: zelzel.zsu | last post Nov 9 '05 by: Erwin Moller
What is php's behavior when connect to a db? I've been told that php was once a dominant web programing language. I've read a few chapters of a php book. I was wonder what's php's performance. Perl was once for a while a popular programming language for cgi. But start very process per one web visit cause serioius problem to system...
4
1,490
thread by: frizzle | last post Nov 9 '05 by: frizzle
Hi there, I've looked in many places for what i need, but i just can't seem to find it. I keep ending up in ad-managing systems, or link-trackers ... I have 1 mySQL table called 'categories': -> id (INT), category (VARCHAR) And 1 called 'links':
1
1,232
thread by: Peter Jay Salzman | last post Nov 9 '05 by: Justin Koivisto
Is it possible to create an image file from a string using only functions from core PHP (in other words, without 3rd party libraries/applications)? I'm interested in any image file that is displayable without plugins or helper applications, like jpg, png, gif. Thanks!
2
1,439
thread by: klingus | last post Nov 9 '05 by: klingus
I am running into problems obtaining the return value of a method I have in a COM+ DLL. I have the following code snippet: STDMETHOD(add)(long num1, long num2, long* result); STDMETHODIMP CsampleApp::add(long num1, long num2, long *result) { *result = num1 + num2;
0
1,068
thread by: Markus L. | last post Nov 9 '05 by: Markus L.
Hi, I am the developer of an open source PHP framework. I like programming but I don't like documentation, so my programms are poorly documented. I need one or more people which want to help me to document my SCA, SCA-Calendar and/or SCA-CMS. Look at my webpage and contact me by mail if you are interested. --...
1
6,272
thread by: lithne | last post Nov 9 '05 by: Dikkie Dik
Hi, when I try to open phpMyAdmin administration page I got this error: 'Cannot load mysql extension, please check your PHP configuration' I cannot sort out what's the source of the problem, cause: 1. In the php.ini file I commented out the line 'extension=php_mysql.dll' and properly set the path to extension directory: extension_dir =...
0
335
thread by: Freebird | last post Nov 9 '05 by: Freebird
Hello you guys, I've with a problem, I hope you guys can help me. I need, from server b, to connect to server a, over the internet, to be able to open a .txt file and make it a copy to insert line by line inside server b, the problem, is that I need to make sure the user from server b, is someone ok, what I mean is, there's a table inside...
0
1,515
thread by: ÁùºÏ²Ê | last post Nov 9 '05 by: ÁùºÏ²Ê
Ïã¸ÛÁùºÏ²Ê¹«Ë¾ÊÇĿǰȨÍþµÄÏã¸ÛÁùºÏ²ÊÐÅÏ¢ÍøÕ¾¡£<a href=www.xg7899.com>ÁùºÏ²Ê¹«Ë¾</a>Ìṩ¸÷ÆÚ½ðÌ«Ñô±¨¼°ÐµÄÁùºÏ²Ê¹«Ë¾ÐÅÏ¢×ÊѶ¡£±¾Õ¾ÎªÏã¸ÛÁùºÏ²Ê¹Ù·½ÍøÕ¾£¬ÏÖÔÚ³öÏÖÁ˺ܶàð³äÎÒÃÇÏã¸ÛÁùºÏ²ÊµÄÍøÕ¾£¬Çë²ÊÃñ×¢Ò⣡ -- http://www.mw-internet.de - Service und Kompetenz aus einer Hand
4
1,965
thread by: Bob Stearns | last post Nov 9 '05 by: Bob Stearns
Right now, I am attempting to see how many users are "signed on" to my system. Since this is, at best, rather tenuous in a WEB environment, I thought to read the active session variables and see how many sessions there were.
5
9,460
thread by: Seamus M | last post Nov 9 '05 by: Dana Cartwright
I can't find any info on enumerations in the PHP manual, so I assume there is no built in way to create them. Can anyone tell me the best way to build a simple enumeration, such as: Enum AllItems as Integer 'First Item' = 1; 'Second Item' = 2; : End Enum

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.