473,543 Members | 2,365 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
2,660
thread by: rain | last post Jul 16 '05 by: Andy Hassall
Hello, I am having some serious problems executing a command on my redhat linux machine using exec, shell_exec, or any variants thereof. I have a string saved into a variable like: $mystring = "/usr/local/bin/lmc -e add /music/whatever.mp3"; Then I try to execute w/ something like:
4
2,808
thread by: Cooper | last post Jul 16 '05 by: Cooper
hello, i have problem with session, reading on the manual of php.net, i have understood that: PAGE1.PHP: session_start (); $_SESSION = myVarValue; and for read in:
3
2,194
thread by: Ricardo | last post Jul 16 '05 by: Ricardo
Does anyone know how to make $rand(0,3) very common, $rand(4,6) rare, and $rand(7,9) extremely rare and link it to echo one number? eg: blah 3-3 blah would be very common or 2-2 or 2-1 etc. Also, if it helps, the 0-3 has a 75% "success rate", 4-6 has 40, and 7-9 has 10.
1
4,127
thread by: Sugapablo | last post Jul 16 '05 by: ljb
Ok. I have a web form with text fields. When the form is submitted, it goes to a php page to insert into a Postgres DB. Example: pg_query($db,"INSERT INTO table VALUES = ('" . pg_escape_string($_POST) . "')";
2
2,856
thread by: wtgee | last post Jul 16 '05 by: David Walker
I posted this elsewhere but got no answer so I thought I would see if anyone here is smarter. :) I am creating a image management system and have a few questions, if anyone could help 1) I read somewhere that storing images in a mysql database as a BLOB reduces speed and efficiency. Is this true? I don't expect to be serving many...
0
1,483
thread by: Steven James Samuel Stapleton | last post Jul 16 '05 by: Steven James Samuel Stapleton
I'm working on a paper a writing class, and I'd like some information if someone has it available, or knows of where it is available, specifically * Speed comparison of *straight* PHP vs. Perl and maybe C/C++ in various algorithms and * Speed comparison of PHP with some algorithms wirtten in C/C++ using the Zend API vs. Perl and maybe...
3
23,312
thread by: Leslie Hoare | last post Jul 16 '05 by: Manuel Lemos
Is there any way to set up the php mail() function so that it sends a username and password to the server? I'm on a winXP machine, and I have an SMTP provider, but it requires me to login to use it, and for some reason I can't find anything about it in the php.ini file. Many thanks, Leslie
0
1,788
thread by: JohnVT | last post Jul 16 '05 by: JohnVT
Hi. I mentioned this before, but I think my question got kind of lost. I'll make it one short question now. With set_error_handler('myErrorHandler') I bypass PHP's standard error handler, including the error control operator @. Can I still make @ work with my own error handler? Or, how would I avoid getting two warnings in: if (!($fp =...
3
2,879
thread by: Pete Bennett | last post Jul 16 '05 by: Pete Bennett
Folks, Can anyone recommend a script which will add a search capability to my site pls? I need one which will work with PHP version 4.3.2 which has register_globals set to OFF by my ISP and which does NOT require a database. I am currently using one which was written by Tim Henderson
1
3,090
thread by: Krhis | last post Jul 16 '05 by: Steven Vasilogianis
I have a search script on my site that uses glob(), how can I make it NON-Case Sensitive? Thanks for your help! Krhis
1
1,835
thread by: Matt Schroeder | last post Jul 16 '05 by: Steven Vasilogianis
Hello everyone - I wrote a function that handles uploads, and to call it variables are defined like this: function handleupload($gofile, $name, $size, $usersname) { // the action goes here } However, I need to use the $_files array to call the uploaded files in a for function. The first uploaded file is $_FILES, and the second is $_FILES,...
0
1,377
thread by: Ivan | last post Jul 16 '05 by: Ivan
Hi, I just insalled php4.3.2 on my windows xp windows... everything works ok, but when i try to do: test.php ----------- <?php print("-->$send<--"); ?> -----------
1
1,915
thread by: Joshua Ghiloni | last post Jul 16 '05 by: Zurab Davitiani
Folks, A quick opinion poll: I'm looking to write an RSS Aggregator. None of the PHP-based aggregators out there do exactly what I like, but it wouldn't be difficult at all to homebrew one. However, I don't feel like writing my own parser. I've looked at Magpie and Onyx, but haven't yet tested either. If any of you out there use an RSS...
0
2,773
thread by: Louis-Philippe Huberdeau | last post Jul 16 '05 by: Louis-Philippe Huberdeau
I tryed to compile php5 (a dev snapshot) --with-mysqli=/usr/local/bin/mysql_config The configuration works just fine but the compilation crash near zif_mysqli_stmt_num_rows. Anyone experienced this problem? Anyone got it to compile?
1
2,239
thread by: Forcypal | last post Jul 16 '05 by: KAH
Could somebody please tell me what I am doing wrong. I have spent that past couple of days chasing an intermittent session problem where the session just gets lost and I return to the login screen. ---------------------------------------------------------------------------- ---- PHP Session Code...
0
2,347
thread by: Leigh Riley | last post Jul 16 '05 by: Leigh Riley
Hi there, I've installed PHP on a variety of machines, but I seem to be having a lot of trouble on Windows XP. I have 4.3.2 installed, and I would like to use JpGraphhttp://www.aditus.nu/jpgraph/], but I must first install the GD library. I found php_gd2.dll in my extensions directory, so I added it to my php.ini file. However, when I...
0
1,766
thread by: Madhusudan Singh | last post Jul 16 '05 by: Madhusudan Singh
Hi After months of waiting for Redhat to come out with up to date rpms, I decided to compile a working OpenSSL/ MySQL / PHP / httpd installation for myself. Installed the latest versions of mcrypt and mhash, followed by openssl and mysql (version 4.0.13) - all from source. Configured httpd with :
0
1,805
thread by: Madhusudan Singh | last post Jul 16 '05 by: Madhusudan Singh
Hi On an ecommerce project that I recently deployed, I have been asked to add the functionality of uploading images over SSL. I am a relative (compared to you folks) newbie at PHP / Apache. What part of PHP should I be looking at ? Thanks, MS
2
8,323
thread by: James Turnbull | last post Jul 16 '05 by: James Turnbull
I am having troubles with some imap_open() I am using the following code: <?php $mbox = imap_open ("{mailserver:993/imap/ssl/no-validatecert}INBOX", "user", "password"); echo "<p><h1>Mailboxes</h1>\n";
4
2,568
thread by: Nigel A. Chapman | last post Jul 16 '05 by: Tony Marston
I've recently been looking into PHP's custom error handler support, which seems to me to fail at exactly the point that you need it to start working. I quote: "Note: The following error types cannot be handled with a user defined function: E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR and E_COMPILE_WARNING." -- from...
5
3,368
thread by: Mirco | last post Jul 16 '05 by: JohnVT
Hi I have a page written with php and a MySQL Database. Now, I want to redesign the whole, but still with the Database and php. is it possible to design the page with Flash and then to put all the php commands into the source code? specially, I still need the extension *.php? Greets and thanks in advance mirco
1
4,925
thread by: Frank | last post Jul 16 '05 by: Parallax
I can use mysqldump to create a .sql file backup of my data.. For importing how can I test to see if the DB exists, if it does import the .sql If not create the DB then import the .sql ! Thanks
3
5,475
thread by: Shawn Campbell | last post Jul 16 '05 by: Terence
Here's my scenario: I'm creating a build environment with one system acting as the main build dispatcher and other systems as the build hosts. On the main build system I have Apache, MySQL and PHP installed and I'm building a website that will allow people to view/start/etc. builds. I'm trying to get PHP to implode a log file that...
0
1,660
thread by: Terence | last post Jul 16 '05 by: Terence
I'm writing an XML application at the moment and I'm trying to implement exception handling - particularly fatal exceptions. currently if a fatal exception is raised, I create error data in XML format and then send the well-formed XML result document to the user agent. I'm also careful to set the mime type to text/xml or application/xml...
1
7,119
thread by: Shaunak Kashyap | last post Jul 16 '05 by: Zac Hester
Does anyone know what sorting algorithm(s) -- quicksort, mergesort, radix sort, etc. -- does PHP use internally in its sort function?

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.