FAQ

Search Discussions

324 discussions - 1,424 posts

  • $TrolleyContents is a string. Basically what I want to accomplish here is if $TrolleyContents already exists append $AddToTrolley to $TrolleyContents, if not register $TrolleyContents. Am I going ...
    John Taylor-JohnstonJohn Taylor-Johnston
    Oct 2, 2005 at 3:53 am
    Oct 5, 2005 at 1:26 am
  • Hi, I have some checkboxes on my page which correspond with boolean fields in my database - actually they are TINYINT's in which I store a 0 or 1 in for false and true values respectively. Is it ...
    ShaunShaun
    Oct 28, 2005 at 3:00 pm
    Nov 9, 2005 at 4:03 pm
  • IIS5 on W2K PHP 4.4.n php_curl.dll is not commented. libeay32.dll AND ssleay32.dll are in the system folder (system32 too, just in case) path to the extensions is correct Fatal error: Call to ...
    Jay BlanchardJay Blanchard
    Oct 21, 2005 at 8:13 pm
    Oct 25, 2005 at 11:54 am
  • Newbe question: How does one convert an array into a HTML GET request easely? Are there any standard functions? Same for HTML POST requests. Thanks, Martin.
    Martin van den BergMartin van den Berg
    Oct 2, 2005 at 6:44 pm
    Feb 2, 2006 at 9:46 pm
  • Hi, I need to extract 50 words more or less from a description field. How can i do that?. Substr, cuts the words. Is there any other way to that, without using and array? I mean and implemented ...
    DannyDanny
    Oct 29, 2005 at 11:36 am
    Oct 31, 2005 at 12:48 pm
  • Recently, I asked my hosting provider when they are going to switch to PHP5. They replied that it will not happen any time soon, since they will install PHP5 only on new servers. Their reasoning was ...
    GamblerZGGamblerZG
    Oct 11, 2005 at 4:46 pm
    Oct 14, 2005 at 1:33 am
  • How does a hacker get access to your scripts located outside the web folder? I asked a friend to hack my php script within the web folder... all of my crucial function were called by: ...
    Graham AndersonGraham Anderson
    Oct 13, 2005 at 9:05 pm
    Oct 15, 2005 at 2:59 pm
  • Hey guys, Having trouble coming up with a solution to this idea I am trying to implement. I have a "Coupon" table. I am creating radonly generated coupon codes that go into this table. 12 chars in ...
    AaronjwAaronjw
    Oct 10, 2005 at 8:07 pm
    Oct 14, 2005 at 6:06 pm
  • This is more of a user education problem than anything, I suspect, but... Okay, so I'm kind of like a closing pitcher on this project where the original developer is, errr, surfing in California or ...
    Richard LynchRichard Lynch
    Oct 14, 2005 at 8:39 pm
    Oct 19, 2005 at 6:56 am
  • Hi, Up to this point in time I used to construct my insert statements like this $qid = mysql_query('INSERT INTO MYTABLE ( column1, column2, ) VALUES ( "'.$value1.'", "'.$value2.'" )'); However I ...
    ShaunShaun
    Oct 18, 2005 at 4:15 pm
    Oct 29, 2005 at 7:48 pm
  • I am having a problem with a couple of function I have written to check for a type of string, attempt to fix it and pass it back to the main function. Any help is appreciated. <?php /* * ex. ...
    Jason GerfenJason Gerfen
    Oct 26, 2005 at 5:17 pm
    Oct 28, 2005 at 10:55 am
  • How secure is it to save a password in $_SESSION. i.e. $_SESSION['password'] is it safe and is it practical? Thanks, Dan.
    Dan BrowDan Brow
    Oct 10, 2005 at 6:35 pm
    Oct 13, 2005 at 2:30 am
  • I'm now getting this error: XML Parsing Error: undefined entity with the following entity at the first ampersand: <item_name farm lettuces with reed avocado, cr&egrave;me fra&icirc;che, radish and ...
    JonathanJonathan
    Oct 12, 2005 at 8:11 pm
    Nov 3, 2005 at 2:17 pm
  • Hi, Why this doesn't work ? --- $query = "SELECT COUNT (login) FROM WHERE login = '$login'"; $result = mysql_query($query); mysql_fetch_row($result); --- It gives me Warning: mysql_fetch_row(): ...
    Mário GamitoMário Gamito
    Oct 24, 2005 at 5:25 pm
    Oct 25, 2005 at 2:32 am
  • adding the input.error didn't solve the problem dang it.! If there is a ending quote missing, I don't see it right off hand. I know have: <input class="<? if($error_msg){ echo "input.error"; } ELSE { ...
    Bruce GilbertBruce Gilbert
    Oct 18, 2005 at 2:49 am
    Oct 20, 2005 at 9:54 am
  • Hi guys/girls, I have to apologize if this issue has been discussed in detail before but I couldn't find anything obvious so far. What I need/want to do is to : 1. Take POST data from a form (no ...
    RagnarRagnar
    Oct 6, 2005 at 9:52 am
    Oct 10, 2005 at 10:11 pm
  • Hi All, I have started reading a couple of books about PHP 5 and whilst most of it is comprehensible even to me :-), I fail to understand WHY there is such a thing as an abstract class or method? I ...
    Alan LordAlan Lord
    Oct 23, 2005 at 7:54 am
    Oct 24, 2005 at 10:12 pm
  • Hi all, I'm trying to get started in OOP with PHP. I have the following short code snipped. I'f I comment out the 'class Test' definition and the following references to it, it prints This is outside ...
    Bob HartungBob Hartung
    Oct 21, 2005 at 3:34 am
    Oct 22, 2005 at 2:04 pm
  • Hi, Image that there could be a string fred Fred FRED First of all I need to know that these are same which I can do with strtolower, but how could I tell that 'FRED' is 'most captilised? -- zzapper ...
    ZzapperZzapper
    Oct 10, 2005 at 12:42 pm
    Oct 10, 2005 at 8:32 pm
  • Given: It is unacceptable to reject perfectly valid email addresses, no matter how arcane. [Like mine. :-)] The CORRECT RegEx for validating an email is 3 pages long, and performance in PHP would ...
    Richard LynchRichard Lynch
    Oct 22, 2005 at 2:58 am
    Nov 4, 2005 at 2:17 am
  • I am trying to run Fabforce DBDesigner 4.0.5.6 Beta on: win xp pro Version 2002 Service Pack 2 PHP 5.0.5 Mysql server 5.0.13 installed from 5.0.13-rc-win32.zip and as Fabforce have closed their forum ...
    VizionVizion
    Oct 30, 2005 at 5:57 pm
    Oct 31, 2005 at 6:09 pm
  • Hi, I m creating a cache system, and i have a problem: PHP takes a lot of time opening the file. (Im using 2.6.9-1.667smp and XFS) * For files less or equal 6 Kb, takes arround 0.02-0.03 miliseconds ...
    Ruben Rubio ReyRuben Rubio Rey
    Oct 14, 2005 at 11:29 am
    Oct 19, 2005 at 11:37 am
  • Does anyone have an example of code to process a CSV file submitted via a file upload and parse it out in order to write its records to a db? Hopefully yours, - Brian
    Brian DunningBrian Dunning
    Oct 17, 2005 at 2:37 pm
    Oct 18, 2005 at 1:15 pm
  • I have an old site which uses this code on login: //it does a query then if ($affected_rows 0){ session_start(mysite); session_register('admin'); $wardadmin = yes; header("location: admin.php"); } ...
    Blackwater devBlackwater dev
    Oct 5, 2005 at 3:17 pm
    Oct 7, 2005 at 9:08 pm
  • I have a form that submits and returns on the same page and works fine. I know want to change the submission action from {$_SERVER['PHP_SELF']} to an external thanks page so the form method would ...
    Bruce GilbertBruce Gilbert
    Oct 6, 2005 at 12:45 am
    Oct 7, 2005 at 8:41 pm
  • Hello, all - I'm designing a controlled access system in PHP, and it's coming along quite well. It's very simple, and just sets a session varibale, such as $_SESSION['authenticated'] = 1, not a whole ...
    Dan TrainorDan Trainor
    Oct 27, 2005 at 4:06 pm
    Oct 29, 2005 at 8:35 pm
  • When I fill in the form with user and password, it goes to the loginerror.php anyway. Is this because I use switch with only one case(I'm going to make more later), and if it is. What should I use ...
    TwistednetadminTwistednetadmin
    Oct 14, 2005 at 1:42 am
    Oct 22, 2005 at 7:58 am
  • SCRIPT_NAME and PHP_SELF always include leading url information and slashes. Is there a function I can use to skin either down to the filename? No slashes or leading url. John
    John Taylor-JohnstonJohn Taylor-Johnston
    Oct 21, 2005 at 2:21 am
    Oct 22, 2005 at 2:46 am
  • Since nobody ansvered the real question my previous message, I will re-phrase it. PHP developers assume that PHP5 will be frequently used to parse PHP4 scripts. Why? And what's so horrible about ...
    GamblerZGGamblerZG
    Oct 12, 2005 at 9:35 pm
    Oct 17, 2005 at 8:38 pm
  • Hi all, I'm really struggling here! I have a large, multi-dimensional array that I want to "clean-up" a bit before committing to a database. I want to remove quite a bit of the array but using the ...
    Alan LordAlan Lord
    Oct 12, 2005 at 4:24 pm
    Oct 13, 2005 at 8:14 pm
  • Hi All, I've recently been working on building my own wiki engine for my blog site. While the majority of the engine is complete, a remaining concern I have is how to handle competing edits (ie when ...
    Murray @ PlanetThoughtfulMurray @ PlanetThoughtful
    Oct 4, 2005 at 2:54 am
    Oct 5, 2005 at 2:54 pm
  • Somewhere in the manual (damned if I can find it now) it says (or used to say) that you can or can't safely do this: while (list($k, $v) = each($array)){ if (...) unset($array[$k]); } I don't even ...
    Richard LynchRichard Lynch
    Oct 27, 2005 at 10:18 pm
    Oct 29, 2005 at 10:06 am
  • Hi does any one have code/examples for unzipping a file thats been uploaded to a server. I would prefer a class rather than something that uses zip.lib as it may not be configured on the server. clive
    CliveClive
    Oct 26, 2005 at 10:45 am
    Oct 27, 2005 at 2:50 pm
  • How do you decompress a zlib'd string located in a file with php ? I need to dynamically write a password string into a movie file..... It appears that in QuickTime movie API, all sprite ...
    Graham AndersonGraham Anderson
    Oct 26, 2005 at 4:07 pm
    Oct 27, 2005 at 5:07 am
  • Hello list, I am in a need of GUID generator but it seems that PHP doesn't have this as a built-in feature. I looked at http://pear.php.net <http://pear.php.net/ and http://pecl.php.net ...
    Denis GerasimovDenis Gerasimov
    Oct 25, 2005 at 9:02 am
    Oct 26, 2005 at 1:51 pm
  • Is there a OS java (or other) html editor I can implement on a Web page. I want a user to type text, use bold, italics, etc. I would then store the html in a MySQl record and then use php to insert ...
    John Taylor-JohnstonJohn Taylor-Johnston
    Oct 19, 2005 at 3:52 am
    Oct 26, 2005 at 5:42 am
  • Hi all, Slowly I'm progressing. Now how to turn error reporting on for a test apache server. I have made the following changes to /etc/php.ini: error_reporting = E_ALL display_errors = On error_log = ...
    Bob HartungBob Hartung
    Oct 23, 2005 at 10:30 pm
    Oct 24, 2005 at 8:32 am
  • I'm having trouble moving some directories. My script works fine on some directories but doesn't move others. It seems to have trouble with directories with non alphanumeric charters. I'm running Red ...
    -k.-k.
    Oct 13, 2005 at 2:11 am
    Oct 14, 2005 at 8:18 pm
  • Hi, I'm using PHP 5. I have a class operation that includes php files. Is there a way to include this files to global scope? So that difined vars and functions are global accesseble? I saw that some ...
    ClaudioClaudio
    Oct 12, 2005 at 9:16 am
    Oct 14, 2005 at 3:19 pm
  • Hi, is it possible to cache parsed XML files somehow? I'm writing template library based on XML. But it's not very efficient to create new DomDocument, load XML template, process it and show on every ...
    Petr SmithPetr Smith
    Oct 5, 2005 at 1:15 pm
    Oct 10, 2005 at 8:11 am
  • Hello, I have a problem with the persistence of environment variables when mixing PHP and SSI (Apache) and I am not sure if I just made an error or if this approach cannot work at all. So please ...
    Christoph FreundlChristoph Freundl
    Oct 28, 2005 at 9:30 am
    Oct 29, 2005 at 8:56 pm
  • I'm generating PDFs under windows using PDFlib and all is easy. What I am wondering though, and google reveals nothing usefull, can I print the PDF to a network printer from windows? I'm presuming to ...
    Dave ListsDave Lists
    Oct 24, 2005 at 6:48 pm
    Oct 25, 2005 at 8:38 pm
  • I've written a script to munge and import 108,000+ records. To avoid spiking the server, I'm sleep()ing 1 second for each record. So it takes 30+ hours to run, so what? This data changes "daily" but ...
    Richard LynchRichard Lynch
    Oct 22, 2005 at 9:36 pm
    Oct 23, 2005 at 3:33 pm
  • Hello peoples! short question: How can I count the usage of mail function in scripts? long description :D I have a webserver, and I want to limit the usage of mail function for each host I have ...
    Cristea AdrianCristea Adrian
    Oct 18, 2005 at 9:45 am
    Oct 22, 2005 at 11:36 am
  • I am working on a redirect script to log "out"'s. I was trying to do it with a header redirect: <?php // Log in database /* -snip- */ // Send user away header ("Location: ".$url); ? Does this seem ...
    Dotan CohenDotan Cohen
    Oct 16, 2005 at 3:04 pm
    Oct 20, 2005 at 10:34 am
  • Here are all the scripts original. It still won't work. I can't see what's wrong with it??? It's from the tutorial PHP5 and Mysql for dummies..... I have shorted it down though, since I am the only ...
    TwistednetadminTwistednetadmin
    Oct 14, 2005 at 7:39 pm
    Oct 15, 2005 at 8:14 am
  • I have a local intranet server, running apache1.3+php4. Is it possible to get the mac address of computes which access on of my php pages? Ben
    Ben SagalBen Sagal
    Oct 9, 2005 at 11:34 am
    Oct 12, 2005 at 2:28 am
  • I'm trying to setcookie('username',$username,15552000) but on subsequent pages $_COOKIE('username') is always null. I verified that I'm setting it before any other output is sent to the browser. I ...
    Brian DunningBrian Dunning
    Oct 6, 2005 at 2:11 pm
    Oct 6, 2005 at 9:41 pm
  • What's the best approach to create a shopping cart.? Cookies? Submit buttons passing _post values? Or create session values? I have a bit of code to get that started. It won,t be a complicated site: ...
    John Taylor-JohnstonJohn Taylor-Johnston
    Oct 1, 2005 at 6:11 am
    Oct 3, 2005 at 11:20 pm
  • I need to generate embedded php within in a mysql record. $contents is the actual contents of that record. <?php $contents = "<div class=\"indent\" style=\"font-size: 16px; font-family: ...
    John Taylor-JohnstonJohn Taylor-Johnston
    Oct 31, 2005 at 2:16 am
    Oct 31, 2005 at 6:30 am
Group Navigation
period‹ prev | Oct 2005 | next ›
Group Overview
groupphp-general @
categoriesphp
discussions324
posts1,424
users312
websitephp.net

312 users for October 2005

Richard Lynch: 121 posts Jochem Maas: 71 posts Jay Blanchard: 43 posts Robert Cummings: 41 posts Oliver Grätz: 33 posts Jasper Bryant-Greene: 31 posts John Taylor-Johnston: 31 posts Tg-php: 26 posts Graham Anderson: 23 posts Jasper Bryant-Greene: 22 posts John Nichel: 21 posts Marcus Bointon: 21 posts Richard Davey: 19 posts Cc: 17 posts Greg Donald: 17 posts Dan McCullough: 15 posts Alan Lord: 14 posts Mark Rees: 14 posts Petr Smith: 14 posts Brent Baisley: 13 posts
show more
Archives