473,775 Members | 2,572 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.
1
2,424
thread by: laredotornado | last post Dec 16 '07 by: petersprc
Hi, Can anyone recommend a free script for calculating UPS shipping? I am familiar with the script written in 2000 by Jason Costomiris, but UPS is using an XML interface and I wondered if there's anything more updated. The pages I located on Google turned up broken links. Thanks, - Dave
1
1,085
thread by: benstern | last post Dec 16 '07 by: petersprc
In this script: http://moose.cc/scripts/grabber/v02/index.phps How would I make it append the domain name of the source image to the saved image name? Like Http://www.test.com/example.jpg to save as test.com.jpg I think it would be easiest to modify when it starts to break up the filename: " $filename = explode("/",$url); //...
1
1,892
thread by: pedalpete | last post Dec 16 '07 by: pedalpete
I have a bunch of events which I extract from my database, some of these events extend over a night, some take place during a single day. In the database I have the start/end times of the event, and I am trying to calculate the length of the event. I've tried a ton of stuff, but I can't seem to get this working properly. If an event lasts...
2
4,611
thread by: Edan | last post Dec 16 '07 by: Edan
Hello I'm trying to remove square brackets and everything between them from a string, using regular expressions I know how to use preg_replace, and know the basics of regex, but can't success. Can anyone please give me a regex for it? Thanks in advance! Edan
8
3,297
LacrosseB0ss
thread by: LacrosseB0ss | last post Dec 16 '07 by: clai83
Hey folks; I have PHP session variables that are having some troubles. I posted in a few other forums but couldn't really find one dedicated to my specific issue. I am using a few session variables throughout my website and am using the following two lines at the top of every session related page: <?php session_start(); $_SESSION...
19
3,834
thread by: Roberto | last post Dec 15 '07 by: Steve
Can anyone recommend a PHP-based dashboard product or open source project? My employer is looking to purchase a product to collect business intelligence data like number of customer interactions by category and display them in charts inside gadgets. We have an investment in PHP programmers instead of Java programmers, and we mostly work...
2
1,697
thread by: clai83 | last post Dec 15 '07 by: clai83
mysql and mysqli functions always return strings values, and I understand that I can set the type of the data via the settype function AFTER I extract the data, but is there a way with PHP to extract the data as it is specified in the mysql database? (i.e if the type is an integer then PHP will insert the integer value in the result set). The...
3
1,949
thread by: Hazza | last post Dec 15 '07 by: Markus
Hi, I am using PHP and mysql to create a website. I am fairly new to PHP, and thus am grateful to anyone who helps! Firstly I am running a homepage, that displays additional content if a user has logged in. I set a loggedin session in the log in page, which I have tested and works fine in other scripts. I am displaying news on the homepage...
5
1,813
thread by: dannynnad | last post Dec 15 '07 by: Jerry Stuckle
Hi, SuperAdministrator when trying to edit the frontend content the following error is comingup: "You are not authorized to view this resource." I checked from the backend whether the section, category n content is public. All of them are public and published. No clue why super admin can't edit the frontend content.
7
1,466
thread by: John | last post Dec 15 '07 by: macca
Hello, I have this script and it shows GMT time and I need it to show -8 GMT for PST time. Here is the code that needs changing.
3
13,025
thread by: Sandman | last post Dec 15 '07 by: gosha bine
Hi, So I read the manual where it says to use mysql_affected_rows() for everything except SELECT and SHOW, and use mysql_num_rows() for those two, which actually return a result. However, I wrote this little script below where I find that mysql_num_rows() returns exactly the same output in the case of SELECT, as mysql_affected_rows(). In...
2
5,075
thread by: olddocks | last post Dec 15 '07 by: underscore
what is the best way to output error messages from one page to another? i currently send the messages to display using header() with GET Is there any good workarounds? or a standard way of doing it?
1
1,760
thread by: jasone | last post Dec 15 '07 by: stepterr
Hi all, ive got a search function running on a database, the action performed by the form is shown below, within the 'else' statement i would like to show roughly 5 random rows from the sql table (alternative products) if you like. please find below the script im currently running for the search, the else statment just shows 'no results found'...
1
2,795
thread by: beary | last post Dec 15 '07 by: stepterr
Hi all, I have the code: if(is_uploaded_file($_FILES)) { move_uploaded_file($_FILES,$_FILES); }
3
1,346
thread by: vozzek | last post Dec 15 '07 by: stepterr
Hi all, My site is almost finished, and I just added a whole ADMIN section where I can update/edit my SQL database via easy-to-use forms. On Page one I use php to require a superuser password, and if correct, I set a $_SESSION variable that enables you to see every other admin page (I do a check for the variable at the top of the page and exit...
3
1,261
thread by: cozsmin | last post Dec 15 '07 by: aktar
i mean , i have a page page.php and i have <?php kadfsdkfsdkfbdfjkbdsfjb ?> inside , when i go http://localhost/.../page.php i get its source and i see <?php "the code" ?> ,weird man, i mean i have done a lot of other php pages and all show only the html script in source man; if u are interested here is the code : <?php //// i see the...
3
2,400
thread by: VooDoo | last post Dec 14 '07 by: Rik Wasmus
Hi all, I used to use this for getting the extension of an uploaded file.. $ext = strstr($doc, "."); but apparently this not work when the filename contain a '.' What is the best way to get the correct extension of a file??? Thanks for your suggestion. VooDoo
5
2,626
thread by: adm | last post Dec 14 '07 by: adm
Hello everybody, here is the question: I've got a date in TDateTime type (Delphi) and I want to convert it in another format, for example yyyy-mm-dd hh:mm:ss. Is there a function to do it with PHP? And if it doesen't exist do you give me any suggestion? Thank you very much Andrea
2
1,367
thread by: runway27 | last post Dec 14 '07 by: spadmore
presently there is a table which records information about users enquiring for fares to a particular destination. in the existing report which is a php file when a particular date is selected this php file will display the total number of enquiries for each destination and its price for a particular dates. in this php file a select query is...
1
5,166
thread by: prasankn | last post Dec 14 '07 by: prasankn
Hi, I got the below error when i try to load libphp5.so through Apache. I compiled the Apache through the below options. APACHE_COMPILATION ./configure --enable-shared=mod_rewrite --prefix=/home/test3/test/apache/httpd-2.0.47/Install 1>out.txt 2>err.txt
3
1,029
thread by: webandwe | last post Dec 14 '07 by: Markus
hi, For some reason the URLS won't redirect, it has worked but now it does not want to work. I even got the script from scratch again but still it does not want to work. I get the following error: Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\volvo\secure\log10.php:2) in...
1
4,992
thread by: wish | last post Dec 14 '07 by: nathj
Hello, I have problem is when i append new data in text file always append at the last of the text file. Am i can append the new data in beginning of the text file? Mean when i have update data the text file and always write at the beginning of the text file and the previous data at the below of the new data.. Can anyone have idea about it?...
5
1,643
thread by: kamleshghate2008 | last post Dec 14 '07 by: nitinpatel1117
Hello I have a page on which i m placing order. After submitting the form, data is inserted to db successfully but when i refresh the page the duplicate data is inserted to db. How can i stop this. Can anybody help me? Thanx in advance
2
1,359
thread by: patsman77 | last post Dec 14 '07 by: patsman77
Hello All, I am trying to pass records to a mysql database, but it is only passing 1 record... What I have so far, is it pulls selections from database, calculates weather the selection is a winner or a loser or a tie, prints out to the screen correctly, but when posting the results to the database, it only sends the first record, and not...
2
6,359
thread by: kamiseq | last post Dec 14 '07 by: Jerry Stuckle
i have phpunit installed as on the site(http://www.phpunit.de/ pocket_guide/3.2/en/installation.html). im running simple tests (that actually have been running on sqlite base) and I got that silly error that PDO could not find a driver for my postgresql db. that is it PDOEXception could not find driver and nothing else. I made a test and...

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.