473,811 Members | 3,485 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,447
thread by: \ | last post Nov 22 '05 by: \
Problem is something like this. Some web applications written in php change permissions of some files and directories so I can't remove them if I don't change permissions to write those files and dir's. I can do that by making a php file with code : <?php chmod ("dir-or-file", 0777); ?> and send it to server and point browser to that...
10
1,517
thread by: Thomas Mlynarczyk | last post Nov 22 '05 by: Weird-beard
Hi, In many cases, one needs only a single instance of a class in a script. Since PHP5 offers class variables like MyClass::$myVar and even class constants, it seems to me that an instantiation is not needed. Is it therefore okay and good practise to use a class without instantiation? In that case I could regard such a class as a collection...
3
3,846
thread by: bizt | last post Nov 22 '05 by: Alvaro G. Vicario
Hi, I have been using a local installment of Apache web server and PHP on my computer. For some reason it has stopped loading my local web pages when I enter 'http://localhost' into the browser address bar. For IE it displays a page not found and Netscape, it redirects me to Netscape search where it does a search for 'localhost'. I cant...
5
1,772
thread by: Samuel | last post Nov 22 '05 by: Samuel
Can someone please help me install php on apache? I downloaded the latest stable msi installer. Left it with default options unless i specifically needed to change them (e.g. server). Then I went to configue my httpd.conf file, and I realised I don't know where to put the lines of code. Can someone please say where I need to insert: 1)...
0
954
thread by: prolibertine | last post Nov 22 '05 by: prolibertine
i am new to php,i want to write a website contain blog(mutil-user),forum and album. who can tell me some good framework can accelerate developing.and any exist web site implement the fuction i wanted,please tell me some for reference. thanks for all.
7
1,753
thread by: walter.alex | last post Nov 22 '05 by: Richard Brooks
November 16 2005 -- The recent launch of the new 5 year advertising solution from MillionPixelClick.com means the pixel advertising craze will continue unabated. Selling advertising space by the pixel the new form of advertising is proving popular with both clients and providers alike. Designed to boost traffic, an image is placed on...
0
1,205
thread by: Sarah J | last post Nov 22 '05 by: Sarah J
Hi We have a high traffic PHP built website which, for reasons beyond my control, is hosted on a twin processor (Zeus) Windows 2003/IIS6 server. PHP 4.4.1 came preinstalled as a CGI but because of the load we were getting random 'CGI Header' errors. Microsoft have found the problem to be with the processors entering 'race mode' (because of...
0
1,203
thread by: Andrzej | last post Nov 22 '05 by: Andrzej
There is a domain www.xxxxxxxxx.pl, I would like to enter: www.xxxxxxxxx.pl/adres/ and get www.xxxxxxxxx.pl/adres.php so I put in .htaccess a rule: RewriteRule (.*)/$ /$1.php Everything works ok, but now I decided to make a subdomain "test". I enter: www.test.xxxxxxxxx.pl and my webbrowser connects to www.xxxxxxxxx.pl/test.php what can I...
2
1,357
thread by: laredotornado | last post Nov 22 '05 by: Chung Leong
Hello, I want to take a block of text and add html tags to make hyperlinks where hyperlink strings exist. So, if I have a variable $a = "This is http://www.yahoo.com" I would like to run that through a function such that the value of $a is
7
2,881
thread by: Monty | last post Nov 22 '05 by: Monty
Something odd is happening. Scripts on several sites that collect form data, save it to a DB, then redirect the user to another page are slowing to a crawl during the redirect using the header() function. For example: header("Location:member.php"). I tried changing the header() command in a few ways: header("Location:/member.php"),...
2
5,314
thread by: Yandos | last post Nov 22 '05 by: Yandos
Hello php gurus, maybe it sounds crazy, but I'd would like to use php for some system administration, backups, etc, but sometimes user interaction is needed. Till now i have been using windows script host, but more and more I need communication with intranet servers, which works fine with libcurl. Now I'm executing curl.exe for every...
22
2,766
thread by: Simon | last post Nov 22 '05 by: juglesh
Hi, I was looking at mail injection, http://securephp.damonkohler.com/index.php/Email_Injection And I was wondering if my mail(...) was safe. I ask in a form for 1 Name 2 Email address
3
1,441
thread by: sagar | last post Nov 22 '05 by: Colin McKinnon
Hello, I have written web-scripts in php. I want to know if it is possible to write desktop aplications in php which dont require the web server. If yes, than can we run these applications as executable in windows. Thank You Sagar Arlekar
4
3,537
thread by: phpuser32423 | last post Nov 22 '05 by: Colin McKinnon
Hi all This is a mysql question, is it possible to use a mysql query to select all the records from several fields in a table (tbl1) and then create a new table (tbl2) with the same structure and all this data inserted into it?
2
5,782
thread by: Alan Prescott | last post Nov 22 '05 by: Alan Prescott
I'm running SuSE Linux 9.3, fully up to date running # pear install db responds with ... downloading DB-1.7.6.tgz ... Starting to download DB-1.7.6.tgz (124,807 bytes) .............................done: 124,807 bytes requires package `PEAR' >= 1.0b1 DB: Dependencies failed Googling around this ng I found someone with a similar problem...
0
1,180
thread by: John McClumpha | last post Nov 22 '05 by: John McClumpha
Hi there, I'm working on a script to work with podcast feeds (RSS) and have found the lasRSS parser to be quite good. http://lastrss.webdot.cz/ I've modified this to work with i-tunes tags (as they have added their own to the RSS vocabulary!) however I still have one set of tags - category - that I am stuck with. an example of these tags...
27
5,338
thread by: meltedown | last post Nov 22 '05 by: meltedown
urlencode turns # into %23 When I sent it thru $_GET, it dissapears, along with anything that comes after it. for example: urlencode turns HOYDM_EXC_#4_NAT into HOYDM_EXC_%234_NAT When I use it in an url
1
1,441
thread by: R Padala | last post Nov 22 '05 by: Alvaro G. Vicario
Hi, We are building an internet based application that would allow any one to purchase online (php generated) reports that include a few photographs. What is the best way to serve the images so that the user wouldn't get hold of other images on the webserver? Thanks in advance,
0
1,227
thread by: Ray | last post Nov 22 '05 by: Ray
Hi I am looking for some advise here... I am running php on RH9 Using Exim as a MTA which is used as my test enviroment. Problem is that when I send mail through php it is sent from nobody@mydomain.com and the email is converted to plain text which displays all the html.. Is there a configuration setting in my php.ini that must be set...
7
1,401
thread by: Jim Carlock | last post Nov 22 '05 by: J-Vladimir
Any php editors recommended for Windows systems? What about a compiled help metafile (.chm)? I'm looking over http://www.php.net right at the moment through the list of editors. Looking for something with syntax highlights, intellisense (if available). -- Jim Carlock Post replies to the newsgroup, thanks.
2
2,178
thread by: lwoods | last post Nov 22 '05 by: Chung Leong
I have the following function: function clean_form( &$from_check ) { if(is_array($from_check)){ array_walk(&$from_check,'clean_form'); return; } else { $value = str_replace(array("\r","\n","Content-Type:"),"",$from_check); }
2
1,448
thread by: hakim | last post Nov 22 '05 by: hakim
Hi, I have written a simple guestbook in php which writes the contents in a file while using flock. But I have read that this is not always save. So some people suggested to use a database instead. But if I use mysql, then my customers have to pay more for the webspace. Actually, I would prefer to use a simple database like dbm...
14
1,788
thread by: Don HO | last post Nov 22 '05 by: Chung Leong
Hi, We have found a memory leak on a php server after executing a php/mysql application. The configuration is php 4.3.1 + mysql on windows server 2000 with IIS. Does the memory leak come from the php application itself (ie. a bug on the php developed scripts)? If not, where could be the problem?
6
1,485
thread by: Maarten | last post Nov 22 '05 by: Maarten
Here is a nice problem. I have two scripts, one calling the other with via an include. The script that is included contains a variable, a function and a call to that function. The variable needs to be accessible to the function, so I declare it having a global scope. Then I execute the function, which should echo the value of the variable....
2
9,600
thread by: hakim | last post Nov 22 '05 by: hakim
Hi NG, I have my own apache server 2.0.54 running with php 4.3.10. I got a little logical problem here about http requests. I have written a small php script which waits for x seconds. Every second it appends the seconds to a file. I expected a timeout after 300 seconds, becouse apache is configured

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.