473,811 Members | 2,324 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.
0
350
thread by: Gerry | last post Nov 26 '05 by: Gerry
Problem: On my development machine, I cannot open a page with a .php extension. - Using FireFox, I get the message: The specified module could not be found. - Using IE 6.0, I get the messageL The page cannot be displayed. What I did: I first downloaded and ran the Windows Installer for PHP. I then realized that I should have done a manual...
10
1,844
thread by: Chung Leong | last post Nov 26 '05 by: Geoff Berrow
Just saw a message in pl.comp.lang.php, which states that the following message has appeared in the PHP CVS snapshot: Usage of {} to access string offsets is deprecated and will be removed in PHP 6 What do you think of that?
3
1,600
thread by: ross | last post Nov 26 '05 by: VS
Hi Group, I am working on web service where I am trying to execute a remote URL from within a php file and would like to make some decisions depending on the output. I am using fopen to open the URL $handle=@fopen("www.mysite.com/api/command","r"); If the command is successful it returns an XML file with response headers. I have no...
2
3,776
thread by: Nick | last post Nov 26 '05 by: Peter Fox
What I want to do is have 2 pull down lists, for example a state pull down list and a city pull down list. What I would like to have done is when you select a state from the state pull down list then the city pull down list will populate with all the cities from that selected state. I know that is a lot of data but that is just an example. Or...
1
3,009
thread by: Uzytkownik | last post Nov 26 '05 by: Uzytkownik
I've some function: function show($id) { $title = $text = $date = $nick = NULL; $stmt = $this->base->stmt_init(); $stmt->prepare("SELECT title,text,datetime,nick FROM posts LEFT JOIN authors ON authors.id=posts.id WHERE posts.id=?"); $stmt->bind_param('i', $id); $stmt->bind_result($title, $text, $date, $nick); $stmt->execute();...
8
1,697
thread by: julian_m | last post Nov 26 '05 by: Chuck Anderson
let's say I've an array of articles's id $arr_art_id=(1, 551, 2015, 6 .......n ) what option is better (1 or 2), in order to achieve better performance? (pseudo code) 1) for i=0 to array count{ select * from articles where articles.id=$arr_art_id
1
1,948
thread by: Adam Atlas | last post Nov 26 '05 by: Csaba Gabor
(Apache/2.0.55, PHP/4.4.1) I am using an "Action" directive in my Apache configuration to map a certain file type (by means of AddType and AddHandler) to a PHP script. I wasn't sure if this would work, since the Apache docs say the Action directive is for mapping a handler name to a CGI script in particular. But it seemed to work at first. ...
3
1,799
thread by: Victor | last post Nov 26 '05 by: Manuel Lemos
Dear Members I'm new here. Please permit me to ask some newbie question I'm from a non-profit organization, working for gender equality. We wish to get a small message across to sister blogs (blogs with a common thread, purpose) *I am SERIOUSLY AGAINST SPAM of any kind*
1
1,182
thread by: Nathan Franklin | last post Nov 26 '05 by: Nathan Franklin
hey guys, not sure if this is a bug in PHP.... In first looking at this error, it looks like MYSQL error.... I get this error: MySQL server version for the right syntax to use near 'Aed`#0 .``d' at line 1, I am using a multipart/form-data enc type and php seems to be messing up the
1
1,455
thread by: Tony | last post Nov 26 '05 by: Oliver Saunders
Hi there, could you please advice on a good quality PHP5 and MySQL5 web hosting service (shared)? Thanks. Tony.
4
1,817
thread by: FayeC | last post Nov 25 '05 by: Geoff Berrow
I have tried to use a php code (found it online) to create a gallery but I am wondering if thereare any other PHP options besides using EXIF. The reason is that the images I am using for the gallery are not taken using a camera and therefore don't have the EXIF data. And since the images will be uploaded by a third party who is not very...
0
560
thread by: guidopapinino | last post Nov 25 '05 by: guidopapinino
What I want to do is have 2 pull down lists, for example a state pull down list and a city pull down list. What I would like to have done is when you select a state from the state pull down list then the city pull down list will populate with all the cities from that selected state. I know that is a lot of data but that is just an example. Or...
2
1,376
thread by: MaxPain | last post Nov 25 '05 by: MaxPain
I am an amateur in PHP coding .... recently I have successfully written a database driven site using PHP on Linux .... I am working on a new project, which too involves database access (I am using MySQL for this) and am facing a peculiar problem ..... I was searching for a solution when I came across this group. Actually I am working on...
2
1,855
thread by: mydejamail | last post Nov 25 '05 by: mydejamail
I am running php scripts from the command line, and it always outputs errors in html mode. Is there an option to disable the html from the error messages?
0
1,763
thread by: John Smith | last post Nov 25 '05 by: John Smith
Googlebot has been picking up numerous PHPSESSID name/value pairs in URIs at my website, and this causes duplicate hits and wasted bandwidth. I've since prevented PHPSESSID generation in my PHP script if Googlebot makes the request; like so: if(preg_match("/googlebot/i", $_SERVER) != 1) //session code here ....but this doesn't stop the...
6
2,171
thread by: juglesh | last post Nov 25 '05 by: juglesh
hello, here is my dir structure: /private mainaction.php img.jpg /public_html index.php in index.php, I include mainaction.php. In mainaction.php, i want to
2
3,078
thread by: Cornald Kruyt | last post Nov 25 '05 by: Cornald Kruyt
Hi, I've an database import script written in PHP which used ADO via COM. It makes thousands of queries to a MS-SQL server. The problem is that the process runs out of sockets. The MSSQL server is used in the following way: // In the beginning of the script, the connection is set up $dbc=new COM("ADODB.Connection");...
2
1,151
thread by: Python | last post Nov 25 '05 by: Python
Hi I have never written something for https. I have problem with some things, for now i need only to know what is a solution. If server has installed ssl module, i need to write something in php code to use it ?? or only what i need to do is use https:// in url ?? if yes i have an another question
2
1,744
thread by: Yandos | last post Nov 25 '05 by: Yandos
Hi php gurus, I need to create an array which will contain more keys with same name, but of different values. I have no idea how to do it. Could you please help me? This is what I'd like to do: $postdata=array("senderid"=>"1111", "senderpass"=>"blah", "userfile"=>"@newclients.csv", "userfile"=>"@invoices.csv");
15
2,335
thread by: jkmambo | last post Nov 25 '05 by: Erwin Moller
Session data is getting lost in PHP version 4.4.1 which used to work in version 4.3.3 The code is similar to the one below Assume the file is called count.php which requires a parameter productid; session_start(); if (!isset($_SESSION)) $_SESSION = 0;
1
1,076
thread by: yawnmoth | last post Nov 25 '05 by: Ewoud Dronkert
Given a 3-tuple of some day, month, and year that checkdate would return true for, how would I go about converting that day, month, and year to something like September 3, 1997 using gmdate? mktime(0,0,0,$month,$day,$year) doesn't seem to work as often as it should (it'll occasionally return September 2, 1997 when it should return September...
1
1,150
thread by: Apach | last post Nov 25 '05 by: Tim Roberts
Hello! Can somebody tell my something about performances when using mysql and php! Where i can find document about this performance? How php and mysql behave in use of multiple connections?
7
2,373
thread by: Japhy | last post Nov 25 '05 by: Japhy
Hello, I need to save values typed into forms across several scripts, before the user actually 'submits' the form to update the mysql db. I have been exploring ways to do this, and looking for some guidance as to whether to use cookies or PHP session variables. Should my use of either be conservative due to performance reasons? What are...
2
1,729
thread by: Tony | last post Nov 25 '05 by: Tony
I'm trying to setup PHP5 on a test server at work. I removed PHP 4 and setup PHP5 as a clean install. I did the manual install per the instructions. The machine run Windows Server 2003 with IIS 6.0. I have 2 annoying issues: No matter what I do, when I look at phpinfo() it reports that it is reading the php.ini file from c:\windows. Even...
1
3,028
thread by: SC | last post Nov 25 '05 by: Mike Willbanks
I'm developing a site that may eventually have a very large database of users (hopefully, but who knows). It will be a community website where users can search each other (think Friendster, Classmates, every dating site out there, etc.). Often there will be queries with multiple joins and sometimes may include a few fulltext searches. ...

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.