Search Webmaster Help and Solution

Help with Sales Tax Subtraction

E-mail Print PDF
Last Updated on Saturday, 28 August 2010 20:49
 

PHP Mail Headers

E-mail Print PDF
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
 

Cant define a field

E-mail Print PDF
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
 

extract the float part from a floating..?

E-mail Print PDF
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
 

Php Mail() Vcard attachment Help

E-mail Print PDF
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
 

imagettftext not working with trajanpro.ttf

E-mail Print PDF
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
 

[RESOLVED] PHP5 Session Variables Help

E-mail Print PDF
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
 

Spaces being removed on form submittion

E-mail Print PDF
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
 

another Parse error/syntax error This one is too obvious its stupendous

E-mail Print PDF
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
 

Populating HTML checkboxes from a database

E-mail Print PDF
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
 

Asynchronous/parallel post

E-mail Print PDF
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
 

[RESOLVED] fread fwrite a file containing a &lt;textarea&gt; &lt;/textarea&gt;

E-mail Print PDF
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
 

The correct way to deal with different character sets?

E-mail Print PDF
Last Updated on Saturday, 28 August 2010 20:49
 

Technical POST Question

E-mail Print PDF
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
 

upload image to database

E-mail Print PDF
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
 

Warning: session_start(): Cannot send session cookie - headers already sent

E-mail Print PDF
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
 

Problem with Facebook &quot;Like&quot; Code

E-mail Print PDF
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
 

Simple error

E-mail Print PDF
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
 

Help with timestamp code

E-mail Print PDF
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
 

multiple fields then new row.

E-mail Print PDF
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
 

[RESOLVED] Problems with reading file

E-mail Print PDF
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
 

Getting Started with Simple Member System?

E-mail Print PDF
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
 

Ping Website, IF Statement

E-mail Print PDF
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
 

figuring out Insert into Select and form data.

E-mail Print PDF
Last Updated on Saturday, 28 August 2010 20:49
 

[RESOLVED] problems with adding strings

E-mail Print PDF
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
 

Echo Get from file?

E-mail Print PDF
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
 

Merging two login forms

E-mail Print PDF
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
 

how to get the domain name?

E-mail Print PDF
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
 

Form with table/spreadsheet inputs?

E-mail Print PDF
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
 

Help needed!

E-mail Print PDF
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
 

Using PDO in another class

E-mail Print PDF
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
 

[RESOLVED] rounding numbers up to the nearest dividable by 4

E-mail Print PDF
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
 

[RESOLVED] I dont understand this ERROR message

E-mail Print PDF
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
 

What is best video delivery technique?

E-mail Print PDF
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
 

OOP: style question for inheritance and constructors

E-mail Print PDF
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
 

Rubber Ducking --- this actually works

E-mail Print PDF
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
 

Server Max File Size Upload ?

E-mail Print PDF
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
 

How to catch a SharePoint &quot;Error: Access Denied&quot; page

E-mail Print PDF
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
 

PHP Search with Pagination

E-mail Print PDF
Last Updated on Saturday, 21 August 2010 17:58
 

[RESOLVED] Multi-Dim Array Output Error

E-mail Print PDF
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
 

unexpected T_VARIABLE

E-mail Print PDF
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
 

JSON and PHP encode array/dictionary

E-mail Print PDF
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
 

extracting content from xml Empty Element Tag in php

E-mail Print PDF
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
 

Looking for way to perform date(D)+1

E-mail Print PDF
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
 

I know looping a mySQL query is bad, but...

E-mail Print PDF
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
 

How to validate forms in an array?

E-mail Print PDF
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
 

Prepared Statement Problem

E-mail Print PDF
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
 

[RESOLVED] File download problem

E-mail Print PDF
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
 

User Login Redirection

E-mail Print PDF
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
 

Adding info from file to MYSQL

E-mail Print PDF
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
 
<< Start < Prev 1 2 3 Next > End >>

Page 1 of 3