38,020 Topics

Member Avatar for
Member Avatar for kodiak

Hi!!! I need to check a form for illegal characters through a whitelist(list of allowed characters) with php. A function that could do this for me would be helpful...I can't find one on google... I really have no idea how to do this.... thanks!!!! ~Kodiak

Member Avatar for stymiee
0
824
Member Avatar for RobLamb

Hi I have a problem with a site I am doing. I am writing an email address as a session variable and on my dev machine (windows XP running EasyPHP) I am having no problems calling up user information based on this. BUT when I put it on the live …

Member Avatar for SStedman
0
83
Member Avatar for okparrothead

hello DaniWeb Forum, I need help with reading a csv. Here's the file: product name, color, width, quantity, subtotal product1, red, 20", 200, $30 proudct2, blue, 30", 10, $12 I've written code that creates this file as an order. What I'd like to do is read the subtotals and generate …

Member Avatar for Ezzaral
0
106
Member Avatar for dgdg

hi all , need to know whether an array with too many indexes or only one index creates difference in processing time? for example say array $aTotalsMarks [code] $aTotalsMarks[$sSchool][$sDivision][$iRollNumber][$sExamCode][$sSubject]; [/code] And [code] $aTotalsMarks[$sSchool.'##'.$sDivision.'##'.$iRollNumber.'##'.$sExamCode.'##'.$sSubject]; [/code] does the above two arrays make a difference in processing if the number of indexes are …

Member Avatar for Ezzaral
0
57
Member Avatar for vssp

hi friends I am using mail function to send message one user to another user in php application . When i send the mail i got the html code with mail content . [B]example[/B] X-Mailer: PHP/4.3.9 Message-Id: <[EMAIL="200707242342454.CDF209301FD@mail.xxxxxxxxx.com"][U][COLOR=#0000ff]200707242342454.CDF209301FD@mail.xxxxxxxxx.com[/COLOR][/U][/EMAIL]> Date: Wed, 18 Jul 2007 00:24:54 -0700 (MST) Name : RAM<br><br>Message :<b>Test</b> …

Member Avatar for vssp
0
82
Member Avatar for kodiak

ok, so i need to insert something to my mysql database. I have seperately tested the connection, and it's good. It's just something wrong with my code. Look at it. [code=php] <?php include("db.php"); $link2=mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); if(!$link2){ echo "could not connect.";} $myusername="test"; $mypassword="test"; $sql="insert …

Member Avatar for kodiak
0
116
Member Avatar for Persist01

Hi, another newbie here and 1st-time post so hope I have posted this correctly and I hope someone can help because it is doing my head in... Basically I have a cookie that gets set after a user submits an answer to a poll question. When the user hits the …

Member Avatar for Persist01
0
2K
Member Avatar for mindfrost82

I have IIS setup on a Windows 2003 server configured with PHP. There's a section of the website that requires a login, and I have it setup to integrate the login with a Windows account on the server. What I would like is to create a home directory for each …

0
69
Member Avatar for mangophp

Hi , IF Client disabled the cookies..my question is .. Will session works in PHP..and if yes how it will work ? and if no what other method to maintain the state of the user. Thnaks in advance, mangesh.

Member Avatar for digital-ether
0
1K
Member Avatar for zodehala

[B]index.php[/B] [CODE] <?php /*header*/ header("Content-Type: image/png"); /*We'll set this variable later.*/ $new_string; /*register the session variable. */ session_register('new_string'); /*You will need these two lines below.*/ echo "<html><head><title>Verification</title></head>"; echo "<body>"; /* set up image, the first number is the width and the second is the height*/ $im = imageCreate(200, 40); /*creates …

Member Avatar for dezignwork
0
108
Member Avatar for Angel8552

Ok...I have decided to learn PHP and I could use some help from you guys. Though I have searched the Internet for free tutorials but could not tell which one was to choose. Could the PHP gurus here direct me to some cool PHP tutorials on the net? Help will …

Member Avatar for ProgrammersTalk
0
148
Member Avatar for MitkOK

Hi folks. I Have a question : I'm interested how you generate query string to search DB with more than 1 form with LIKE. For example : We have $_POST['name'], $_POST['title'], $_POST['phone'], $_POST['email']. How do you generate sql query to search with two criteria ( name and phone ) ? …

Member Avatar for dezignwork
0
165
Member Avatar for RobLamb

Hi Everyone. Still have had no joy on my last post but here is another. I am uploading an image to a blob field in MySql DB. Again, on my local machine its fine...however, on the server it does not get added to the field. All other information is added....eg …

Member Avatar for ashneet
0
81
Member Avatar for muruganasm

hi i have write the php language code. The login form creation. The validation part is ok.. but data is not pass to one page to another page. I have used `$_REQUEST` and `$_Post` method but not working.. any body replay me.. the following codes.. THe First file is login.php. …

Member Avatar for Cerberus
0
90
Member Avatar for Cerberus

I am trying to get this function to work and having a few problems. [CODE] if(function_exists("mysql_real_escape_string")) { $value = mysql_real_escape_string( $value ); } [/CODE] and i get an error: [B]Warning[/B]: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in w:\[B]pathname[/B] on line [B]11 [/B] Does anyone know how …

Member Avatar for Cerberus
0
95
Member Avatar for joruo

i have been trying to add javascipt in my php script to implement dynamic form filling but it seems not to work. the javascript code works well without the php script what could br wrong? [code=javascript] var alive1 = new Array("Yes","No"); var alive2 = new Array(""); var loss = new …

Member Avatar for johny_d
0
92
Member Avatar for Cerberus

Hi, is it possible to set up a PHP development environment on a home PC. I assume you still need web server software, however, i only want it to practice my PHP coding and not open up my system to the Internet. I hope that makes sense. Anyway if someone …

Member Avatar for zaphod2003
0
149
Member Avatar for MitkOK

[quote]PHP 4 end of life announcement [13-Jul-2007] Today it is exactly three years ago since PHP 5 has been released. In those three years it has seen many improvements over PHP 4. PHP 5 is fast, stable & production-ready and as PHP 6 is on the way, PHP 4 will …

Member Avatar for stymiee
0
70
Member Avatar for w_3rabi

hey i have this problem giving me a painful headache and sleeplessness ive got these .prn files which should converted into DB and these files contain numbers along with arabic characters the problem is the encoding of these characters is not readable anyone hav an idea how i could convert …

Member Avatar for digital-ether
0
297
Member Avatar for toasty525

Hi can anyone help me with this ? Im trying to create a page that lets a user click a link and once that link has been clicked the page no longer displays that link for that user, i have all the databases set up to record clicks but i …

Member Avatar for digital-ether
0
212
Member Avatar for vssp

hi friends again vssp !!!!!!!!! I need to intagration the paypal application in my php application . first time charge of [B]$99.95 and [/B] Monthly recurring charge of [B]$9.95[/B] How to implement the paypal in myphp application . Please advise

Member Avatar for ProgrammersTalk
0
108
Member Avatar for Ganeshbabu

I have done a small web site with php and mysql. like following i need to put the record set and break the <tr> but some how its not working. can you guys please help me. ------------------------------------ | Data 01 | Data 02 | Data 03 | -----------------------------------| | Data …

Member Avatar for Ezzaral
0
78
Member Avatar for Aldebaran

Why, oh why isn't this simple thing working? I just want to understand why the variable $file1 is always empty. Other input types work just fine. [code] <?php $file1 = $_POST['file1']; echo "file1:", $file1; ?> <form ENCTYPE="multipart/form-data" action="add.php" method="POST"> File<input type="file" name="file1" /> <input type="submit" value="Submit Information"> </form> [/code] Jill

Member Avatar for Aldebaran
0
117
Member Avatar for balagod

Hi, I am creating a folder through php code. but the permissions for that folder is not setting. I identified the problem is apache is different usergroup,FTP is different user group. so i want to know how can i change user group of apache. or how can i add apache,php …

Member Avatar for balagod
0
117
Member Avatar for asquiazon

Hi! I'm new with PHP and wondering if anyone here knows how to configure it in winXP..Thanks!

Member Avatar for Ezzaral
0
46
Member Avatar for omesa

Hello everyone, I got the warning below as I was using a 'register' page, Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() I would like to know how to setup a local mailserver, just for …

Member Avatar for Sylviana
0
197
Member Avatar for MB1765

For instance I want to implode these strings and prevent bad print $a = "Apple in pesian( "; $b="سیب"; $c=")use as a medicine for all illnesses"; print implode( " ", array( $a, $b, $c ) ); It's bad print // use as a medicine for all illnesses( سیب )Apple in …

Member Avatar for MB1765
0
168
Member Avatar for Dsiembab

Hello, I was wondering if someone could point me in the right direction. Is their anyway in php that I can change the outlook of an xsl file and include variables from my php script. I have an xsl file, I changed the file extension to php and it worked …

Member Avatar for Dsiembab
0
113
Member Avatar for invisal
Member Avatar for Lomas

[code=php] <?php if ($id == 1 && $lang == 1) { echo "hello"; } ?>[/code] hey guys i am working for my final year project. i have a problem. when i tried to run this url on my pc [url]http://localhost/filename?id=1&lang=1[/url] it wouldn't work.... but when i tried this on my …

Member Avatar for Eko
0
130

The End.