473,775 Members | 2,625 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.
3
2,409
thread by: beary | last post Nov 14 '07 by: beary
I installed wamp5 version 1.7.3 on a pc running winxp pro. It has php 5.2.4. This is supposed to have the gd library bundled but not enabled. So I enabled the GDL by uncommenting the appropriate line in php.ini. I also made sure extensions_dir points to the correct folder path (which it did by default). I restarted wampapache, and also restarted...
4
1,649
realin
thread by: realin | last post Nov 14 '07 by: realin
hi guys.. I have made a function which counts the numbers of days or hours or minutes from the current datetime to the give datetime.. but i am confused while displaying number of days along with number of hours.. rest all works fine(I Suppose). here is the code : function day_counter($date,$msg){ $today=time(); ...
0
751
thread by: shobham | last post Nov 14 '07 by: shobham
Hi, Thanks for ur reply. Here is the code in which i am calling a HTML file in a Frame. echo"<iframe src ='page2.html' width='550px' name='page'>"."</iframe>"; This code is in a page named page1.php.In page2.html,textboxes are created dynamically. Hope u have some idea about my code.
3
908
thread by: shobham | last post Nov 14 '07 by: shobham
Hi, I have a PHP code in which a HTML file is called using inline frame.In this HTML file Text boxes are created dynamically using JavaScript.How to store the data in the Textboxes into the Mysql database.
4
1,105
thread by: sbettadpur | last post Nov 14 '07 by: sbettadpur
hello everybody i am getting this type of error(shown below) after submitting the button in IE browser, but the same code is working on Firefox smoothly, Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\phoenixhrsolutions\login.php:8) in C:\wamp\www\phoenixhrsolutions\login.php on line 126...
2
3,230
thread by: recordlovelife | last post Nov 14 '07 by: recordlovelife
So I am trying to display a title, date, and content of a wordpress blog. Word press provides nice drop in functions to get the job done with simple names like "the_title", and the "the_content" But on the homepage of a site, i wanted to truncate the content to like the first 75 characters and then put "..." (a perfect use of the smarty "truncate"...
26
1,682
thread by: rojelio | last post Nov 13 '07 by: rojelio
So I know I can fax from my computer so I'm guessing there is a way to get PHP to fax. I have a program that allows for a customer to be emailed or faxed certain information. If PHP can't do this maybe you know whether ASP or asp.net can do it. But basically I just want to click a button and have it fax...
3
1,370
moishy
thread by: moishy | last post Nov 13 '07 by: moishy
Iv'e been trying various methods, but their all very long... I am trying to get: filename from a string like this: http://www.website.com/files/filename.gif Thanks for your help,
7
15,689
thread by: brucehere | last post Nov 13 '07 by: mwasif
hi, this is my current php code which displays an image. <span class='floatRight'> Sponsors: <img src='".THEME."images/logo1.gif' /> </span> Now i want that displayed image to link to a certain external URL. How would i do this?
2
1,225
thread by: rfeio | last post Nov 13 '07 by: Atli
Hi! I have this small script that is supposed to send an email. I have configured my local php.ini file to point to my SMPT remote server. The problem is that my SMTP Remote mail server requires authentication. I need to use this particular SMTP server. How can I do this? Cheers, Rui
2
1,215
thread by: vozzek | last post Nov 13 '07 by: mwasif
Hi all, I have a really quick syntax problem I can't seem to hammer out... In my script, I am trying to set a variable based upon an entry from my SQL table. Here's two different lines of code I've tried, but neither of them seems to work: var opt_a = ($_POST; ?>']); This isn't working, but I don't get an error... var opt_a = <?php...
5
1,803
thread by: Shelly | last post Nov 13 '07 by: Shelly
I am running into a character problem and I am seeking a little advice. The client is moving his code from one server to another. The destination server has MySQL 4.0.7 and the host will not upgrade. The source server has MySql 4.1.22. On the source server a string with an apostrophe that was written to the database displays properly. ...
1
1,457
Lazandra
thread by: Lazandra | last post Nov 13 '07 by: Atli
Hi guys I have the following error: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /usr/webdata/kirkwood/config/config.php on line 2 Parse error: syntax error, unexpected T_STRING in /usr/webdata/kirkwood/config/config.php on line 2 This is the code on line 1-3:
1
3,522
thread by: jamal8t2 | last post Nov 13 '07 by: Atli
<?php //$file_dir="/htdocs/upload"; // Connect to database $db_name1="test";// Database name $conn1=mysql_connect("localhost","","") or die("I Couldn't connect"); $db=mysql_select_db($db_name1,$conn1) or die("I Couldn't select your database"); data base //$q = <<<CREATE //create table pix ( //pid int primary key not null...
5
3,755
thread by: MS | last post Nov 13 '07 by: NC
Hi, Is there a php function that will stop executing the php code, but do any necessary clean-up, like die(), and will then go on to process any html in the file that is below the '?>' end php tag? Both die() and exit() exit without processing the html after the end php tag. E.G. SOME HTML...
1
1,213
thread by: Pseudonyme | last post Nov 13 '07 by: J.O. Aho
Hi, No multi-post because we read that it was not pleasant, and lead to a waste of time. **** Question : Do you know how to access a MYSQL DB from an external server. MYSQL
2
1,689
thread by: 2401 members, members can post | last post Nov 13 '07 by: Jerry Stuckle
Always MultiPost and Cross-Post messages to enhance the chance to reach you. Bob Hi, Ever be in a position of too-much traffic ?
9
1,251
thread by: floortje4 | last post Nov 13 '07 by: Jerry Stuckle
Hi, Im having a discussion with a friend about Objects. Let say I create a user Object class User { private $_aUserdata; rivate $_sId;
7
1,299
thread by: mantrid | last post Nov 13 '07 by: Toby A Inkster
Im reading a csv file with php and getting a date in the form 30/09/07 Which I am trying to insert into a mysql table which has the field formatted as yyyy-mm-dd hh:mm:ss I cant get it to insert the field remains blank How do I do this?
2
1,408
thread by: Alpesh Darji | last post Nov 13 '07 by: editor
ASP .NET Hello Every1 i have ecomm portal for jewellery industry in ASP .NET, its already done we need to change the style and look as it looks ugly. If u are ready to work as a freelancer then please reply via email. I will provide link after your intrest. Also let me konw your charges.
1
1,460
thread by: Pseudonyme | last post Nov 13 '07 by: Captain Paralytic
A Paris, Le 13 Novembre de l'an MMVII, My dear Sir and Madam, Ever be in a position of too-much traffic ? Point is, if the traffic increases, then the server is slow.
2
1,164
thread by: Shelly | last post Nov 13 '07 by: Shelly
In C and other languages I have had the need to convert from a character to an integer. This is easy. Now, however, this is the first time I have had to do this in PHP and I can't find the proper function. The reason I need this is that upon downgrading to MySQL 4.0.7 (upon changing servers), data that are in the tables contain characters...
3
2,345
thread by: uzzi | last post Nov 13 '07 by: r035198x
I don't know how to make a php script to work via cron...I want to make it run daily...My server API is CGI/Fast CGI.I have hosting from godaddy and in the help section i found that i have to specify the interpreter manually...look what it says: i've tried with /web/cgi-bin/php "$HOME/html/path/to/my/script.php as command and it doesn't...
2
1,263
thread by: pawanez4u | last post Nov 13 '07 by: r035198x
Hi All, This is Pavankumar, I am doing Attendance Management project in PHP. What i want is as a day increases i want to alter the table with new filed with name current date(i,e) 01 Nov 07 for today, for tomarrow new filed with name 02 Nov 07 needs to be created. And each and every time it has to check for the particular column, if the...
2
3,213
thread by: Michael | last post Nov 13 '07 by: Michael
Hi, I try to use mysqli object instead of standard mysql functions. Is it ok to create mysqli object within my class or schould I pass mysqli object to my object. The problem is, with code below I must call mysqli->connect() each time I call class methods. How do I create an connection for hole object, so methods can do queries without...

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.