473,811 Members | 3,220 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.
4
3,140
thread by: splicemix | last post Nov 23 '05 by: Meião
Hi all, I have recently set up a Drupal website. I am a beginner. My shared host server does not allow nobody@localhost to send emails, and prevents access to php.ini, so I spent some time getting a SMTP script running. While the Drupal feedback module and the new account creation works fine in terms of sending of mails, I am having some...
3
1,200
thread by: Darren | last post Nov 23 '05 by: Juliette
I am trying to create a folder in a directory one level up on a Linux based Apache server from the file containing the following line. The followin line doesn't seem to achieve this. mkdir("./members_pics/"."$subscr_id"."/", 0700); Any ideas what is wrong.
6
1,322
thread by: Rainman | last post Nov 23 '05 by: Justin Koivisto
I'm sure there is an FAQ on this somewhere, but I couldn't find one. I'm sure a responder will clue me in. my URL is: mypage.php?var=2&var=4&var=5 print_r($_GET); gives me: 5 instead of
2
419
thread by: Erik | last post Nov 23 '05 by: WhatsPHP
Hi All, I'm writing an web application with PHP/MySQL. I used PHP5 but believed to use code that would work also under PHP4. However when I tried my application under PHP4 I got the warning that the headers are already sent and my session did not work. I do understand that I have to send the headers before anything else. But does anyone...
1
1,843
thread by: Stephanie Le Gall | last post Nov 23 '05 by: WhatsPHP
Hi, I'm having this problem on a server Win NT, with IIS 5.0, and PHP 4.3.1. (MySQL is on an other server and is OK) Sometimes the server break down with : php.exe 100% CPU. And I can't find any user's action like "wrong" ... just normal use ... and always diffrent each time ...
1
1,133
thread by: Nathan Franklin | last post Nov 23 '05 by: Marcin Dobrucki
hey guys, My php file that I have written doesnt seem to be working..just displays a blank page. If i write out a test file (test.php) and put it in the same directory and type this in it <? phpinfo(); ?>, the test file works.... Does anyone know what could be wrong... the file is about 1100 lines of code...
2
15,967
thread by: Jack Lindamood | last post Nov 23 '05 by: Python
Using: Win2003 - IIS6 - PHP5.0 I'm executing a third party script and get this error message: Fatal error: Call to undefined function socket_create() in C:\Inetpub\XXX on line 195 After some googleing, I think it is because sockets aren't enabled. I've opened php.ini and uncommented the line extension=php_sockets.dll and restarted the...
3
373
thread by: Tomek Toczyski | last post Nov 23 '05 by: Tomek Toczyski
I would like find all occurences of "ABC" which are not followed by "123" and replace them with "abc". For example: "ABC dd" -> "abc dd" "ABC123" -> "ABC123" "ABC 123" -> "abc 123" Give me a recipe, please. I've spent 2 hours googling for it. -tt.
2
1,213
thread by: Russell Wallace | last post Nov 23 '05 by: Russell Wallace
A friend of mine has a set of pages at: http://ipa.buffalostate.edu/~skablah/7thSea/?do=Hideout that use PHP; recently the server company upgraded to PHP 5, which breaks the site; clicking on the Crew, Navigation etc links at the top left of the above page just brings you back to the main page. The PHP code is in a file called...
0
1,044
thread by: Michal Przytulski | last post Nov 23 '05 by: Michal Przytulski
Hi, i have a problem - i need to hide address of broadcasting computer in internet, problem looks like this - i hava a computer with windows media encoder, this computer is broadcasting online stream video, now i need to share with this video on internet without windows media server, i have idea that i can open this stream with php and send...
0
1,144
thread by: Sundin | last post Nov 23 '05 by: Sundin
Hi I'm running a sports pool and I'm trying to display stats from the results of the picks. The table is 'results' and the fields are 'pick_number', 'game_number', 'user_id', 'points' and 'date' There is one record for each users' pick. 0 points are given for a loss and 1-4 points are given for a win. I've already created a query that...
4
1,738
thread by: Hugh | last post Nov 22 '05 by: Hugh
Hi all, I am having problem with COM objects in PHP. I am running PHP 4.4.1 on apache server 2.0.55, on windows 2000. I tried the first COM example in the PHP manual (http://www.php.net/manual/en/class.com.php). The example runs fine if I use PHP in command line, i.e., run it like: c:\php\>php c:\apache\apache2\htdocs\comtest.php, the word...
1
1,270
thread by: AzGhanv/. | last post Nov 22 '05 by: Matias
Hi, i m working on an PHP based site where in UI I need to use ajax funtionalities ... i just want some opinion from experts that which LIB is best for usage. I was wondering that using XMLHTTP is sometimes a bottleneck for cross browsers application. Different libraries are here but not sure which one to select.
17
7,931
thread by: comp.lang.tcl | last post Nov 22 '05 by: comp.lang.tcl
The TCL command I am using will do a command-line action on a PHP script: set cannotRunPHP I have to do it this way as both the TCL script and the PHP script run as CLI. However, "info.php" requires user input to run; this causes the TCL script calling the PHP script to hose up and die. Is there a way I can do this so that the TCL...
6
1,630
thread by: Tobierre | last post Nov 22 '05 by: benny
Hi all, I've created the below function to automatically send me an alert in outlook when someone completes various forms on my website. The problem though is that mail reports that I have only 1 of the 3 required parameters defined! I have no idea where this is going wrong, because as far as I can tell I have defined all 3 parameters!...
3
2,757
thread by: nsh | last post Nov 22 '05 by: Thomas Bartkus
mailing.database.mysql, comp.lang.php subject: does "LOAD DATA" EVER work?!? I've tried EVERYTHING! version info: my isp is running my web page on a linux box with php ver. 4.4.1 according to phpinfo, the "mysql api client is ver. 4.0.25" - I have no idea how this relates, if at all, to the mysql engine's version. background:
3
2,151
thread by: Gazchurchend | last post Nov 22 '05 by: Gazchurchend
Hi Ive been using PHP to query data from SQL Server using MSSQL_QUERY for a while now, but recently noticed a problem. I have a notes field in the database (varchar 6000) for entering text. When reading out the data with a simple SELECT statement I noticed it would only get 256 characters in the MSSQL_FETCH_ARRAY result. Don't know how I...
3
15,024
thread by: erwinschrijver | last post Nov 22 '05 by: Erwin Moller
Is it possible to search inside a PDF-flie, using PHP? Same question for MS Word documents? Searched for it, but I cannot find anything about it, there are also no PEAR-packages available... anyone?
9
24,216
thread by: Thomas Podlesak | last post Nov 22 '05 by: Thomas Podlesak
I need a check, if a file is utf8 encoded. I only found the php-functions 'iconv' and 'recode'. But it seems it´s not possible to determine the encoding with them. Isn´t there any similar function to the 'file'-command on linux for php?
0
332
thread by: Angelos | last post Nov 22 '05 by: Angelos
Hello, I would like to re-write my Authentication Script and make a bit more OO as well as more Admin Friendly... Before I start developing my own... I was wondering if there is already out there something that has been tested and proved good, simple to integrate it in other scripts. Ofcourse it has to be secure. The problem is that...
0
368
thread by: Angelos | last post Nov 22 '05 by: Angelos
Hello, I would like to re-write my Authentication Script and make a bit more OO as well as more Admin Friendly... Before I start developing my own... I was wondering if there is already out there something that has been tested and proved good, simple to integrate it in other scripts. Ofcourse it has to be secure. The problem is that...
9
5,218
thread by: Thomas Mlynarczyk | last post Nov 22 '05 by: Dana Cartwright
Hi, It seems to be a generally adopted convention to have a function return FALSE in case of an error. But if a function is supposed to return a boolean anyway, one cannot distinguish anymore between the "normal" FALSE and the "error" FALSE. So why not using NULL instead to indicate an error? Are there drawbacks I am not aware of? ...
0
1,290
thread by: ChronoFish | last post Nov 22 '05 by: ChronoFish
Hello, I have a script that does a remote include (does not matter if I do include(), file(), require(), etc, the result is the same). The script spins for a long time and then will finally return (edited for internet consumption): Warning: blahFunction(http://www.someserver.org/header): failed to open stream: Connection timed out in
2
8,729
thread by: Lisa Pearlson | last post Nov 22 '05 by: HANS VERSTRAELEN
Hi, I am wanting to write an internet 'server' program. For ease, I want to use PHP-CLI with XINET super server. XINET communicates with the 'server' program via STDIN/STDOUT. I'm not sure how to communicate with the client this way though.. I can open stdin/out as a file, and use read and write operations, as if it were a regular file.....
2
1,870
thread by: joe | last post Nov 22 '05 by: joe
I've tried a number of different things to get php 5 to use something other than the bundled sqlite 2.X. I've last tried using the following configure options ../configure --prefix=/localdisk/opt \ --with-apxs2=/localdisk/opt/www/bin/apxs \ --enable-debug \ --with-zlib-dir=/localdisk/opt/lib \ --enable-sqlite-utf8 \...

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.