Search Webmaster Help and Solution

checking if user has already uploaded a file

E-mail Print PDF
Ive got a page that allows users to upload a file (pdf, jpg, gif png). The user must be logged in in order to upload something. I have a query that checks if the user has already uploaded a file with the same name as the name of the file they are trying to upload. If they
Last Updated on Saturday, 28 August 2010 20:50
 

Steam Feed and PHP Loop problems

E-mail Print PDF
Hey guys, Im fairly new to PHP but i know the basics. Ive been working with the Steam XML feeds for various reasons and im trying to create a list of friends that show whether they are online/offline, show their profile pic... etc... To get a persons friends list (usin
Last Updated on Saturday, 28 August 2010 20:50
 

opening word document in browser using php

E-mail Print PDF
hi all, I am having an hyperlink in my site,if i click in that i want to open an word document.That word document should be opened in browser itself. can any one help me to do this.... Thanks in advance. Read more...
Last Updated on Saturday, 28 August 2010 20:50
 

Problem updating multiple rows at once

E-mail Print PDF
Hi, Ive created an admin page that lists all piano sheet music that has been uploaded to my server. It displays the ID (autoincrement), Userid (user that uploaded sheet), Artist (name of the band) and Title (name of the song). On this page, I can either delete the row co
Last Updated on Saturday, 28 August 2010 20:50
 

User Login Help

E-mail Print PDF
I am having trouble finding a tutorial on how to have a login system like facebook and many other sites where when you login you get taken to your own profile with your own information using PHP and Mysql. Any help would be much appreciated. Thanks Read more...
Last Updated on Saturday, 28 August 2010 20:50
 

How to get ALL http request headers?

E-mail Print PDF
I am trying to find a way to get all http request headers that a browser send when requestion one of my pages. $_SERVER and apache_request_headers() doesnt help in this: they show me not all request headers. For example, if I go to a web page of my website, using firef
Last Updated on Saturday, 28 August 2010 20:50
 

[RESOLVED] preg_replace without replacing qualifiers

E-mail Print PDF
How would I use preg_replace to replace everything *between* two qualifiers without replacing the qualifiers themselves? In the following example, Im wanting to replace everything between the "x" and the "p" but what happens is that the "x" and
Last Updated on Saturday, 28 August 2010 20:50
 

Master Page With Pretty Urls?

E-mail Print PDF
hi, my site has header, footer, and sidebar which repeat on all pages. my goal is to contain the layout, header, footer, sidebar, and content all in separate files, and assemble them with php. problem-- getting pretty urls. my current structure has only 1 url. each subpa
Last Updated on Saturday, 28 August 2010 20:50
 

preg_match variables

E-mail Print PDF
I am using the following: $content = file_get_contents(http://forecast.weather.gov/MapClick.php?lat=36.37870&lon=-86.45310&f6=1&mp=1); preg_match(#<td align="left">Nashville</td> <td align="left">(.*)</td>#, $c
Last Updated on Saturday, 28 August 2010 20:50
 

explode problem with delimeter chr 178

E-mail Print PDF
I am trying to split a string by a non printable ascii char 178 and it does kind of work but explode() will keep delimeter in splitted strings if delimiter is non printable, meaning that every array element will contain chr 178. I hope it does not sound too crazy becau
Last Updated on Saturday, 28 August 2010 20:50
 

Save Rss Feed

E-mail Print PDF
Hi, How To read any rss feed and save in mysql database ?? thanks Read more...
Last Updated on Saturday, 28 August 2010 20:50
 

Embeding Flash Media Encoder

E-mail Print PDF
Does anyone know if it is possiable to embed Flash Media Encoder into a php web page and if so can you help me? Im not that very good with coding...I know just enough to get myself into trouble lol I use DW 2004 MX but I do understand some of the raw code. Read more...
Last Updated on Saturday, 28 August 2010 20:50
 

Calculate two numbers goes wrong

E-mail Print PDF
Maybe I need a sleep, but I cant find this I have PHP Code: (int)$views = (int)$page[views] + 1; Where $page[views] is a smallint from the database. Above aint working because I get instead of 1+1 = 2 and 2+1=3 >> 1+1
Last Updated on Saturday, 28 August 2010 20:50
 

manipulate files from windows share

E-mail Print PDF
Hi to all. I have files on windows share which i have to manipulate with. I have to copy and moving files around windows share. The problem is that my script runs on linux machine and i dont have permissions to do mount. Is there any chance to use UNC path do access files/fo
Last Updated on Saturday, 28 August 2010 20:50
 

Checking if file is .pdf

E-mail Print PDF
Hi, Im creating an upload section that limits users to upload the following file types: .pdf .zip .rar .doc .jpeg .gif When getting the type for .pdf files, it comes up as: application/force-download and for .rar files it comes up as: application/x-download
Last Updated on Saturday, 28 August 2010 20:50
 

[RESOLVED] Problem processing checkboxes

E-mail Print PDF
Hello all! I have a page that dynamically generates checkboxes in a for() loop if $i<$product_qty, while it is generating the checkboxes the name for them is set like this $product_id_$i. In part of the next page that processes the checkboxes, I have a part that regene
Last Updated on Saturday, 28 August 2010 20:50
 

Making BBCode

E-mail Print PDF
I want to do something like this: PHP Code: reverse_template(That was [b]cool![/b], [b]{TEXT}[/b], <span class=old>{TEXT#}</span>); And have it return something like this: HTML Code: Tha
Last Updated on Saturday, 28 August 2010 20:50
 

displaying a flash image based on sql results

E-mail Print PDF
Hi All, kind of new to php and trying to display 2 flash movies one below the other on the right side of the page. apparently I cant post urls (gets *** out). please message me for the site/page addresss thanks. The first flash movie is already on there. for the second, I
Last Updated on Saturday, 28 August 2010 20:50
 

inserting data into a table from a txt file

E-mail Print PDF
I want to update products every day from a text file. This script should help me to do that but it does not. Would anybody help me to get this right? PHP Code: $array=file(/mypath/file.txt); $rCount=0;     foreach($array a
Last Updated on Saturday, 28 August 2010 20:50
 

How to create a window over a form

E-mail Print PDF
Look at this bitmap. There is a window on the lower right with some radio buttons and an OK button. This comes up when clicking on the button that says "Selected Threads". Id like to know how to write code to do this. Could be some sort of JQuery code, not sure. An
Last Updated on Saturday, 28 August 2010 20:49
 

Run php script on FTP

E-mail Print PDF
Hello, how can I run php script A.php on another FTP from script B.php on my localhost. B.php (on my localhost) PHP Code: /* FTP connection here... */ ftp_exec(php5 folder/A.php -a 13); All I get is this: Warning: ftp_exec() [function.
Last Updated on Saturday, 28 August 2010 20:49
 

ob_start() breaking include()

E-mail Print PDF
Hi all, I am having an error that many before me have had but none of the solutions have helped me. I am using ob_start() to suppress the output and then using include to pull in a file which is dynamically built. However I keep getting the error Code: Fail
Last Updated on Saturday, 28 August 2010 20:49
 

How to get an array value by: 1) unique key AND 2) numerical index (row number)

E-mail Print PDF
Good morning! I have a two dimensional array, basically a table (see code below). I want to get a value from the array using two methods: 1) Using the rows key: $NewValue = $MyArray[$UniqueKey]; 2) Using the rows index (row number, so to speak): $NewValue = $MyArray[
Last Updated on Saturday, 28 August 2010 20:49
 

How to create Invoice in pdf file (dynamically) using PHP.

E-mail Print PDF
Hi All, I need to generate a Invoice for users in pdf format (pdf file). The template will be static (parameters) but the values comes from database dynamically. Is it possible to generate a inovice in pdf files using php code ? Please guide me with right code or how I
Last Updated on Saturday, 28 August 2010 20:49
 

Virtual Host? I think? I need serious help lol.

E-mail Print PDF
Well,I always wondered how sites like Blogger.com coded their custom domain support to their multiblogs software. A user points their domain to their site with a cname, and you add it in your blogs ACP. Then your custom domain acts as if youre using an actual host, and re
Last Updated on Saturday, 28 August 2010 20:49
 

issue with ! appearing in email

E-mail Print PDF
Hi guys, Ive been having a bit of an issue with php today and it has me totally stumped. Hopefully someone on here can point out my mistake. I have a function for sending an email with attachments. This works bar one small issue. ! is appearing in the email body
Last Updated on Saturday, 28 August 2010 20:49
 

Call to undefined function n12br()

E-mail Print PDF
Hello everyone Guys, Im new here...... i need help. i cant go away from day with a script in PHP; The script moviedit.php gave me this error: Fatal error: Call to undefined function n12br() in /var/www/Blockbuster/Convalida/moviedit1.php on line 68 i checked the
Last Updated on Saturday, 28 August 2010 20:49
 

Webservice is not being able to return more than 40 records Aprox

E-mail Print PDF
Hi Folks, Can Anybody help me to figure out why the Webservice is not being able to return more than 40 records Aprox? I am writing this for a GROWING TABLE, which has twenty thousand records presently. Is there any Size LIMIT for RESPONSE?? Thanks in Advance
Last Updated on Saturday, 28 August 2010 20:49
 

grab text between &quot;&quot;

E-mail Print PDF
$string = var togo = "gowentgone"; how can i grab the text with preg_match_all? preg_match_all(/"(.*)"/i, $string, $result) ; Read more...
Last Updated on Saturday, 28 August 2010 20:49
 

RANDOM ARRANGEMENT USING ARRAY

E-mail Print PDF
Hello PHP Master, I need your help. I want to create a random arrangement of the options. This will be the option answers for the given question. Below is my code, can you please check my code and help me correct it. $selectquestions = mysql_query("select * from tb
Last Updated on Saturday, 28 August 2010 20:49
 

htaccess rewrite

E-mail Print PDF
hey, i am trying to rewrite a url from this one: Code: http://www.example.com/links.php?view=category&id=43 to this one: Code: http://www.example.com/links/category/43 the rewrite works, but the user has to enter to www.example.com/links first a
Last Updated on Saturday, 28 August 2010 20:49
 

phpFlickr 17 second script - help to reduce execution time?

E-mail Print PDF
I just noted that its been almost four years since I logged in to these forums! Well Im back, and I could do with some help... I wrote a script using Dan Coulters PHP wrapper for the Flickr API, phpFlickr. It pulls several galleries of images based on explicitly defined t
Last Updated on Saturday, 28 August 2010 20:49
 

[RESOLVED] Image Upload Not Working

E-mail Print PDF
Hi, Im using the following function, being called from another page, to upload an image. I perform some validation against the image, to check size & file type, which all works. When I click submit on a valid file, it says the file has been uploaded, however, looking
Last Updated on Saturday, 28 August 2010 20:49
 

Another simple PayPal IPN question

E-mail Print PDF
Ive searched the forums and read the PayPal documentation but I cant figure out an anser to my simple task. My order is submitting to PayPal correctly and processing correctly. I need the IPN to set a session for the item_number so that I can use it in later processing,
Last Updated on Saturday, 28 August 2010 20:49
 

Alerting a Customer of a Duplicate Purchase

E-mail Print PDF
I have a digital product store and a lot of time customers dont realize that they have purchase a downloadable product before and accidently order it again. Resulting in an email..and the time it takes for me to issue a refund, or give them another design. I would like to
Last Updated on Saturday, 28 August 2010 20:49
 

Email Reminders

E-mail Print PDF
I am just wondering what the best way to send email reminders is. Do just a cron job? Or is there something that would be better that I do not know about? Read more...
Last Updated on Saturday, 28 August 2010 20:49
 

PHP file management -- chown / chmod

E-mail Print PDF
Most of the times when I use PHP to handle files there are the same issues I run into: - security because of default 0777 chmod - files not editable/deletable through FTP (owner issue?) I want to extend a custom framework so that I have a GUI that would create simple
Last Updated on Saturday, 28 August 2010 20:49
 

php and xml coding help

E-mail Print PDF
How can I get it so the following work: echo utf8_decode($xml->healings[0]->$xmla[0]->descrip[0]); // NOT work echo utf8_decode($xmlb); // NOT work PHP Code: <?php   $xml    = simplexml_load_file(ext
Last Updated on Saturday, 28 August 2010 20:49
 

PHP control CSS Settings

E-mail Print PDF
Need a little help in having PHP control a setting for a CSS div id. Basically, I have a a 2 column CSS Layout like so: Code: <style> #container1 { float:left; width:100%; } #col1 { float:left; width:30%; background:red; }
Last Updated on Saturday, 28 August 2010 20:49
 

Sorting on Varchar MySQL

E-mail Print PDF
Hi I want to sort in MySQL a Varchar Field. The content of that field is below: HHD01 HHD100 HHD02 HHD37 SAD55 I tried using +0 at the end of the order by field but it does not work How can i sort it properly Numerically like this HHD01 HHD02 HHD37 HHD10
Last Updated on Saturday, 28 August 2010 20:49
 

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
 
<< Start < Prev 1 2 3 Next > End >>

Page 1 of 3