473,787 Members | 2,938 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.
24
1,687
thread by: tom pester | last post Sep 2 '05 by: Default User
Hi All, I am learning php an I am amazed how easy a PHP noob like me can acheive so much in little time. I am planning to take part in the community and noticed these 3 newsgroups : -alt.comp.lang.php -comp.lang.php -alt.php
1
1,060
thread by: Wayne | last post Sep 2 '05 by: Smitro
Hi, I am looking into a PHP based solution to offer free blogs to my visitors, I have searched around on the net for a free script that does this and have only come up with one (SME). Can anyone perhaps recommend a script? (Having one option is always rather worrying, obviously not including having a script created which at this stage...
1
1,175
thread by: Ken | last post Sep 2 '05 by: Andy Hassall
Is there anyway to do something like this: $foo->bar()->baz() ....where $foo->bar() presumably returns an object that implements baz? I keep getting an error when doing this type of construction.
4
1,786
thread by: Raffi | last post Sep 2 '05 by: Raffi
Hi, I'm developing a database application that uses numeric databases. At this point not using numeric databases is not an option. Doing a mysqldump works. However when trying to restore the database with "mysql -u root -psecret < backup.sql" gives the following error message: ERROR 1064 at line 11: You have an error in your SQL syntax...
2
4,366
thread by: Ivo | last post Sep 2 '05 by: Erwin Moller
Hello newsgroup, A Note that I just posted in the PHP manual at the page describing the array_combine() function: <URL: http://www.php.net/array-combine#56424 > contains this code: function array_combine_emulated( $keys, $vals ) { $keys = array_values( (array) $keys ); $vals = array_values( (array) $vals ); $n = max( count( $keys ),...
2
1,205
thread by: Barry | last post Sep 2 '05 by: Jerry Stuckle
Hi All I have written an application in PHP that will be used by telecoms and ISP's. It will be installed on a server that will only be running this app. Will most probably be using the latest SuSE linux version. I need to provide them with root access to the server so that they may perform simple issues such as IP address changes and...
4
1,792
thread by: Alec | last post Sep 2 '05 by: Alec
I have a simple IF condition to check whether an entered town name for a search actually exists in the database. The form search produces $townsearch The check should return "Cannot Find The Town" if $townsearch does not correspond to a recognised townname in the database. The database is correct, and the SQL query OK.
3
342
thread by: John | last post Sep 2 '05 by: John
I am setting up a number of web pages and need to use an include with the following code : require_once dirname(__FILE__) . '/HTML_ToPDF.php'; $linkToPDFFull = $linkToPDF = tempnam(dirname(__FILE__), 'PDF-'); when this is inside an include statement the path is set to /tmp on the file created which is wrong and I also get a parse error...
8
1,589
thread by: changereality | last post Sep 2 '05 by: Mladen Gogala
I am trying to process raw IIS log files and insert them into a MySQL database. I have no problem accomplishing this, but the php code runs very slow. Right now, it is processing 10,000 lines in a log file every ~300 seconds. I am dealing with daily log files with records over 500,000. It takes hours to process a daily file. <?php...
1
2,328
thread by: windandwaves | last post Sep 2 '05 by: nihaopaul
Hi Folk, Below is a message that I posted on alt.html I now have some more feedback from people who experienced an error with safari and they tell me that the PHPsessID changes while running a search. Does anyone know anything about safari not registering session IDs? -----------original message---------------------------------...
5
1,416
thread by: ligerdave | last post Sep 1 '05 by: rich
i run php4+mysql+apache2 on linux(ubuntu). every time i try to use mysql_connect function, it says something like this: Fatal error: Call to undefined function: mysql_connect() in /home/ligerdave/website/test.php on line 13 plz help!!!!!
8
3,328
thread by: Piro | last post Sep 1 '05 by: Piro
I have a class that I want to make accessible to a web service. This class does some work in its constructor method and sets some class variables in its various methods. The problem I am having is creating an instance of this class when it is called via SOAP. I don't seem to have access to the constructor method or any class variables... is...
5
1,871
thread by: IWP506 | last post Sep 1 '05 by: IWP506
I'd like to make a page with a sort of check list as it works. I.e. CHECKING FOR FILE... SUCCESS then a few seconds later it sends OPENING HANDLE... SUCCESS, etc. But since PHP is server-side pause() wouldn't work... it only delays the script from assembling the page before it sends it to the browser. Can I send pieces at a time so I can...
5
3,453
thread by: mblishch | last post Sep 1 '05 by: Chung Leong
Hello all. I'm writing some webapplication and it would be desirable to add the forum there so the intended people can discuss the problems there. I'd like to create forum with a structure like a it works in Google groups. Can anybody advise me some samples how to write php-vased forums? Thanks in advance.
6
1,243
thread by: kishore.sainath | last post Sep 1 '05 by: NC
I have created a set of classes in PHP for internal use in the company. Hence I don't explicitly want to "require" or "require_once" them whenever required. I want to make the library loadable on demand just like mysql or other libraries in php. I want people to use the classes in my library without "requiring" anything. In a nutshell,...
6
1,197
thread by: frizzle | last post Sep 1 '05 by: frizzle
Hi there, I have this soccer site, and in 1 part one can manage the played matches: Score, location, players who scored etc. Now the last part is what i have a question about. The players are in a MYSQL db. Each has it's own unique ID. Fields:
0
971
thread by: lkrubner | last post Sep 1 '05 by: lkrubner
We are again going to try to do a public beta test of the PHP/MySql stuff we've been working on. We are looking for all kinds of criticism. We put a site up here: http://www.publicpen.com/designer/ On the left you'll see a link that says "login". You can click that to get to the control panel. Use this username and password to log in:
1
1,364
thread by: Darkstar 3D | last post Sep 1 '05 by: Darkstar 3D
Hi, building a database backend for a Google Map application. Struggling along in PHP (I'm a java dude) but doing pretty good. The code below has me confused. Both will create valid files if sent to a file. Both display perfectly in browser when you access the script directly. However, only the 2nd one sends readable data back to my...
2
1,158
thread by: saiena | last post Sep 1 '05 by: Csaba Gabor
Is there a way in my regular expression syntax to cause alternating occurences of the search string to be replaced? Here's my code: $item = eregi_replace($search_string, $replace_string, $item); This successfully replaces all occurences of $search_string.
10
1,618
thread by: kurtk | last post Sep 1 '05 by: Mladen Gogala
Can someone recommend a good php editor? Beside syntax highlighting, I am looking for an editor that will allow me to do "block selection" (that is, copy from column, say, 5 to column 12 of several lines of text). Are there any free editors that will do this? thanks, Kurt
6
1,641
thread by: Thierry | last post Sep 1 '05 by: Mladen Gogala
Hello, I'm looking for some code who return the day of the week from a date. For instance : May 18th 2003 --> saturday Any help is welcome. Titi
8
2,091
thread by: seth | last post Sep 1 '05 by: seth
Hello, I am new to the open source environment. We have to develop a web application using Apache/PHP/MySQL on Windows (A component that we want to use is available only on Windows for now). Later when the component is available on Linux, we would like to move the code. The web application is a simple one - collects data, does some simple...
5
1,259
thread by: petermichaux | last post Aug 31 '05 by: petermichaux
Hi, I'd like to read a webpage, the parse it and display a small part of it. Here is what I've tired. It isn't working. Any suggestions? Thanks, Peter
3
3,707
thread by: mat | last post Aug 31 '05 by: Manuel Lemos
Je l'ai cherché partout, je ne l'ai pas trouvé, alors je l'ai écrite. Si ça peut servir à d'autres ... echo "Calcul d'un ecart type"; echo "<br>"; $datas = array("11","22","45","67","21","3","20");
6
1,722
thread by: jonathanmcdougall | last post Aug 31 '05 by: heyster
I have read many posts on this subject and found no satisfying answer. I am creating a file on the server via a PHP script. The file is created using GD (imagejpeg()), though I don't think it is specific to GD. Here is what I understand so far: 1) a PHP script runs in the webserver user space. In my case, this is 'apache', though I think...

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.