473,800 Members | 2,413 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.
3
1,244
George Lft
thread by: George Lft | last post Jan 15 '08 by: Markus
<?php //beginning tag $host = "localhost"; $dbuser = "root"; $dbpass = ""; $connection = mysql_connect($host,$dbuser,$dbpass); $dbname = "tutorial"; $db = mysql_select_db($dbname); //grab data from form
12
2,540
thread by: jodleren | last post Jan 15 '08 by: jodleren
Hi I have an app, where I should upload files... Problem: when e.g. uploading 14MB (just 10MB) the page will load, then go back to the original page.... by some reason I cannot upload large files, larger than some 5 MB. I cannot get any information it looks like my server just reloads the original page.
14
5,510
thread by: ashore | last post Jan 15 '08 by: Ivan Marsh
Folks, I'm looking to send some coords data to a GPS unit. Any hints on how to do that will be mucho appreciado. Info on addressing as well as data formats, ... ? I want to embed this capability in an Open Source PHP package I'm writing, so known comm'l products with a similar capability, e.g., TomTom, won't do it, I believe. (But do...
4
18,612
thread by: Anthony Smith | last post Jan 15 '08 by: Anthony Smith
I have a class that calls some web services. I did not want the url of the web services to be hardcoded in the class. What is the best way to go about doing this?
5
2,649
thread by: Bruno Rafael Moreira de Barros | last post Jan 15 '08 by: Rik Wasmus
function test1() { trigger_error('My error'); } application.php //code... test1(); //code...
3
1,591
thread by: B | last post Jan 15 '08 by: Toby A Inkster
Hi, Im new to php (as of this weekend) I have an app setup which sends an email. I'm using php and mysql on Ubuntu. I'm a little confused how to setup the smtp mail servers in the php.ini file (this is where I set it up right?) Im sure I have the actual php code correct in my page, and it is the mail server settings thats creating the...
4
2,801
thread by: cmk128 | last post Jan 15 '08 by: Rob
Hi is it possible to write something to the apache log? thanks from Peter (cmk128@hotmail.com)
34
5,613
thread by: Kurda Yon | last post Jan 15 '08 by: Rik Wasmus
Hi, As you have recommended I did not use the session_register(). In one file I have executed such line: $_session = 2.0; Then, in another file, I have executed the following line: $ex = 3.0. And than I have noticed that the previous assignment is seen
8
2,401
thread by: Kurda Yon | last post Jan 15 '08 by: The Natural Philosopher
Hi, I have to decide which form-method I should use (GET or POST). I found the following recomendation: If the service associated with the processing of a form has side effects (for example, modification of a database or subscription to a service), the method should be POST. (http://www.cs.tut.fi/~jkorpela/ forms/methods.html). However,...
8
1,307
thread by: IanReardon | last post Jan 15 '08 by: Toby A Inkster
I'm trying to optimize a php project of mine and I'm running into some problems. Overall the page takes about .4-.5 seconds to render (just the code, i'm recording the time at start and finish of execution) on a my dual core server with nothing else running (other than httpd and mysqld) I've optimized my queries, total mysql query time is...
13
5,998
thread by: border9 | last post Jan 15 '08 by: border9
What im attempting to do is pull email address from a database already built, i need to be able to select the email address depending on the date they are given. Then i need to be able to Implode the list of email address so i can send out multiple emails to multiple Clients at one time. This is what i have so far. ******************Form...
9
2,943
thread by: Martin | last post Jan 15 '08 by: Captain Paralytic
I'm retrieving some records from a database. One of the fields contains a date/time. I would like to format it as I send it out to the table in the displayed page. Can some one please tell me how I can/should do that? Or possibly point me to an on-line explanation? Thanks ps: if it makes any difference, the data is coming from a MS...
4
1,832
thread by: ZENITH0510 | last post Jan 15 '08 by: ZENITH0510
Hi, i'm trying to understand how to apply a Tabu search algorithm to a course scheduling problem. my problem is though i learnt the basics of tabu search, i am having difficulties to put it in code and link it to the creation of interfaces, etc... Can someone help me please. Thanks
1
1,206
Ajm113
thread by: Ajm113 | last post Jan 15 '08 by: MarkoKlacar
Hello everyone. Ok this is my goal: When a user sorts by number of keywords and lets say one result had 5 keywords of what the user entered in that has a better chance on being up top. I already know how to find keywords in a string of a result, but how can I tell php or mysql where it should be if it had a lot of keywords or not a lot? ...
1
930
thread by: imurchique | last post Jan 15 '08 by: MarkoKlacar
hi! im olive, i only new the basics of php and i have this problem..our website has it's own feedback form but for some reasons it's not working, can someone help me find what could be the problem in the script coz everytime i hit the submit form in the feedback form page it always return the error 'Invalid Entry: Hit your browsers back button and...
1
1,083
thread by: Eglute | last post Jan 15 '08 by: MarkoKlacar
Every time when I run my code the result is 1 time. I do not understand why? I imagine that the time should be grow. It should be 1 time, 2 time and so on. My code is: <? $counter=0; $counter++; setcookie('counter',$counter); if(isset($_COOKIE)) $counter1=$_COOKIE; echo $counter1."<br>";
5
2,460
thread by: Kurda Yon | last post Jan 15 '08 by: Rik Wasmus
Hi, in the home directory I put .htaccess with "register_globals 0". Obviously, all php-files from this directory will not take variables from the address line. But, as far as I understand, the .htaccess files influences on all files in the subdirectories so that they also cannot take the variables from the address line. Should it be like...
1
1,001
thread by: annerhexian | last post Jan 15 '08 by: Markus
hi.. greetings!! im confused.. how can an arrayrow will be displayed in an column?? could you give me advices on this part.. tanx.. need it for one day if its ok with you? <?php
4
3,015
thread by: Mustikos | last post Jan 15 '08 by: Mustikos
I'm trying to figure out why, when I remove a word from a string in a text box and then split or explode the string, I'm getting a blank in the array. For example, I input, "replica wooden box" I str_replace replica and then remove and double space , I've tried several different methods and even tho the string looks fine, after reprinting it in...
2
1,950
thread by: mukeshrasm | last post Jan 15 '08 by: mukeshrasm
Hi I am creating page dynamically with upload image(more than one) feature. while uploading image I don't know which images are already uploaded so I want to give user a feature to change the file name if the image file already exist. so how can I do that?
18
4,932
thread by: plenty900 | last post Jan 15 '08 by: Aaron Saray
Hi all, I was curious if one can put an array in a session variable. I want to store some search results in such a variable, so it would be an array of objects. However I don't know if that was even the intended purpose of a session variable, and I also don't know how long session variables are held, or if there is a maximum size for a...
1
1,308
Chrisjc
thread by: Chrisjc | last post Jan 15 '08 by: Chrisjc
First off here is the link to my page Link to page I am having an issue passing the "State" value to "dealerlocater.php" page that I have created, I have my index.php which will pull from my database and list all the States in a drop down. I now am trying to pass a selected state to “dealerlocater.php” which in return would post up all...
7
2,233
thread by: mell | last post Jan 15 '08 by: mell
I am the new programmer. I have encounter with the problem to calculate the date auto beacuse I has been assign to develop library system for my final project...How I can automatik calculte the date borrow for two weeks..
2
1,829
thread by: Kurda Yon | last post Jan 14 '08 by: Manuel Lemos
1. Is that easy to find a job for those which a specializing in PHP and, as a consequence in MySQL and HTML? 2. How does it work? Is there any site developed to help such people to find a job, and to help companies to find such people? 3. Which companies can be interested in PHP specialists? 4. How the companies will select between different...
3
1,235
thread by: fredBH | last post Jan 14 '08 by: Michael Fesser
Hello my friends! I wanna know how can i make to prevent 1 login per pc. Like that programs that people install on theirs machine and the site check if there is this program installed with the same key stored on site. I have a site that give gifts and i want to prevent that people starts creating a lot of accounts to try get the gifts.

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.