473,811 Members | 1,788 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
2,624
thread by: Japhy | last post Oct 29 '05 by: Japhy
Hello, I am coding a menu using PHP. Selections on the menu have code like : <li> <a href="Updatefindatesedit.php">$fin_name1 $fin_date1 </a></li> <li> <a href="Updatefindatesedit.php">$fin_name2 $fin_date2 </a></li> etc My problem is the $fin_name1 variables can be anywhere from 1 - 20 characters
5
6,072
thread by: Ian Davies | last post Oct 29 '05 by: Chung Leong
Hello I am trying to use php to automate the copying of a file from my remotely hosted directory to my computer. I have put together the following but it will only do the copying from one directory to another on the remote server. Reading the postings on these functions they suggest that it can be done but it appears to be the case if your...
1
2,650
thread by: rushik | last post Oct 29 '05 by: Colin McKinnon
Hello all, I m facing an interesting problem related to semaphore in php. We are using a huge business application running on LAMP. For database operations we are maintaining centralized DB manager classes in php which perform all the single table related activity. Before inserting new record we are acquiring semaphore on specific key...
7
1,843
thread by: Trevor | last post Oct 29 '05 by: Steve
Consider the following code: <?php $image = imagecreatefromjpeg($_FILES); $newimage = imagecopyresampled($image_p, $image, 0, 0, 0, 0, 200, $height*$ratio, $width, $height); ?>
3
1,652
thread by: sharma | last post Oct 29 '05 by: sharma
Hi, I am passing a variable through url. www.example.com/maxmoney.php?id=xyz@yahoo.com In the maxmoney.php I have tried to catch it this way $email=$_GET; when i echoed $email or $_GET; its not displaying. I am using php 5. I could not figure out what the issue is. can any
1
1,463
thread by: Simon Schmidt | last post Oct 29 '05 by: Ian B
Hi, is there a windows uml tool other than argouml or poseidon uml? -- Simon
2
1,843
thread by: Ian Davies | last post Oct 28 '05 by: steve
Hello Stefan or anyone else who can help Some time ago you suggested a solution to my original post about connecting to data on a remote server from a VB application where my host doesnt allow a direct external contact. Your solution is below. However my host doesnt support ASP on the Linux server my site is on. My question is do you know...
0
1,786
thread by: manunderstress | last post Oct 28 '05 by: manunderstress
I'm looking for example implementations of PEAR's DataGrid (Structures_Datagrid) package. I didn't find the package documentation very helpful. Found this link which is a great into (http://www.samalyse.com/code/pear/dgdo/) but I need to go much deeper than that.
5
1,738
thread by: ashepster | last post Oct 28 '05 by: Iván Sánchez Ortega
I can read a local file with fopen("myFile.php"); However this gives me the source of the file (i.e. php code). I want to get the results of the file after it has been evaluated (i.e. HTML). The obvious way of doing this is
12
3,099
thread by: Daedalus.OS | last post Oct 28 '05 by: Daedalus.OS
Ok first I'm pretty new to OOP, so my question may sound stupid to some of you. If the only answer you can provide is "get a book about OOP" then don't loose your time and mine cause it's already ordered. I'm just too curious about this one to wait for the book. I would like to know is if it's good php programming practice to use abstract...
6
1,743
thread by: lkrubner | last post Oct 28 '05 by: Ewoud Dronkert
I apologize for my igorance of Regex. I can't get this function to work. It gives the following error message. function checkForFloatingPoint($input=false) { $pattern = "?(*\.+|+)"; $match = preg_match (pattern, subject); echo "The match is: $match "; return $match;
2
5,585
thread by: Ja NE | last post Oct 28 '05 by: BKDotCom
and new problem... buit this time I haven't found solution in some manual... problem: I would like to allow <a href="link"> tag, but I'm having problems in hidden field when checking message: situation: (STAGE 1 = typing <a href="link">message</a>) <form method="post">
6
1,686
thread by: Joseph S. | last post Oct 28 '05 by: Joseph S.
Hi, (1) I have about 8-9 .php files which are far from complex. I first used GET in all of them. Worked fine. Then I changed all method="get" to method="post" and $_GET to $_POST with search-replace, thinking that it should work, but, it seems the $_POST variables are not getting populated. Then I tried a simple one-page script using post -...
0
1,208
thread by: getphpnuke.com | last post Oct 28 '05 by: getphpnuke.com
Hi, I would like to introduce you our new site http://www.getphpnuke.com its a site for you to create your own PHPNUKE site for free. Over than 180 templates are installed with cool modules. visit us now at http://www.getphpnuke.com regards, Teddy
0
1,347
thread by: Jacinta Richardson | last post Oct 28 '05 by: Jacinta Richardson
Registrations for Australia’s second Open Source Developers’ Conference are now open. Last year’s conference was a huge hit with 60 high quality talks running in three streams over three days. If you were not able to join us last year make sure you don’t miss out this year! The conference is running from Monday 5th – Wednesday 7th December...
6
1,401
thread by: NotGiven | last post Oct 28 '05 by: Gary L. Burnore
4
1,538
thread by: Ant | last post Oct 27 '05 by: Oli Filth
Howdy, I'm creating a register form which passes some user values to my php file using POST here's the code: form name="register" method="post" action="register.php"> <tr> <td>User Name:</td>
4
1,598
thread by: frizzle | last post Oct 27 '05 by: Andy Hassall
Hi all, I have a MySQL-table. 2 fields. Field 1 -> Name Field 2 -> Nick Now i want to order them alphabetically by Nick, BUT if Nick is empty it has to pick Name. How can i mix both of them ? (example below)
3
1,665
thread by: gd | last post Oct 27 '05 by: frizzle
you can use mysql_db_query to connect diff db tables, ............... mysql_connect($hostname, $user, $passwd); $result = mysql_db_query($db1, $query1); $row1 = mysql_fetch_object($result); $result = mysql_db_query($db2, $query2); $row2 = mysql_fetch_object($result);
2
1,285
thread by: kirill_uk | last post Oct 27 '05 by: Geert Wirken
hi, all, need your help guys! i have a variable $var = "one two"; i need to replace space betwin one and two with "+". any idea? thank you all
0
1,241
thread by: Carramba | last post Oct 27 '05 by: Carramba
hi! I would realy by thanksfull if you I could get advice on with off these 2 books is worth buying? maybe bouths or mabe you have other suggestions. I need thouse books since I'am getting involvet in php-application projekt, with ll user php 5. Today my knowlege in php is stronlgy limited to simple (?) funktions. Bur I have work with...
14
2,284
thread by: frizzle | last post Oct 27 '05 by: frizzle
Hi Group, I have a site with a MySQL backend. It has a member-system. Members login with a small login-form that appears on every page (via include()) If members are logged in, the form disappears and a few extra links appear instead of the form. - If members log in, i want to redirect them, if succesful, back to the page they logged...
2
1,333
thread by: Marius III | last post Oct 27 '05 by: Ewoud Dronkert
Hi there, I am used to program with Delphi etc... I get an error on the following query: SELECT C.CityID, C.Description, COUNT(R.CityID) AS N FROM tblcities C LEFT OUTER JOIN tblrentalswanted R ON C.CityID = R.CityID LEFT OUTER JOIN tblprovinces P ON C.ProvinceID = P.ProvinceID WHERE N > 0 GROUP BY C.CityID ORDER BY C.Description
4
3,760
thread by: Sander Peters | last post Oct 27 '05 by: Sander Peters
Hi, I have the following situation: $a=5.6000; $b=8.9000; $c=($a+$b); echo $c;
1
1,405
thread by: Fran García | last post Oct 27 '05 by: Joshie Surber
I´m developping an application and i need to protect some files to be seen only by the registered users. I protect the folder with the ..htaccess properties and then, any time the user need a protected file, the application call a function like downloadfile.php?filename=<filerequired>. The problem now is when the file is bigger than 10Mb,...

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.