39,402 Topics

Member Avatar for
Member Avatar for realnsleo

hi there, how do i validate names like surname and first name with the preg_match function???

Member Avatar for johny_d
0
85
Member Avatar for cancer10

Hello, I am trying to send an email through php using the mail() function but getting the following error: [code]Warning: mail() [function.mail]: SMTP server response: my-server-name-here [my-ip-address-here] is currently not 550-permitted to relay through this server. Perhaps you have not logged into 550-the pop/imap server in the last 30 minutes …

Member Avatar for johny_d
0
56
Member Avatar for bubai

I am creating a template using FCkeditor. When i dispaly it front end then the template is brake. I am showing the templale in this way <img scr="<? echo $data['Content'];?>" width="107" height="139" /> how it is properly displaying? Any one help? breaks means its display in a bigger form not …

Member Avatar for johny_d
0
69
Member Avatar for realnsleo

hi...i want to use the preg match function to verify a string that should have the format format of a year - two digits - two letters - two digits, like this: [in]2005-03-IT-031[/in] thanks

Member Avatar for johny_d
0
89
Member Avatar for mnavarro

Im trying to handle .tar files with the PEAR Archive_Tar library, so i added the library directly to my lib directory on the website im developing and i copied a script to make a test which is the following [code=php] <?php include_once('../lib/Tar.php'); $tar_object = new Archive_Tar("../files/tarFiles/test.tar"); if (($v_list = $tar_object->listContent()) …

0
72
Member Avatar for nguyenthaithuan

Hi all! I am PHP beginer, I have some trouble about install, using pdflib for PHP(version 5.1.4, Window XP). Please help me ! If so be, thanks to all. Maths

Member Avatar for w_3rabi
0
91
Member Avatar for jewboy

My site (see signature) works perfectly fine in Firefox, but does not work with IE7 or (IE5/IE6 with security settings set to high or medium). When viewing the site in IE7 , half of the content on the page is invisible. The site and application is PHP based. I don't …

Member Avatar for MidiMagic
0
158
Member Avatar for bubai
0
49
Member Avatar for maunga
Member Avatar for radu84
0
49
Member Avatar for LilSniper

I have no idea what to do next. I have no idea what PHP is. I don't know where to download PHP and MySQL. Also, I am having trouble with the definition of terms. What is a webhost? Please help. Thanks.

Member Avatar for J-to-the-D
0
159
Member Avatar for danielwoodhead

Hi I am tring to populate a drop down by selecting another drop down. The first drop dwon populates from eventdata table and i want the second drop down to populate from a race table. I have tried to find the row which contains the same event id as the …

Member Avatar for johny_d
0
3K
Member Avatar for heliumgas

hello i´m trying to use the messagebox ok cancel in java to confirm or cancel when i try to eliminate some data from the database. i don´t know how it works. could somebody help me, or give me an example...

Member Avatar for UrbanSky
0
77
Member Avatar for assgar

Hi I was using a schroll bar to display multiple rows of dynamically created from database records. The scrolling was not displaying the data properly so I have decided to use pagination. The problem I am having is, if I select one item on page #1 and another on page …

0
67
Member Avatar for jnscollier

I have a form and here's what I have an issue with.... If the user types something in the boxes, and then accidentally goes to another site/page in the site WITHOUT hitting submit on the form, all the data is lost when they click the back browser button. What I …

Member Avatar for digital-ether
0
367
Member Avatar for techhelpforme

what is php id? what does it let me do? does it let me put more than one page inside one file or something? If it does something like that, how do i use it? what is the code for it? Please help. I am sort of new to php.

Member Avatar for bitmaster
0
595
Member Avatar for genievb88

hello guys, im practicing doing a website but i have a question, can i maintain the site from any computer or it has to be the computer that i set it up on? thanks in advance

Member Avatar for digital-ether
0
77
Member Avatar for Riazansar

dear members ! In my job i jst face this problem with one of our PHP based sites. what this script does is that asks users for some inoformation when they want to have a folder in one of our web servers. now the problem is that when they submit …

Member Avatar for Riazansar
0
222
Member Avatar for chubbywubba

[COLOR=green]If PHP is ran through the Apache server the files must be in the what folder?[/COLOR]

Member Avatar for UrbanSky
0
54
Member Avatar for gigtech

Hi, I have been trying to see how it is possible to get the name of the primary key column from the database by checking the constraint name. I have, up until now been unsuccessful. I have tried the below and I get nothing returned and no errors as well. …

0
59
Member Avatar for chubbywubba

[COLOR=#000000]If PHP is ran through the Apache server the files must be in the what folder?[/COLOR]

Member Avatar for pty
0
65
Member Avatar for Upon1

I am currently using the PHPNuke portal (7.9) and I've been having some problems lately with my phpBB forums. I installed the system in January and have been tinkering around with it since. Everything has been running smoothly until a few weeks ago; my forums quit working. For no apparent, …

Member Avatar for Upon1
0
229
Member Avatar for 7arouf

hey there i have a small question if u don`t mind my background is asp.net and i will apply for a job that requires me to know php, but i have never worked before with php are there any major differences between asp.net and php? and does both have the …

Member Avatar for w_3rabi
0
123
Member Avatar for welbyobeng

There is a script I am using....A Media Gallery...everytime I put in a javascript, it does not work. When I put [quote]<script type="text/javascript" src="[URL]http://www.example.com/js/swfobject.js[/URL]"> </script> <script language="javascript" src="[URL]http://www.example.com/js/player.js[/URL]"> </script> <script language="javascript"> var config = new Array(); config["width"] = 400; config["height"] = 300; config["clientId"] = "example"; config["bgColor"] = "#FFFFFF"; config["playList"] = …

Member Avatar for digital-ether
0
105
Member Avatar for jscriptanit

I am in LAN.I want to put my site in a PC of that LAN and access from another PC of that LAN.What will be the procedure of that.

Member Avatar for Phaelax
0
116
Member Avatar for JSR

Anyway, i'm working on a PHP module for a CMS where if in the database a website user is either selected as, "GBP" or "EUR" in their Countries' currency field, a set of text is displayed. And if the users' currency is either, "USD" or "JPY", a different set of …

Member Avatar for JSR
0
130
Member Avatar for cancer10

Search for a string in a variable--- Is there a way to find a particular string in php. For example: I want php to echo "Found" if the word "sports" in found in this url [url]http://yahoo.com/sports/soccer/index.html[/url] if not then it should echo "bad Luck" Is there any pre-defined function for …

Member Avatar for digital-ether
0
102
Member Avatar for sweetcrabhoney

[COLOR=navy]it says... Parse error: parse error, unexpected T_STRING in /home/onelastr/public_html/hyip/config/config.php on line 11 I'm very new to all this but i dont see what the problem is.. please help me.. any advice would be nice heres the script..[/COLOR] [I]<? define('dbHOST', 'localhost'); define('dbNAME', 'onelastr_hyip1'); define('dbUSER', 'onelastr_simba'); define('dbPASS', '...........'); define('PageAddress', 'hyip.onelastrose.com'); define('PageTitle', …

Member Avatar for sweetcrabhoney
0
90
Member Avatar for Eko

The following cod,when I press the [I]SUBMIT[/I] button , I get [I]"[COLOR=Red][COLOR=Black][B]Forbidden[/B][/COLOR], You don't have permission to access /< on this server[/COLOR]." [/I][code] <html> <head> <title> The Internet Joke Database </title> </head> <body> <?php if (isset($_GET['addjoke'])): // If the user wants to add a joke ?> <form action="<?=$_SERVER['PHP_SELF']?>" method="post"> <p>Type …

Member Avatar for Eko
0
109
Member Avatar for Estreetloans

Does anyone know a good source for some basic beginners type tips for using php? Thanks?

Member Avatar for jbennet
0
235
Member Avatar for Turnkey Monkey

Hello I am Marcus and I am building a directory service and need some help using php. I am new to working with a server but I did read Sams Teach Yourself book on this subject and ubderstand what needs to be done, but still have trouble finding a script …

Member Avatar for dr4g
0
194
Member Avatar for tomf
Member Avatar for MaestroS

Well, I were trying to make code that gets a XML element from the file and replaces with new data. Here is my code. Parsing command: function ExecuteCMD($forplayer, $what, $to) { $player_dir = 'D:\\Programy\\Open Tibia Server Project\\DeadTouch Binary\\data\\players\'; $SetPlayer = file_get_contents($player_dir . "\\" . $forplayer . ".xml"); $SetPlayer = str_replace($what, …

Member Avatar for dr4g
0
776
Member Avatar for SuperioAssassin

I have been looking at this code for some time and just can not figure anything wron with it. My Error Message is: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /hsphere/local/home/gwthorn/htpsinc-web.com/York_County/login.php on line 13 I commeted 13 [CODE=php] <?php session_start(); //The fields are censored but …

Member Avatar for dr4g
0
146
Member Avatar for jscriptanit
Member Avatar for dr4g
0
98
Member Avatar for cancer10

ok, see the code below [CODE] <? $rsQry = mysql_query ("select * from tblCustomer"); $arrQry = mysql_fetch_row($rsQry); ?> [/CODE] Now if I try to fetch a Customer's Name from the "Customer_Name" column from the "tblCustomer" table with the following code then I dont get anything: <? echo $arrQry["Customer_Name"]; ?> Why? …

Member Avatar for omick16
0
109
Member Avatar for hbmarar

Hi, Wishes. I am trying out with the cakephp framework but got stuck with the initialising the database with acl.php... i changed the directory to the scripts folder and tried the commad mentioned. But it do not seem to work... i dont know why? i used the db_sql file to …

0
67
Member Avatar for realnsleo

hello, could someone show me how to redirect a page in php after a specific amount of time like 5 seconds. thanks

Member Avatar for johny_d
0
99
Member Avatar for justinm

Want to download a .tar.bz2 and extract, then run the file into the database. Eventually I will be setting up some sort of a crontab job thingmebob, but for the moment, I want to be able to extract the files successfully. I have not touched on streams or system before, …

Member Avatar for w_3rabi
0
127
Member Avatar for MattEvans

Consider the following code: [code="PHP"] <?php function important_function( $i ) { printf ("<p>Called for the %sth time.</p>\n", $i); return ($i < 3); } function loop_with_and( ) { $ret = true; for( $i = 0; $i < 10; $i ++ ) { $ret = $ret && important_function( $i ); } return …

Member Avatar for Infarction
0
123
Member Avatar for ko_tish

Short guide to include RSS on your website Including RSS feeds in to your own pages is pretty simple with PHP and some open source libraries. The follwing lines show how to create HTML from RSS feeds using the popular PHP tools magpierss (fetches and parses the RSS feed) and …

Member Avatar for Dsiembab
0
91
Member Avatar for Clanham

I am trying to display all data from my MYSQL database but it results in a blank page: <? mysql_connect($host,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT * FROM events"; $result=mysql_query($query); $num=mysql_numrows($result); mysql_close(); echo "<b><center>Database Output</center></b><br><br>"; $i=0; while ($i < $num) { $title=mysql_result($result,$i,"title"); $title =mysql_result($result,$i,"title"; $description =mysql_result($result,$i,"description"; $organization =mysql_result($result,$i,"organization"; …

Member Avatar for dr4g
0
98
Member Avatar for realnsleo

could anyone please help me and show me how to validate a form with the php_self function and the error message appears to the side of where the error came from. Thanks. You could also give me useful links.

Member Avatar for dr4g
0
99
Member Avatar for Anonymusius

I have a program which requires a database. So I made a file that could generate the sql to create it (I copied the sql from PHPmyadmin as reference). When I execute the sql I get the error: [code]You have an error in your SQL syntax; check the manual that …

Member Avatar for dr4g
0
110
Member Avatar for ep2002

Hi All, Someone just told me that if you name your pages .php, it hinders your rankings. Is that true? Thanks Michelle

Member Avatar for stymiee
0
216
Member Avatar for HLA91

Hi I got this script of a tutorial site and I placed it on my site but it seems to work fine apart from it doesn't send the email can anyone help me please. the contact us page [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> …

Member Avatar for HLA91
0
165
Member Avatar for Legend01

Hi all i have recently been using fireworks MX and have created a working menu. it is uploaded on my server and currently have it in a html page as this was the code fireworks gave me. How can i put this html / javascript menu into a php block? …

Member Avatar for w_3rabi
0
233
Member Avatar for andy3250

could someone recommand me which software that i can use to unblock filter internet. I have website that i want to show it in other country but other country have blocked my website from peoeple see it. is there is any software that i can unblock filter internet! AM

Member Avatar for w_3rabi
0
81
Member Avatar for Moord

Currently, my company is running our website and intranet in CF. We're looking to move our website to PHP, but the intranet must remain in CF for the foreseeable future. Is it possible to run both CF and PHP on the same server? If so what considerations do I need …

Member Avatar for Moord
0
113
Member Avatar for kapil.goyal

can anybody tell me how i can upload a file without user interaction.the file full path is known and can be hardcoded.

Member Avatar for digital-ether
0
401
Member Avatar for tomf

How can i make this script work? It is meant to send an email to a person with a confirmation code, but it is not working. whats wrong with it? [code] <?php function send_mail($fromname,$frommail,$to,$subject,$body,$priority) { $fullmail = "\"$fromname\"<$frommail>"; $headers = "From: $fullmail\n"; $headers .= "X-Sender: $fullmail\n"; $headers .= "X-Mailer: PHP\n"; …

Member Avatar for digital-ether
0
142

The End.