473,544 Members | 2,458 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
3,749
thread by: Jonathan | last post Oct 6 '05 by: Jonathan
Hi all: I originally posted this in an HTML forum, but have realized that the solution may (a) require a server-side change or (b) be non-existent. In any case, since the page I'm dealing with is a PHP page and the problem has to do with an auto-inserted "input" element, I'll post it here, too. I'd appreciate any advice, commentary, or even...
5
1,747
thread by: news | last post Oct 6 '05 by: news
I have a new situation I'm facing and could use a suggestion or two, as I don't seem to be able to think in the abstract very well. We have a local server which holds all of our image files. We have a remote server that runs our public Web server and mySQL database. I need to be able to run a script that will: Read the contents of a dir on...
7
2,464
thread by: Adam | last post Oct 6 '05 by: R. Rajesh Jeba Anbiah
I've cobbled a sort of global "debug" routine by using this function: function debug($str, $strname) { global $debugYN; if ($debugYN) { echo "<br><br>"; } } This function gets included (usually in a header) and then called by
10
1,890
thread by: Bob Bedford | last post Oct 6 '05 by: R. Rajesh Jeba Anbiah
In the attempt to keep the URL and code quite clean, and avoid to have a very loooong url, we have used $_session for storing values trough the pages. Now, we have some clients that doesn't get any result when going on the second page. After studying their browser, the confidentiality setting was at the maximum. On their settings, the site...
1
2,679
thread by: windandwaves | last post Oct 6 '05 by: Bill Karwin
Are you allowed to use the following syntax in Mysql 4.0.17-nt : INSERT DELAYED IGNORE INTO `mytable` ( `ID` , `A` , `B` ) VALUES ("'.session_id().'", "2", ROUND(NOW()/10000) ); I am particularly interested in the delayed ignore. I want to make sure that no matter what, the instruction is carried out and that, due to indexes, the data is...
3
2,629
thread by: smorrey | last post Oct 6 '05 by: R. Rajesh Jeba Anbiah
I can't seem to find any PHP CMS's built around PostGRES as a back-end. If I can't find one soon, I'm afraid I may have to build my own from scratch. Maybe make one that utlizes PDO from PHP5 so it's basically DB neutral. Any thoughts?
3
2,472
thread by: Marcus | last post Oct 6 '05 by: R. Rajesh Jeba Anbiah
Hello, With regards to session_regenerate_id(), as Gordon pointed out on a previous post, the parameter to delete the old session was not added until PHP 5.1.0. I am running the 4.3 series, and am trying to manually delete my old session as I am calling session_regenerate_id() on every user request. I do not want PHP's garbage...
5
1,908
thread by: Maximus | last post Oct 6 '05 by: R. Rajesh Jeba Anbiah
Guys, I need to make an automated script that runs every x seconds without using a CRON job. I heard there was a way doing it only in PHP. If you know any function that can be used please inform me about it.
2
1,356
thread by: madmaster | last post Oct 6 '05 by: R. Rajesh Jeba Anbiah
Hola everybody! I've recently come up with a question about projects development. Do you use a project management environment like GForge or SourceForge? If so, could you recommend me a system like the above mentioned ones... not exactly the same but with features like theirs. Open Source if possible. TIA,
1
1,390
thread by: Al Dykes | last post Oct 6 '05 by: R. Rajesh Jeba Anbiah
I've used desktop software that allowed import or eport of data in comma deliminated format and had a gui interface that easily allowed columns to be reordered and deleted. I could do this in spreadsheet but is there a stand-alone utility of code I can imbed into an app for this? -- a d y k e s @ p a n i x . c o m
2
3,600
thread by: alex bazan | last post Oct 6 '05 by: alex bazan
I came across this function as i got a problem with very long-running scripts which use transactions... in the php manual i do not see clearly stated if the function defined will be executed if a timeout is reached. It states: "Registers the function named by function to be executed when script processing is complete."
2
1,316
thread by: google | last post Oct 6 '05 by: google
I am making a soap request to an amazon server and trying to parse the xml. The request - http://webservices.amazon.co.uk/onca/xml?Service=AWSECommerceService&SubscriptionId=0PHDGJJ5S75MM3PERG02&Operation=ItemSearch&SearchIndex=Books&Keywords=liverpool&ResponseGroup=Medium is succesful in my browser. But I can't get it into my script. ...
5
1,495
thread by: mungflesh | last post Oct 6 '05 by: Jerry Stuckle
I am new to PHP. Can I define an array in PHP 4.3 containing class types? ie. (simplified example) class MyType { function MyFunc() { $newType = new MyType;
5
2,249
thread by: Thejo | last post Oct 6 '05 by: Justin Koivisto
Hi all, I started programming in PHP recently and have a query about empty $_POST arrays. I can see two scenarios when this could happen. 1. When some tries to directly load the page to which data is being posted (for example, opening www.foo.com/xyz.php directly when a form action is xyz.php) 2. When the user clicks the submit button...
3
1,600
thread by: ATS | last post Oct 6 '05 by: drewbee
I forgot how to search a newsgroup for text. I took a HD crash and lost the "Favorites" that had that for me. If someone could post that, I'd appreciate it. Same crash took out all my PHP "Favorites". That is one of the things I'm looking for. What are the best places for syntax, tutorials and examples? TIA, ATS
13
3,398
thread by: raykyoto | last post Oct 6 '05 by: Ray
Hi all, I'm sure this is a popular question that comes up every few months here. Indeed, I've looked at some of the past postings, but I would like to ask things differently. Basically, I'm using a flat file to storing data. I have to do this because mySQL is not installed on my web server, and I am not the root user. The amount of...
6
1,467
thread by: Jimmy Clay | last post Oct 6 '05 by: Jimmy Clay
I have a very basic question about how to include files to be used by another file. I'm trying to include a bad word filter into the guestmap on my website. I know almost nothing about PHP code. I've tried everything I can think of but I keep getting error messages. The bad word filter code I found else where is this: File name is...
2
3,814
thread by: Alucard | last post Oct 6 '05 by: Alucard
Hi all. I am a newbie in PHP. Recently I found that there are mainly two ways to fetch mysql(or other DB) data: by object or by array. What is the main differences between them? Will the server use more resources (just my thought) when fetching by object? Or any other reasons? Thanks in advance for advises.
1
2,668
thread by: kurt.krueckeberg | last post Oct 6 '05 by: Chris Hope
The second line of this script <?php // current directory echo getcwd() . "<br />"; print ( exec("ls *.*") ); ?> should display the names of the four files (it does in an ssh session) which are located in public_html, but instead it displays just one filename, that of this script.
2
16,251
thread by: Brian | last post Oct 6 '05 by: Brian
Hi I am moving a site to a new server, I have been testing it and one of the pages uses move_uploaded_file, but I get a Permission denied. The directory I am moving it to is chomd of 755, if I change it to 777 it does upload but the owner is www-data, but I then can't download it using a FTP client (which I have to do) as it's the wrong...
1
1,667
thread by: Vic Spainhower | last post Oct 5 '05 by: Andy Hassall
I have 2 drop-down menus (1) States (2) Shows By State. My question is how do I invoke a re-build of the Shows By State drop-down when the user requests a different state. I believe this has to be done with Javascript and I don't know Javascript. Could someone supply a small example of how this is done? I am using PHP and MySQL. Following...
0
1,074
thread by: Chris Hope | last post Oct 5 '05 by: Chris Hope
I have a customer who is looking to employ a fulltime php programmer in Auckland, New Zealand. If anyone is interested please email me your details. Change the "blackhole" in my email address to "chris" -- Chris Hope | www.electrictoolbox.com | www.linuxcdmall.co.nz
1
1,449
thread by: gojuka | last post Oct 5 '05 by: Steve
Hi All Im having a minor issue performing a system command with exec(). I want to use the filenames of files that I uploaded within the command, but cannot escape once inside the exec() function. For example, lets say I just uploaded two files, file1.txt and file2.txt. I want to list the contents of those two files by using the command:...
8
5,455
thread by: baustin75 | last post Oct 5 '05 by: Jerry Stuckle
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I...
1
1,160
thread by: Lampa Dario | last post Oct 5 '05 by: Jerry Stuckle
Hi, this morning I have seen that the script at pagina: http://www.teachingonline.it/script/statistiche2.php wasn't working properly With this code I estract the day of the week in numeric format $data=$record; // year-month-day date format $anno=substr($data,1,4); $mese=substr($data,6,2); $giorno=substr($data,8,2);

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.