Saturday, 28 August 2010 20:49
administrator
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
I want to make an email forwarder similar to cPanels, where I have a database of email addresses, and where they should forward to, and I set a catch-all to pipe to my script.
I have completed this script, however, I would like to make the "To:" field in the hea
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Hi,
This is my table structure
Code:
--
-- Table structure for table `showbeta`
--
`id` int(11) NOT NULL auto_increment,
`presenter1id` int(5) NOT NULL,
`presenter2id` int(5) NOT NULL,
`engineerid` int(5) NOT NULL,
`presenter1status` enum(0,1,
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Hi guys, is there a function in php which makes it possible to extract the decimal part of a float number?
For example Ive got : $x= 7.4 how do I get the decimal part? (that should return 0.4..)
Thanks!
Read more...
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Hey I am having an issue with emailing vcards.
I have attached the vcard to the message using mime.
When using a googlemail client, the VCard is received as an attachment fine,
However if I send this to an iphone it is displayed as raw text under the message.
Th
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Hi All,
I am getting this problem for one of my site that i am developing .
When I insert special characters string like this ~!@#$%^&*()_+| the code is unable to convert it into right image with all text on it when the chosen font in trajanpro.ttf, but when I change t
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Im currently working on getting a login working for a business site. On my first php file that checks the username and password with the database, everything seems to be working correctly. The print out reads the right information. However, when I try to pass the variables (
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Hi everyone,
this is a curious little problem that I have run into that I can not quite explain.
Login box: contains two fields for username and password. On submit it gets sent to login.php where by sessions are registered for the username(I.e. neil) if the username/pas
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Makes no sense, anyone?
Parse error: syntax error, unexpected $end in /home/cyberweb/public_html/lst/add.php on line 94
Line 94 is the end. "?>"
Read more...
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
I am generating a group of check-boxes from a mySQL database with this code.
Code:
<?PHP
$connection=mysql_connect ("localhost", "adsites_seth", "callie") or die ("I cannot connect to the database.");
$db=mysql_selec
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
I need to send the same data to 10 remote servers.
I dont need the script to wait for a response from each server.
Here is an example using curl:
function post_data_by_curl('/$url, $data_array') {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "$url"
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
I want a webpage that can open another webpage, edit the contents and then save the changes.
I can do this using the functions fread and fwrite, however the pages Im trying to edit contain both html and php.
I use fread then put the contents into a <textarea>, th
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
I created a file to POST data to a Drupal RESTful API, but for some reason Drupal doesnt see the POST come in. When I send the data via http GET, POST, or DELETE to my sample RESTful API that I wrote for testing, the data comes in just fine. If I were to make a simple HTML
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Please reply me with an example about how to upload in image in a mysql database
Thanks you a lot
Read more...
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Hi,
I am getting these errors :
Code:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/box/public_html/im/launch.php:29) in /home/box/public_html/im/launch.php on line 40
Warning: session_start(): Canno
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
The code of Facebooks Like button (javascript included to my php script) contains one line that causes some browsers to post a complete page request twice to my server. This causes some malfunctions cause parts of my code are programmed not to accept doubleposted requests. h
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
I know there is a syntax error but for the life of me I cannot find it, can i have some assistance?
Cheers,
Zacron
PHP Code:
header(Location: http://contest.netcheckup.ca/upload_page.php?file=. $var);
Read more...
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
I need a little help with some code for time stamping.
I want to include a page once a day when the page is visited.
My host has cron but it isnt working correctly and they will not help me solve the issue so here I am.
example of what I am trying to do.
Server o
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
I want to be able to get a set of records
get each record by row
then create html table rows with 2 cells per row and repeat but there can be 10 records or more.
any suggestion how to execute something like this.
Read more...
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
SO far, Ive tried everything... fread, fgets, get_file_contents, and Im still getting nothing. Heres my current code:
$file_handle = fopen("menu_pt1.txt", "rb");
while (!feof($file_handle))
{
$contents .= fread($file_handle, 4096);
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Hi All, I am trying to learn how to make a basic member system.
All the system needs to do is:
1. Allow login (login.php) using a username and password (passwords will be hashed using SHA-512).
2. Have a page (index.php) with information and text (from database) which
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Hi All,
Simply what i want is to ping the ip address of my other site: [69.175.121.66] and check if it is online via an if statement so if would see if the ip is online, else { header("Location: offline.php") }.
Is it possible, if it isnt possible in
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Im a bit befuddled on this, as by everything I can see, this should work... but its not. Im missing something elemental, and its probably staring me right in the face. The variable $m equals big. Heres my code thus far:
PHP Code:
&nb
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Im working on a very simple client information, will have phone number, mailing address and thats pretty much it.... just trying to see if this is the way to do it.
The actual page code works fine, Im using this code to pull a file based on index.php?id=clientname and tha
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
Ill try to keep this simple, I need to make so that when someone logs in using the PRIMARY FORM they are also automatically logged into a SUB FORM using the same username and pass that they entered in the primary form. I hope this makes sense:
PRIMARY FORM
HTML Co
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 28 August 2010 20:49
administrator
i want to get all the domain name on the internet and put them into a database?is there a way to get this?
Read more...
Last Updated on Saturday, 28 August 2010 20:49
Saturday, 21 August 2010 17:58
administrator
Im curious if its possible to have a form with a table spreadsheet type of layout. Im trying to reproduce this form that I have in Microsoft Access and wanted to see if anyone had any ideas, this form allows you to enter data and then if you close out the form and come back
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
Hi
I need someone to write me a script that reads the contents of a folder and its subfolders and then write the content into a html file as a list of links.
I would need it asap
I am more then happy to pay for that, if someone is interested - please give me a quote.
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
How can I use the PDO class in another class ?
Example I want to use PDO in
PHP Code:
class shirt {
var $id;
var $filename;
var $template;
var $side = fro
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
hi guys
any ideas how to round the number to the nearest number dividable by some other number ? ( ) so for example:
PHP Code:
$number = 6;
if($number % 4 == 0) { echo(ok); }
else { }
and here i want to round that number up to nearest
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
Ive just installed php5 on a new development machine. Apache and MySQL are working and a test of php with a simple phpinfo() works ok.
I have transferred my php4 code to the new machine (I didnt expect it to work straight away, but I also didnt expect this error:
P
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
Im about to build a website to showcase video content. I find myself wondering what the most widely-accessible format is -- and I mean including desktops, laptops, and mobile phones. Im not particularly concerned about PS3s or Xboxes. Mostly just adult- and business-type
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
Is there any accepted "best practice" for when a child class has no need to overload its parent constructor method? Would you include a constructor anyway and just have its call its parents constructor so that the interface is visible in the child class (see below)
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
I used to bug my co-worker and tell him what problem I was trying to solve and by the time I got done describing it, I figured out what I needed to do. Same principle here, except the rubber duck is probably a better developer (just kidding Jason).
http://c2.com/cgi/wiki
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
Hi,
I have created a script but need some help on a particular problem.
I have an upload script that works as it should. The problem i got is if i upload a file larger than what the server allows it just seems to refresh the upload.php page with no errors.
I will be
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
I have a document viewer that displays inline pdfs. Problem is, some people dont have access to certain documents due to restricted access on the SharePoint server. How do I catch the "Error: Access Denied" result when they don[t have access so I can display a me
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
Hi,
I have a class that outputs drop down menu options. The sub menu is calling a 3D array where one layer is a sub menus id, labels and links. The problem Im having is the output to the browser is wack. The feature is partially working and repeating itself. Somehow,
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
Hello all. I am new to the PHP Builder forums and I just started coding PHP about 6months ago so I apologize if some of my questions seem like "duh" kinds of questions but I have an error I just cant seem to get around:
"Parse error: syntax error, unexpecte
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
Hi All,
Just looking for some advice on a problem Im having please. The scenario is that I have a database with a list of blog postings. I want to extract that list using PHP and transfer it to an iPhone app using JSON (I think).
So Im trying to encode something like t
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
HI. i am having problem with extracting link from empty element tag in xml by using php. i am writing my xml code and pho code. please someone helps me. just put me in th right direction.
php code
<topic id="1HLCM7CDQ-21WQN9G-66">
<instance
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
I am trying to use SimpleXML to parse Yahoo weather data. I have everything working until the forecast. I am trying to take the three character day of the week and increase it so that I can pull data from the array.
Code:
$yw_forecast[forecast][date(D)+1][day][0]
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
Im working on what I think is a fairly complex set of queries and then sorting of data. I can get everything to work but only if I nest two queries in a while loop. I know this is bad, but this is the only way Im able to get it to work. Is this ok to do on a limited basis, o
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
Hi
How do I validate multiple forms in an array?
I know the first step is to store forms in an array.
PHP Code:
$array = array($_POST[name], $_POST[age], $_POST[date],$_POST[number]);
Next step is to l
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
Hi,
I have been working on this for over 2 hours now and its driving me nuts!
I am trying to create a page that will allow my client to add products to their database.
I have one set of prepared statments on line 94 - 97 that work fine, however, further down the pa
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:58
administrator
Im having a similar problem to the one in resolved thread 10628305, but have found it doesnt resolve it for me.
The problem occurs in IE8 for a csv file generated on the fly and for pdf, xls and other types of files retrieved from a database blob, but Opera and Safari bot
Last Updated on Saturday, 21 August 2010 17:58
Saturday, 21 August 2010 17:57
administrator
Howdy!
Im having some troubles,
I have a login system, index.php holds the form for the user to log in.
When user logs in successfully, theres a script that executes echos and displays whats in the echo on the same file (index.php)
PHP Code:
<?
Last Updated on Saturday, 21 August 2010 17:57
Saturday, 21 August 2010 17:57
administrator
Hello (:
Im having trouble trying to say
submitting information on a website, submitting, and then executing it into the mysql database.
My example is, I have a country field in my MYSQL varchar(50).
I want to type in the <input type="text" blah> s
Last Updated on Saturday, 21 August 2010 17:57
|
|