473,811 Members | 3,579 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.
1
1,641
thread by: John MacLeod | last post Nov 25 '05 by: Mike Willbanks
I'm having a problem using the .htaccess file to point my local installation of php5 (located at www.mydomain.com/horde/cgi-bin/php5.cgi). As per the instructions I was following I added the following to the .htaccess file (located at www.mydomain.com/horde)... <start quote> #PHP 5.0.5 FINAL without security wrap Action...
1
2,307
thread by: arielCo | last post Nov 25 '05 by: arielCo
Hello, I'm attempting to use proc_open to launch, control and log CLI applications from my scripts, but my first tests are disheartening: <pre> <?php $descriptorspec = array( 0 => array("pipe", "r"),
3
2,264
thread by: rangermccoy | last post Nov 24 '05 by: Alvin
Hello there, What are the best php/c libraries for handling media including images, video, and music? I would like to manipulate media dfiles, including watermarking, thumbnailing, truncating, etc. I know there's the GD llibrary for images.
0
1,469
thread by: Alexander Waldmann | last post Nov 24 '05 by: Alexander Waldmann
Hi, i have PEAR::SOAP installed correctly (beta, all dependent packages are installed). When i try out the following simple Script <?php print "Include is ... "; include_once("SOAP/Server.php"); print " ok!"; ?>
6
1,500
thread by: Angelos | last post Nov 24 '05 by: Chung Leong
Hello again, I have written three classes : validate.class.php, report_handler.class.php, sentry.class.php. The problem is that the "validate" class uses the "reporting" class and the "sentry" uses the "validate" that uses the "reporting". So I end up having something like that inside sentry.class.php: $validate->report->getReport();
2
1,831
thread by: John McClumpha | last post Nov 24 '05 by: Nick
Does anyone know of a way to perform a fulltext search (PHP/MYSQL) on a string less than 4 characters in length? e.g. if searching for 'PHP' ? I thought about a boolean search adding * before/after the search string - *PHP*' - however that doesn't seem to work either... TIA
2
4,959
thread by: Freebird | last post Nov 24 '05 by: Freebird
Hello you all, =] I've a smarty var, like this: {$var} that is equal to: ttttttttttttt|zzzzzzzzzzzz It can be any size, the important is that they are separated by the '|' How do I 'explode' that into an array or 2 variables in the smarty template
8
3,875
thread by: Stefan Mueller | last post Nov 24 '05 by: Stefan Mueller
I can't send a mail with the following mail header: $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "From: \"User\" &lt;user@inter.net&gt;\n"; Therefore $headers is set to (echo $header;) MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-1 From: "User" <user@inter.net> The...
2
1,340
thread by: Darren | last post Nov 24 '05 by: Darren
The following query returns 7 codes, how do I put each of them into a separate variable? $result = mysql_query("SELECT day_plan FROM calorie_plan WHERE calories = '$calories'"); if (!$result) { die('Invalid query: ' . mysql_error()); } while ($row = mysql_fetch_array ($result)) {
0
1,264
thread by: Uchi | last post Nov 24 '05 by: Uchi
Im trying to read and modify logon hours of the active directory users in windows using php. And im having some problems, please tell me how to do it...
6
1,743
thread by: Angelos | last post Nov 24 '05 by: Ian B
Hello, I am developing a CMS and I would like to be able when a user is editing a page to inform any other user that the page is being edited by User X . Ofcourse that's not so difficult if you set a flag in the database for example that the current document is being edited, and remove the flag when the user saves the document and exits. ...
1
2,214
thread by: ben | last post Nov 24 '05 by: mcauser
Hi, I am using php to make a directory (to store all of the users files for the site), and it works fine mkdir("/home/fullpathtomyserver/public_html/users/$users_id/", 0777); It makes the folder just perfect, BUT there is a flaw. The folders it creates are un-deletable. I can browse them, and even link to files within them, but I...
1
1,921
thread by: Japhy | last post Nov 24 '05 by: mcauser
Hello, Should I be able to run something like : function setvars() { <?php $_SESSION = 'ABC' ; ?> } I saw something at php.net (a user comment at http://us2.php.net/function.session-start)
0
1,454
thread by: ragrawal | last post Nov 24 '05 by: ragrawal
Hello all, I am looking for a PHP parser that can read a refer file exported from endNote. I did some search online but didn't find anything except phpBib which reads a bibTex file. But it has many errors Thanks you
1
1,234
thread by: Ian | last post Nov 24 '05 by: Ian
Hello, I have two Apache servers running the same site code, on on most page accesses one gives the following error in the server's log: PHP Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0, referer: The other has no errors reported. I only use require_once to include files.
10
6,343
thread by: dave Cheseldine | last post Nov 23 '05 by: dave ches
Hi I want to stop a gd generated image from being cached. It is called into index.php file as follows: <image src = "http://www.daveches.co.uk/importimage/importimage.php?x=$randomNumber" alt = "battle area" usemap="#battlegrid" border="0"> (importimage4real.php contains the gd functionality that load and modify
2
1,446
thread by: Georg Weiler | last post Nov 23 '05 by: Georg Weiler
Hi, I have a form, where the user enters text. After submit, the text is then inserted into a PostgreSQL database. So far, so good. The problem is, that most of my users copy&paste their text from MS Word into the textbox. Now I have these (hidden) linebreaks in the string that cause trouble when I furter process the text. Is there a...
6
13,437
thread by: bizt | last post Nov 23 '05 by: Gordon Burditt
Hi, My knowledge of apache is nothing impressive,. I purely use it to run local websites. I was wondering however, if it is possible to create more local domains like localhost. I like my local websites to be able to run in a simulated environment as my remote host. This would maybe run like http://localhost, http://localhost2,...
5
2,475
thread by: zero | last post Nov 23 '05 by: David Haynes
I know this question has come up before (I found lots of sites discussing it), but I just can't get it to work. I have PHP 5.0.4 and MySQL 5.0.16 (community edition). PHP runs under MS IIS 5.1 (XP Pro SP2). Independently, both PHP and MySQL run fine (other php pages work fine, and I can access mysql tables through jdbc), but when I try to...
6
2,200
thread by: Ian Davies | last post Nov 23 '05 by: Ian Davies
Hello I have found the following script php/java for dynamic menu lists. Where a selection from the first updates (filters items in) the other. I have modified it for my tables. However I am getting an error Parse error: parse error, unexpected T_VAR in e:\domains\i\iddsoftware.co.uk\user\htdocs\QuestionDB\Questions.php on line 42
2
1,734
thread by: John MacLeod | last post Nov 23 '05 by: John MacLeod
I'm trying to install a local copy of php5 and not having much luck. I want LIBXML and IMAP support. When I go to configure php (no matter what options I use) I end up with the error message... <start quote> Configuring extensions checking whether to enable LIBXML support... yes checking libxml2 install dir... /usr/home/MYACCOUNT/libxml...
0
1,564
thread by: news | last post Nov 23 '05 by: news
If anyone can recommend a more appropriate newsgroup for this question? We recently upgraded from php 4.1.2 to php 4.3.9 and ImageMagick 5.5.7 to version 6.2.5. I have a script that creates a random number image as a Turing Test, and without changing that, it's stopped working right after the upgrade. But, only part of the mogrify command....
1
5,168
thread by: joel.washburn | last post Nov 23 '05 by: joel.washburn
I've noticed that fsockopen (as of PHP 5) no longer accepts context. How can I make an SSL connection (requiring a client cert) without using curl?
12
1,682
thread by: Angelos | last post Nov 23 '05 by: Andrew DeFaria
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...
2
1,311
thread by: Michael Ruebner | last post Nov 23 '05 by: Michael Ruebner
Hi, The idea is to generate server-side cached copies of default-value pages and manipulate them via DOM for individual user requests. Kind of a client-side Javascript approach, only that I would like to apply changes _before_ sending the page to the client. I have looked at PHP's XML and DOM features, and it looks as if those will allow...

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.