473,800 Members | 2,304 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.
2
1,272
osward
thread by: osward | last post Oct 26 '07 by: osward
Hello everyone, Background: cat table - holds the event details and has a unique "eid" field user and user_temp table has the "eid" "user_id" and other fields, they are almost identical, the only difference is when user confirm the registeration of the event, it moves from user_temp to user What I want to do is return a history telling...
4
1,103
thread by: Xav | last post Oct 26 '07 by: Rik Wasmus
Why does this not work ? $fileDir = '../folder2/'; $content is an array of php files, file1.php file2.php file3.php etc... $c = count($content); for( $x=0; $x<$c; $x++ ){ include( $fileDir.$content ); }
5
3,920
thread by: nma | last post Oct 26 '07 by: nma
Hi I have a popup windows that display the database content and I want to have save button that save content to a text file. Most code I found is saving a text area. How do I do that? Thanks
2
1,142
thread by: syringa | last post Oct 26 '07 by: ak1dnar
how can link two directories in php. Iam using php on linux platform. I want to something like this ln $dir1 $dir2 . Is this possible. I guess link () function link two files not directories. please help me in this regard . Thanks
2
1,223
thread by: tuananh87vn | last post Oct 26 '07 by: nathj
hello, I need some help! in this first page I have a variable $v1 which hold some value. without post method, cookie or session, is there any other way to keep the value when we submit a form and move to another page. the problem is that this $value does not belong to the form so I don't know how to keep its value when moving to other pages.
6
6,953
thread by: Taras_96 | last post Oct 26 '07 by: Taras_96
Hi everyone, The output of echo file_get_contents("http://watchout4snakes.com/creativitytools/ RandomWord/RandomWordPlus.aspx"); leaves the browser empty.. no error messages, nothing. Why is this occurring?
3
1,606
thread by: groups2 | last post Oct 26 '07 by: groups2
Can someone please explain the results below We switched to PHP 5 if I make a copy of an object, and then change the variable inside the object the change is reflected in the copy. Either the copy is a reference to the object or the variable inside the object is a static variable, I'm not sure what is going on, but It doesn't seem like it...
3
1,113
thread by: jx2 | last post Oct 26 '07 by: pbmods
i've just upgrated to the newest version of php and apache instead of error messages(for debuging) i see only error 500 page i tried to change php.ini but i dont thing thats make any difference the sam about httpd.conf any idea how to change it? thx jx2
14
1,527
thread by: gezerpunta | last post Oct 26 '07 by: Michael Fesser
Hi I need a regex code for parsing this string to an email array "mnp test" <celo@tum.com>,"test testt" <otur@par.com>,sett@tttt.com,test@twest.com thanks
6
4,373
wadro21
thread by: wadro21 | last post Oct 25 '07 by: Atli
Hello everyone, i am trying to pull from a myql database all records from a table with multiple rows. i need to be able to call the data from each row one by one i would asume from an array. the trouble is i can select the data from mysql but dont know how to print the data in php one row at a time. here is my code: $imgquery= "SELECT * FROM...
2
2,763
thread by: Weston | last post Oct 25 '07 by: Weston
Poking around with XPath using SimpleXML, it looks like there are at least a few reasonably common XPath operators and predicates that aren't supported. I'd like to check my observations against other people's experience, and find out if I'm missing something. Here's what it looks like to me in PHP 5.2.0: * the count() predicate seems to...
3
1,396
thread by: Kevin Blount | last post Oct 25 '07 by: Kevin Blount
"PHP has encountered an Access Violation at 01C21255" I'm running a very simple script, that fails when I run it, though other seem to be able to use it (see this thread: http://groups.google.com/group/comp.lang.php/browse_thread/thread/4b5602c289865a7d/#) when I run via Firefox, initially I see the above error msg, then I get the Firefox...
3
11,379
sanjay123456
thread by: sanjay123456 | last post Oct 25 '07 by: tolkienarda
Dear friends , Plz any one tell me What is difference between mysql_fetch_assoc and mysql_fetch_array while both are return associtive array ?
2
2,298
thread by: Taras_96 | last post Oct 25 '07 by: Taras_96
Hi everyone, I'm trying to get the code found at http://www.inventory-management.org/ up and running. So far I've created the database, edited the configuration files to include the database information, renamed the fputcsv function to f_put_csv. I'm trying to log into the page by using the suggested user/pass of admin/test. However, I can...
4
1,339
thread by: turnitup | last post Oct 25 '07 by: JustinCarmony
I am in the process of transforming a procedural code base into an OO code base. The code lends itself to this refactoring and it is proving an effective exercise. However, I am running into a few irritations. I am using __autoload to load class files corresponding to code names. I've cranked up error reporting, but if for some reason...
8
1,384
thread by: Steve Ray | last post Oct 25 '07 by: Sanders Kaufman
Guys Is there a way to capture via an environment variable the users screen res Steve
4
6,938
thread by: trading_jacks | last post Oct 25 '07 by: etbalex
I am new to php and google doesn't allow for searching on the @ symbol. I have a script with the following line: if (@$type_toggle || @cat_toggle) { do_query........ What does the @ do? Can you give me a link so I can read about it.
0
1,123
thread by: prasankn | last post Oct 25 '07 by: prasankn
Hi, I am using ssh2_shell to run cvs commands. It is working for linux. I cant able to work it for windows. Commands like dir, set PATH, cd were working.
4
4,073
thread by: laredotornado | last post Oct 25 '07 by: Michael Fesser
Hi, I'm using PHP 4.4.4 with Apache 2 on Fedora Linux. I have a page, which contains (roughly) $sub_cat_name_arr = split(",", trim($_REQUEST)); foreach ($sub_cat_name_arr as $sub_cat_name) { /* Processing */
12
1,963
thread by: cmk128 | last post Oct 25 '07 by: Steve
Hi PHP's regular expression look like doesn't support .*? syntax. So i cannot match the shortest match. For exmaple: $str="a1b a3b"; $str1=ereg_replace("a.*b", "peter", $str1); will produce "peter", but i want "peter peter", so how to? thanks from Peter (cmk128@hotmail.com)
2
1,541
thread by: syringa | last post Oct 25 '07 by: syringa
hi , iam using php on linux platform. when i use shell_exec("pwd") , it properly shows me the directory iam in, but when i give shell_exec("ls -l") , it doesnt work . CAn anyone help me in this regard!
5
3,313
thread by: ratnamb | last post Oct 25 '07 by: ak1dnar
Hi In PHP, when I am sending a mail following message is getting displayed. Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini Can please help me out. Thanks
3
1,655
thread by: backups2007 | last post Oct 25 '07 by: Markus
Here'es my code. I double checked it and I can't seem to find any reason why it won't work. Or maybe I just missed something. Please help. Thanks. If you have any suggestion on how I can improve this code, please post your them. //inserting so if($cust_id!="") { $query_dealer = mysql_query("INSERT INTO service_order (so_no, cust_id,...
2
2,083
thread by: Jeterdawg | last post Oct 25 '07 by: Markus
Hello, extreme newbie here... I am trying to create a drop-down menu (select input type), and based on which of the options the user selects (Yes or No), an input text box appears for the user to enter their member number. Unless the user selects "Yes" from the menu, this box shouldn't appear. I have tried two options -- using javascript...
4
1,420
thread by: klaydze | last post Oct 25 '07 by: ak1dnar
hi guyz, i have a difficulty in understanding the header function. they said that you must first call the header function before any output on the page will make?is that right? because i create a simple login which when the user click the button submit the query for searching of registered user will execute and will redirect to index.php.after...

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.