FAQ

Search Discussions

90 discussions - 424 posts

  • Dont get me wrong, I love programming! But what an absolute pain in the ass it is when you re-use old code only to discover something "less well made". You all know about this right? You go into your ...
    Rico SecadaRico Secada
    Aug 29, 2011 at 7:44 pm
    Sep 1, 2011 at 2:34 pm
  • Hey everyone, I am a super newbie just beginning to learn PHP. Awhile ago, I had used aptana for dabbling with php and was amazed to find out that it had a built in php interpreter so I could do some ...
    Matty SarroMatty Sarro
    Aug 3, 2011 at 1:22 pm
    Aug 4, 2011 at 2:01 pm
  • I'm encountering this on a script, but I can't figure out where it's actually failing. How do I debug this problem???
    TamouseTamouse
    Aug 26, 2011 at 5:56 am
    Aug 29, 2011 at 12:43 pm
  • Ok so I have tried to create a sort of messaging system on my website and I have run into some problems storing who the message is from, ill try to take you through step by step what I am trying to ...
    Wil primWil prim
    Aug 5, 2011 at 4:49 am
    Aug 5, 2011 at 6:04 am
  • So here I am attempting to generate some numbers to be inserted into a database... eventually they will make up a phone number (Which I've emailed about before and know about the bad ideas with it.. ...
    Jason PruimJason Pruim
    Aug 11, 2011 at 1:22 am
    Aug 11, 2011 at 7:22 pm
  • Hello Php, It's my first time I use mcrypt. I've done everything like it's written in the php manuals, here is the code: <?php $d=mcrypt_module_open("rijndael-256", "", "ofb", ""); ...
    Andre PolykanineAndre Polykanine
    Aug 3, 2011 at 4:40 pm
    Aug 4, 2011 at 6:32 pm
  • Don't seem to be getting any feeds thru the newsgroup mirror(?).
    Jim GinerJim Giner
    Aug 2, 2011 at 9:18 pm
    Aug 6, 2011 at 6:10 pm
  • Hey Everyone, Wondering what everyone does to prevent multiple form submissions? My form is simply getting emailed to my email, and it redirects to a success page when submitted... Would it be as ...
    Jason PruimJason Pruim
    Aug 24, 2011 at 1:04 am
    Aug 25, 2011 at 2:08 pm
  • Hi, I have implemented a "remember" me feature in my login-script, but I can't get it to function! I want to make it possible for the users to stay logged in for 30 days. This is what I got this far: ...
    AlektoAlekto
    Aug 7, 2011 at 6:15 pm
    Aug 20, 2011 at 12:49 am
  • I have two forms on the same php script. Is it possible to submit both forms to the same action="processform.php" with a single submit button? If so would you give me examples on how to handle this? ...
    Chris StinemetzChris Stinemetz
    Aug 11, 2011 at 6:25 pm
    Aug 12, 2011 at 11:45 am
  • I'd like to use PHP to intentionally generate an "Error 500 Internal Server Error". Here's the problem. My site has this error intermittently and I'd like to monitor the error log to figure out the ...
    GhodmodeGhodmode
    Aug 7, 2011 at 3:50 am
    Aug 8, 2011 at 3:48 am
  • How do I preserve text formatting when text is inserted into a database table? For example: I am using a textarea to allow users to leave comments into the database and I am using: '" . ...
    Chris StinemetzChris Stinemetz
    Aug 10, 2011 at 6:34 pm
    Aug 10, 2011 at 9:39 pm
  • Hi I have a simple from which uses the post method to get to my page script results.php in results.php I have $find=$_POST["find"]; //this works perfectly, echo $find gives me the search term as ...
    David GreenDavid Green
    Aug 9, 2011 at 2:14 pm
    Aug 10, 2011 at 12:28 am
  • hi,everyone it is a very strange problem,At first,i put my code into the method inner,it works.see below: ******************* start $str = "SQL HERE"; if (1 == 1) { $array = preg_split("~[^\"],~", ...
    Sharl.Jimh.TsinSharl.Jimh.Tsin
    Aug 2, 2011 at 10:24 am
    Aug 2, 2011 at 3:53 pm
  • Hi, I have opend Bug #51739 in 2010. It was closed as bogus before my last question was answered. It would be fine to know what you think about that bug. In short: ...
    Magic-phpMagic-php
    Aug 31, 2011 at 2:04 pm
    Sep 1, 2011 at 11:42 pm
  • Is it possible to get the actual sql that is being used to query or update the database? E.g $sth = $dbh- prepare ("update table set field=?, field2=? where id=?); mysqli_bind_param ($sth, 'ssi', ...
    Peet GroblerPeet Grobler
    Aug 31, 2011 at 9:24 am
    Aug 31, 2011 at 2:34 pm
  • Hello!, I must not be understanding something as I would expect 'f_file' to show up in the print_r below.: ---form-- <form action="index.php" method="post" enctype="multipart/form-data" <input ...
    Donovan BrookeDonovan Brooke
    Aug 2, 2011 at 3:04 pm
    Aug 2, 2011 at 3:18 pm
  • Hi every one, When trying to run my database script with `drop database` command, the server refuse and said as below screenshot. What should I do to enable this command? Regards, Nam [image: ...
    Nam Gi VUNam Gi VU
    Aug 24, 2011 at 4:30 am
    Aug 26, 2011 at 4:21 am
  • I'm going through a customer's server, running crazy proprietary forum software (vbbullitin) and even worse SEO mods (vbseo). I cannot figure out where the php code for a page is coming from! How to ...
    Dotan CohenDotan Cohen
    Aug 18, 2011 at 7:40 pm
    Aug 19, 2011 at 2:00 am
  • Hi everyone, I don't post all that often, so I hope my (mildly) off-topic question won't be too unwelcome... Keep in mind that I'm still pretty new when it comes to security, so what I propose may or ...
    James ColanninoJames Colannino
    Aug 16, 2011 at 8:14 am
    Aug 16, 2011 at 5:01 pm
  • Hi everyone, As we all know, count() returns 1 if the variable is not an array. Question is: why in the world does it this? If a variable is *notA* an array, it contains *zero* array elements. You ...
    Andre PolykanineAndre Polykanine
    Aug 8, 2011 at 8:20 pm
    Aug 8, 2011 at 8:47 pm
  • Hello List I want to use Cake PHP ,I have downloaded it from it's site,rename the folder to first_app and copied it to /srv/www/htdocs my root is here: /srv/www/htdocs by entering ...
    Negin NickparsaNegin Nickparsa
    Aug 7, 2011 at 7:53 am
    Aug 7, 2011 at 11:28 am
  • Hello, Soooo i created a simple login system, and I am using sessions. Everything seems to work fine, however; when I upload my files to my server and type my domain name my index.php page comes up ...
    Wil primWil prim
    Aug 4, 2011 at 4:42 am
    Aug 4, 2011 at 6:23 pm
  • Hi every one, At the moment when installing new version of EasyPHP on my Windows 7 OS, I've got to re-add the alias on my machine which is a boring process since I have teens of project running on my ...
    Nam Gi VUNam Gi VU
    Aug 28, 2011 at 10:57 am
    Sep 1, 2011 at 2:48 pm
  • Hi there, I am having some trouble with utf8_decode(). Somehow the function returns output=input e.g.: $input = '%20%C3%9Cbersetzung%20franz'; $output = utf8_decode($input); echo $input.'<br ...
    Merlin MorgensternMerlin Morgenstern
    Aug 30, 2011 at 10:01 am
    Aug 31, 2011 at 12:34 pm
  • Hi everybody! I've got some troubles trying to connect with a WS. I'd tried that with natives functions: $web_service="http://url_of_the_webservice.asmx?WSDL<http://url_of_the_webservice.asmx/?WSDL ...
    Ignacio Marín HernándezIgnacio Marín Hernández
    Aug 19, 2011 at 7:53 am
    Aug 19, 2011 at 10:47 am
  • For example when I do: strlen(array(1,2,3)); php shows: Warning: strlen() expects parameter 1 to be string, array given in... but when I do: count('string'); It simply returns 1 like nothing ...
    Rsk82Rsk82
    Aug 16, 2011 at 2:29 pm
    Aug 16, 2011 at 3:18 pm
  • I have a select menu created by a foreach loop. I am trying to validate that there was a selection made before it is submitted to the database. But I am not doing something correctly. <select ...
    Chris StinemetzChris Stinemetz
    Aug 12, 2011 at 3:42 pm
    Aug 14, 2011 at 10:22 pm
  • In the interest of clarity and maintainability I would like to be able to write code that makes it clear what kind of arguments a function expects and what it returns. This is what I tried: function ...
    Frank ThynneFrank Thynne
    Aug 10, 2011 at 1:15 am
    Aug 10, 2011 at 8:48 am
  • I am trying to pass text strings from on page to a next to populate the queries on the passed to page. The only way I can get the query to work is if I am able to put single ticks around the string ...
    Chris StinemetzChris Stinemetz
    Aug 9, 2011 at 4:58 am
    Aug 9, 2011 at 1:26 pm
  • Hello all, I am currently researching security best practices/methods. Can anyone offer any current resources/recommendations? My research thus far has included password hashing with ...
    Jen RasmussenJen Rasmussen
    Aug 8, 2011 at 2:08 pm
    Aug 8, 2011 at 4:10 pm
  • Hey all, I get the basics of submitting a form and organizing the $_POST data within arrays (name[], name[key], etc). But if I wanted to submit something like multiple addresses and have it end up ...
    Jamie KrasnooJamie Krasnoo
    Aug 4, 2011 at 5:18 pm
    Aug 4, 2011 at 8:19 pm
  • Hi, Got so excellent and fast help last time so trying again here I have the below function with array for satus of issues where I need to have 'Resolved/Closed' visible but not available for choice ...
    RobertRobert
    Aug 31, 2011 at 8:37 am
    Aug 31, 2011 at 9:17 pm
  • Is it possible to concatenate a string and an element from a mysql_fetch_assoc array? I haven't had much luck searching google. Such as concatenating "results" with ' . $posts_row['store_tptest'] . ' ...
    Chris StinemetzChris Stinemetz
    Aug 11, 2011 at 4:03 am
    Aug 11, 2011 at 12:49 pm
  • I've inherited a bunch of code and the previous developers have done two things that are really bugging me and I want to clean up. [a] They use short-tag "<?" instead of "<?php". Anyone have some ...
    Daevid VincentDaevid Vincent
    Aug 9, 2011 at 11:40 pm
    Aug 10, 2011 at 10:45 pm
  • Hi there, I am trying to find a solution for decoding the same string from 2 different character sets (UTF-8, Latin-1) Looks like in the case of latin-1 I need to add utf8_encode before to get the ...
    Merlin MorgensternMerlin Morgenstern
    Aug 30, 2011 at 12:01 pm
    Aug 30, 2011 at 12:41 pm
  • I am trying to figure out if it is possible to have PHP work within an XML document. The application is tracking RSS subscribers IP addresses within the database. I have wrote functions so the PHP ...
    Ron PiggottRon Piggott
    Aug 25, 2011 at 2:07 pm
    Aug 25, 2011 at 2:16 pm
  • Hey gang, Wondering where the installer for php 5.3 on Windows is? Not seeing it here: http://windows.php.net/download/ Any clues appreciated, -nathan
    Nathan NobbeNathan Nobbe
    Aug 23, 2011 at 10:06 pm
    Aug 24, 2011 at 9:55 am
  • Hi, I wrote stuff with file_put_contents() in a try{} catch{} and it worked. Then I'd like to check what happens when some error occurs so I writeprotected the targetfile. Instead of getting my own ...
    AndreasAndreas
    Aug 20, 2011 at 4:51 am
    Aug 20, 2011 at 5:54 am
  • Hello, NEWBIE: I have a security question: When working with PHP and MySQL, it seems that a one method is to create a connection.php page to the database that will store the connection parameters ...
    DealTekDealTek
    Aug 20, 2011 at 12:52 am
    Aug 20, 2011 at 4:35 am
  • Thank you in advance for your input on my question here . I am currently running PHP 5.1.6 and would prefer to set both the secure and httpOnly flags for a session cookie, however, httpOnly is not ...
    Jen RasmussenJen Rasmussen
    Aug 16, 2011 at 5:01 pm
    Aug 16, 2011 at 6:59 pm
  • Hi, I'm fairly new to PHP but not to programming as such. Currently I sat up XAMPP with xdebug, Netbeans and Eclipse to get a feeling. I can write and run php-files but I am wondering how I should ...
    AndreasAndreas
    Aug 15, 2011 at 10:38 pm
    Aug 16, 2011 at 9:21 am
  • But can you put a <pre </pre inside a table cell? (I don't know that you can't, but it seems an odd thing to do). -- Cheers -- Tim
    Tim StreaterTim Streater
    Aug 10, 2011 at 9:49 pm
    Aug 10, 2011 at 10:11 pm
  • I'm trying to pass a hidden value with my form submission. Not sure what I am doing woring, but the value is not being passed. Query is___ $query = "SELECT id, store_name FROM store_list WHERE ...
    Chris StinemetzChris Stinemetz
    Aug 8, 2011 at 9:23 pm
    Aug 8, 2011 at 9:35 pm
  • Hullo list Like so many of those asking questions I'm new to PHP (in fact, new to programming altogether - I'm a medical doctor in my "other" life). Some of what I show below is very likely ...
    David GreenDavid Green
    Aug 6, 2011 at 1:15 pm
    Aug 7, 2011 at 6:35 am
  • I have to sql statements in functions to use in my code. Even though the echo statements show the sql is valid the sql does not seem to execute and I get the error, "PHP Warning: pg_fetch_object() ...
    Marc FrommMarc Fromm
    Aug 5, 2011 at 7:09 pm
    Aug 5, 2011 at 8:15 pm
  • Hello, im new to the whole storing sessions thing and I really dont know how to ask this question, but here it goes. So on my site when someone logs in the login.php file checks for a the username ...
    Wil primWil prim
    Aug 5, 2011 at 2:27 am
    Aug 5, 2011 at 6:35 am
  • I have a php script with a simple condition. If it is not satisfied I want to exit the script otherwise I want to continue. I am having difficulties getting it to work. The script is just exiting.. ...
    Chris StinemetzChris Stinemetz
    Aug 5, 2011 at 3:34 am
    Aug 5, 2011 at 4:00 am
  • Say Jim, Why don't you pick it up as mail like the rest of us? -- Cheers -- Tim
    Tim StreaterTim Streater
    Aug 4, 2011 at 3:14 pm
    Aug 4, 2011 at 10:05 pm
  • For a long time I wanted keyword parameters in PHP. But thanks to newer features like traits and reflection classes I have come up with something that looks pretty close. trait KeywordConstructor { ...
    RenRen
    Aug 2, 2011 at 5:45 am
    Aug 4, 2011 at 4:07 pm
Group Navigation
period‹ prev | Aug 2011 | next ›
Group Overview
groupphp-general @
categoriesphp
discussions90
posts424
users119
websitephp.net

119 users for August 2011

Tamouse: 20 posts Chris Stinemetz: 19 posts Richard Quadling: 17 posts Negin Nickparsa: 15 posts Ashley Sheridan: 14 posts Andre Polykanine: 11 posts Jen Rasmussen: 10 posts Sharl.Jimh.Tsin: 10 posts Alex Nikitin: 9 posts Daniel P. Brown: 9 posts Jim Giner: 9 posts Tim Streater: 9 posts Daniel Brown: 8 posts Donovan Brooke: 8 posts Wil prim: 8 posts Andrew Ballard: 7 posts John Black: 7 posts Merlin Morgenstern: 7 posts Stuart Dallas: 7 posts EasyPHP: 6 posts
show more
Archives