473,888 Members | 2,194 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.
5
1,538
thread by: dsudhakara | last post Oct 9 '07 by: Motoma
I am in learning stage,Now I created table in mysql thur php coding and I want to Import the data thru php coding
3
4,304
thread by: yawnmoth | last post Oct 9 '07 by: ZeldorBlat
Say I had .a.b.c and wanted to return abc. Any ideas as to how I'd do this? Here's my attempt, but it doesn't work: <?php echo preg_replace('#(?:.(.))+#s', '$1', '.a.b.c'); ?> Any ideas?
1
1,580
thread by: Kai | last post Oct 9 '07 by: Kai
I installed Apache 2.2 and PHP 5.24 on a Win 2003 Server. Everything runs fine, but the php.ini is not loaded. phpinfo() tells me Configuration File (php.ini) Path C:\WINDOWS Loaded Configuration File (none) The path is correct and the php.ini-file is located in c:\windows. The rights are set and -just to be careful- the...
3
1,309
thread by: Machaon | last post Oct 9 '07 by: Willem Bogaerts
Hi all, I use apache 2.0 with php 5.1.6. When this one is mounted as CGI script, php_oci8.dll works well (in version 5.1.2 !!?) But in module mode this same dll (and version 5.1.6 too) can't be loaded. What the difference between those modes ? Where can I search to solve my problem ?
5
6,105
thread by: Shmuel | last post Oct 9 '07 by: C. (http://symcbean.blogspot.com/)
Hello, Is it possible to give to mysql_connect an encrypted (md5 or sha1) password? If not is there a workaround? I store passwords for users in database and don't want to use plain text passwords. Then I use that information to connect to the database. So every user have his own database.
2
4,186
thread by: ashore | last post Oct 9 '07 by: Jerry Stuckle
Guys, I'm adapting the ..._deep() approach to apply it to $_GET and/ or $_POST arrays as follows, as a lazy way to cleanup input before posting it to the database - to prevent SQL injections. function quote_smart_deep($value) { // recursive array-capable version of quote_smart $value = is_array($value) ? array_map('quote_smart_deep',...
2
1,680
thread by: Alec | last post Oct 9 '07 by: Boris Stumm
Newbie question. Its really an SQL question, but have had no reply from the SQL newsgroup. I want to search the same table for two different criteria, and then join the search results together into one new list. See below. <?php
1
1,142
thread by: maduranga | last post Oct 9 '07 by: nathj
i want to know about how to make changes in web site
2
1,858
thread by: pipet2002 | last post Oct 9 '07 by: tusharposhiya
how can i make my page refresh automayically after a certain period of time.
2
1,226
thread by: Gandalf | last post Oct 9 '07 by: Gandalf
I'm looking for a function that returns all files from a given directory
1
1,537
thread by: kev | last post Oct 9 '07 by: Ron Barnett
Ok, I am really stuck and I need help badly. If I create any file or folder on the server and run the php file it works with no problem. As soon as I copy a website from another server onto this one none of the php code works and the browser only shows the actual php code. Is there a permission I need to set? I have never had this...
0
260
thread by: palaceroadcms | last post Oct 9 '07 by: palaceroadcms
Is your website getting very less no. of visitors .If so, then post your website to http://goodtolove.com to get unlimited visitors for lifetime...No need to pay a penny.
9
2,406
thread by: helraizer1 | last post Oct 8 '07 by: helraizer1
ChatPad The layout so far is pretty amateur but it'll improve. I spent an 1h30/2h or so in this tonight. The concept of ChatPad is basically a dynamic image acting as a shoutbox. <?php error_reporting(E_ALL);
2
4,171
thread by: PaowZ | last post Oct 8 '07 by: PaowZ
Hello there! I have to call a bunch of static functions where class names are stored in a array. So I have: $my_array = array("class_1","class_2", ... and so on...) So I tried this piece of code to call static functions attached to each classes like that: foreach($my_array as $classname)
2
3,836
thread by: Big Moxy | last post Oct 8 '07 by: Big Moxy
I want to send html formatted text yet strip out special characters (e.g. quotes and semi colons). I've seen preg_replace examples like $messageout = preg_replace('/\(\)<>]/i','',$message); to preserve some additional characters but don't know how to approach preserving html in general. This is a typical message line: $message.= "<b>Date:...
5
4,597
thread by: mtuller | last post Oct 8 '07 by: Jerry Stuckle
I would like to encrypt data passed between my web server and the database server. I have looked all over, but don't see any information on how to connect to mysql via ssh with php. Is it possible?
1
3,401
thread by: amolbehl | last post Oct 8 '07 by: Atli
Below $month takes vals jan,feb,mar,etc and my array vars are jan_click, feb_click and each of these is an array and I am trying to generate these at runtime $mVal = substr($month,0,3); for($i=0;$i<count($dbs);$i++) { #$str = "$".$mVal."_click"; $str = $mVal."_click";
1
1,892
thread by: dsudhakara | last post Oct 8 '07 by: Atli
please help me immediatly How we wil convert from ms-Excel sheet to MySQL database using PHP
4
3,095
thread by: drec | last post Oct 8 '07 by: Jerry Stuckle
I currently have a script together that will display one record per page and allow the user to manually click through pages to view the next record. How can I translate this to printing the data? I want to be able to print the data one page at a time, but only send one print job to do this? I have never done this before, but would imagine...
1
1,137
thread by: Vithya Ashok | last post Oct 8 '07 by: Atli
Hello friends...... How is the wek end? how to insert all possible choices by using the check box?
2
1,156
thread by: ashishhbti | last post Oct 8 '07 by: Atli
I ave a problem in sorting two resultset.. Supoose we have a follwing field in database.. id name vote type 1 ashish 2 1 2 ashish 4 2
1
6,336
kamill
thread by: kamill | last post Oct 8 '07 by: Atli
Hi all I have stored password in blob format, now i need to fetch data from table in readable text format. How can i do this. Regards Kamill
1
2,692
LeoTD
thread by: LeoTD | last post Oct 8 '07 by: Atli
Dear all, I want to convert file type .doc to .html in Linux. But I can't be get it, please show me How to coding for convert it ? Thanks a lot.
0
1,204
thread by: Salve =?iso-8859-1?Q?H=E5kedal?= | last post Oct 8 '07 by: Salve =?iso-8859-1?Q?H=E5kedal?=
$var = "/home/user/dir/file" // To extract dir from $var, is echo basename(dirname($var)); // a silly thing to do? Salve
2
1,858
bugboy
thread by: bugboy | last post Oct 8 '07 by: Atli
Hi i'm a beginner at php and my simple web query page doesn't work.. i swear i had it working at one point but now i've come back to it it doesn't. • My form works • My DB connection works • My query works in my client... so it should work here. It has the right DB and all the right table names... i've only changed the word = 'myword' to...

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.