473,815 Members | 2,523 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.
8
1,804
thread by: elmosik | last post Jan 17 '08 by: Jerry Stuckle
Is there any method to get this informations from php file? 1. Class methods 2. Check whether class in file is extended by 'XXX' or not (class MyClass extends XXX ...) - Class has same name as files e.g. file named 'myclass.php' has class named 'myclass' etc... I'm trying to do that tasks from list in that way:
6
1,215
thread by: truezplaya | last post Jan 17 '08 by: truezplaya
I am creating a forum and i have session running. The session displays the user name in the posts. This is all dandy and i have the user name displaying but the problem is that every time someone else logs in all the user names in the posts change!!!! I am gathering i have to save these somewhere but i have no idea how ? can anyone help? I have...
3
23,777
thread by: sisqorap | last post Jan 17 '08 by: Jerry Stuckle
Hi all, I have this kind of warning and would like to have it solved: Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of xml_parse_into_struct(). If you would like to enable call-time pass-by- reference, you can set allow_call_time_pass_reference to true in your...
3
1,226
thread by: Martin | last post Jan 17 '08 by: Toby A Inkster
Is there a simple way to tell if a page was submitted as a POST or a GET? I have a page that contains a form with multiple submit buttons. If the page is POSTed, I go through a somewhat complex analysis of what needs to be done depending on which button was clicked. On the other hand, if the page was submitted via GET, I simply set some...
1
2,396
thread by: sbettadpur | last post Jan 17 '08 by: George Lft
hi, i wrote a script in php, to connect remote database server. i am getting the following errors Warning: mysql_connect() : Host 'IPaddress(i changed)' is not allowed to connect to this MySQL server in c:\wamp\www\Expt\dbconnection.php on line 8 and my scripts goes like this <?php #$host = "localhost";
2
1,521
thread by: jodleren | last post Jan 17 '08 by: jodleren
Hi! I user sort() but it gives me all uppercase items first. Looking at http://ee.php.net/manual/en/function.sort.php I cannot find what I need - tried natcasesort, but that was even more interesting.... sort gives me (yes, I am aware of the spelling error) Doc manager
4
1,500
thread by: NEComputerService | last post Jan 17 '08 by: Gordon
PHPBB Hosting for $5.99/Month Let us host your PHPBB site, or any site, for as little as $5.99/ month. Easy-to-Use GUI tools allow you to make all the changes and updates to your site! http://www.necomputerservice.com
1
1,144
thread by: kayal20 | last post Jan 17 '08 by: asdf
Internet You are using internet %%%%%%%%%%%%%%%%%%%% http://padmagirl.blogspot.com %%%%%%%%%%%%%%%%%%%%%
2
2,035
thread by: Dave | last post Jan 17 '08 by: Manuel Lemos
Hi, I hope someone can help, I'm trying to get mail out from a form to a php page using the mail() function. Nothing happens. The server is W2003 and the mail application is Kerio Mailserver, not sure which version (I don't have full access to the server) The code is making teh call is OK, because as a workaround the page was placed on...
1
1,384
thread by: justforfun | last post Jan 17 '08 by: dlite922
Fist Let me say thank You for all Your HELP In the .htaccess file AddHandler server-parsed .htm .html .shtm .shtml Created a file called http://firediv.com/firesafety.html added <!--#include virtual="/reefeeds.php" --> and even tried <!--#include virtual="http://firediv.com/reefeeds.php" --> created and uploaded a file reefeeds.php...
1
1,296
jana12
thread by: jana12 | last post Jan 17 '08 by: dlite922
Hi all, Can anyone provide some assistance with how to track advertisement clicks on a website. I need to be able to track IP/country and time as well as number of clicks. Any help would be appreciated :) Sasha
9
1,485
thread by: ryuzaki | last post Jan 17 '08 by: stepterr
Hi I am new to the forums and I have one question I read through this tutorial: Tutorial and I get this error when I view the index.php3 file Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/user/public_html/forum/index.php3 on line 36 Warning: mysql_num_rows(): supplied argument is not a...
1
1,460
thread by: jonsoons | last post Jan 17 '08 by: Mike Placentra II
I have a file of paths to fonts like this: /var/lib/defoma/fontconfig.d/U/URWBookmanL-LighItal.pfb I read these into an array then I want php to open each font as a resource. php does not see the string as a path. What can I do to convert these to paths? Thanks
4
1,905
thread by: Gourk | last post Jan 17 '08 by: Gourk
I'm fairly new to the whole MySQL thing, But not new to SQL. So doing most of this was fairly easy, but I have a hosting service with Godaddy.com, and Yes it supports MySQL 5.0 and is installed and working. I'm trying to setup a basic news script for a upcoming website I have and I just wanted to dink around with it before I have everything up and...
4
1,469
thread by: matpac4 | last post Jan 16 '08 by: matpac4
I'm a bit stuck! Please can someone help. Here's what I'm trying to build: 1. Webform which puts variables into a database (each with unique ID field) 2. Webform also allows attachment which uploads the file to specific directory 3. On submission of webform for a file on the directory to be duplicated and renamed "unique ID".php and...
1
985
thread by: xelA | last post Jan 16 '08 by: stepterr
Here is my problem: I have created a table with five fields and populated it. Then I included another field . How can I update the the data in one field of each record?
1
1,439
thread by: Marco tecnico | last post Jan 16 '08 by: Jerry Stuckle
Hi NG, i have a problem. I have finished building up a PHP Nuke 7.9 portal and would like to insert in a page my Flash movie. I did it in the past on another site in Php Nuke but i can't remeber how i did that. In the actual one, The movie container displays, but no movie inside and says something about cannot install or execute (don't...
3
2,154
thread by: sberry | last post Jan 16 '08 by: sberry
I have three arrays... for instance $a = array('big', 'small', 'medium'); $b = array('old', 'new'); $c = array('blue', 'green'); I want to take those and end up with all of the combinations they create like the following 'big', 'old', 'blue' 'small', 'old', 'blue'
0
1,072
thread by: Joker7 | last post Jan 16 '08 by: Joker7
Hi, I have been using this PHP script for sometime now it works great,but I would be nice if it had the option to use images.I was hoping someone could take a quick look and see if it's possible to rework it.As over all it works fine for my needs but would be nice if it was possible to post images. I have posted the code here...
2
6,548
thread by: lawpoop | last post Jan 16 '08 by: lawpoop
Hello all -- I'm trying to format decimal numbers for a report. I would have to have the number with leading zeros to the tens' place, and trailing zeros to the thousandths' place. I'm using sprintf("%02.2f", $num) to get the following results: 0.5 : 0.50 0.55 : 0.55
2
1,030
thread by: dunctait | last post Jan 16 '08 by: dunctait
hi there, im going to loop through 17thousand mysql entries (each entry has aunique, and incremental, id) then calculate a rating of each entry based on some other information. (between 1 and 5) i then want to sort the data with the highest rated entries at the top of the list?
3
2,961
thread by: galf | last post Jan 16 '08 by: nathj
Ok, I'm stuck. I'd like to list only specific types of files in a directory - for example, only html files. I've found a script that will list ALL of the files in the directory, but I'd like to limit it to only files of a certain type: <?php $myDirectory = opendir("."); while($entryName = readdir($myDirectory)) { $dirArray = $entryName;...
12
6,956
thread by: Daniel Klein | last post Jan 16 '08 by: radmission05
I'm pretty new at php and web stuff so please be gentle with me. I'm trying to get a form to submit when the user presses the Enter key. I do not want to use javascript. I've googled this to death and cant find the answer (only hints), except on the 'Experts Exhange' page and you have to pay to get the answer :-( Why is this such a secret...
2
12,635
thread by: =?ISO-8859-1?Q?C._M=FCller?= | last post Jan 16 '08 by: =?ISO-8859-1?Q?C._M=FCller?=
Hello, First, I am very new to php. Bloody Beginner. My problem is, that i want the user to be able to download a generated xml file. I have working code which savies it to a file and sends it: $fp = fopen($xml_file,'a'); fwrite($fp, $result); fclose($fp); Is it possible to avoid writing the file? the $result contains all
4
1,993
thread by: lukaszmn | last post Jan 16 '08 by: radmission05
Hey I've been searching the internet and manuals for help for hours and I'm still clueless. I wanted to delete a file in /var/www/html/ lista from a script /var/www/html/lista-drop.php. Apache runs as user & group apache. I've chowned & chgrouped the file and parent directory (lista). I've chmodded 777 both. I did so from both shell and the...

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.