Re: [PHP] MS SQL extension not loading
Hello Richard, Check the "php.ini" setting in the top portion to see where php.ini MUST BE for it to be read. It is telling me: Configuration File (php.ini) Path C:\WINDOWS Step #2: Find your php.ini file, and MOVE it to where phpinfo() wants it to be. I have my php.ini at C:\WINDOWS\PHP.ini. Step #3 In php.ini look at the "extensions_dir" setting. Fix it. extension_dir = "C:\PHP\ext" which is correct. Step #4. Compare version numbers of your mssql_php.dll and the version of PHP you are running. You CANNOT mix-n-match old DLLs with new PHP and vice versa. It will sometimes "work" until you happen to use the one function that CHANGED between versions. php_mssql.dll version is 5.1.2.2 PHP version is 5.1.2 Looks okay. If you just went out and found some random mssql_php.dll to throw in the directory, it is NOT going to work. Well, I installed PHP manually, as described in install.txt. The file I have downloaded was php-5.1.2-Win32.zip 9,140,593 bytes It was released on 12 Jan 2006. This is the official latest stable version, and it had all of the extensions packaged together with php.exe. I used the same one on my home computer and it worked. I think this can't be the problem. Step #4a Check your log files. I'm assuming ISS actually HAS logfiles... It must have, right? Might be in system events log. Might be in an "error_log" file next to your IIS web traffic logs. Knowing Microsoft, it might be *ANYWHERE*... Yes, you are right. The event log contains some error entries telling me this: Faulting application w3wp.exe, version 6.0.3790.1830, faulting module unknown, version 0.0.0.0, fault address 0x01b3e8e0. For more information, see Help and Support center at http://go.microsoft.com/fwlink/events.asp The above link contains the text "We're sorry There is no additional information about this issue in the Error and Event Log Messages or Knowledge Base databases at this time. You can use the links in the Support area to determine whether any additional information might be available elsewhere." Yes, this is tipical Microsoft. I had to figure out that the logfiles for my website in under c:\windows\system32\logfiles\W3SVC848989038\ Don't ask me why. :-) Unfortunately, the logfile does not help, because it DOES NOT log out php error messages. For example, if I have an error in my php script, this is all I get: 2006-04-11 16:43:04 127.0.0.1 GET /info.php =PHPE9568F34-D428-11d2-A769-00AA001ACF42 9000 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 200 0 0 I'm guessing that you might find an error message about the mssql_php.dll being the wrong version... Hmm. I also tried to load it with the dl() function, but then I got an error: "Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=php_mssql in your php.ini in C:\Inetpub\vtracks_server\info.php on line 2" Step #5. Switch to a superior web server: Apache :-) I wish I could. Step #6. Switch to a superior OS like Linux or FreeBSD :-) :-) :-) Yes, I would like to. The problem is that I cannot. I got detailed instructions and my boss wants to run this on IIS6 and Windows. I might be able to ask him to use apache. That would be wonderful. It is strange that I have a test server which is almost the same (Win2003 server, IIS6 and PHP 5.1.2) and it works here. :-/ Thank you for your help. Laszlo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help with multidimentional arrays
On 4/11/06, Bing Du <[EMAIL PROTECTED]> wrote: > == > foreach ($sponsor_id as $sponsor => $arr) > echo "$sponsor:"; > foreach ($arr[$sponsor] as $project) { > echo "$project"; > } > == > It looks like you're building your array just fine. Here though, your second foreach needs to look like this: [code] foreach ($arr as $project) { echo "$project"; } [/code] Your temprorary $arr variable contains only your array of titles, not an entire row of your 2-dimensional $sonsor_id array. So you do not need to use the $sponsor key to get at that array. HTH, John W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Dynamic array_merge problem
Hi, This is the end result I'm trying to get: $z1 = array_merge($z[0], $z[1], $z[2]); But what if I don't know how many elements are in $z? I tried this (but it breaks if there are more than 2 elements in $z): for ($i=0; $i
Re: [PHP] Dynamic array_merge problem
Hi if you just want to sort of concatenate your arrays then why not just loop through the whole thing in order to get the new single array. Need more info for further consideration. Hope this helps! for ($i=0;$ihttp://www.purewebsolution.co.uk PHP, MYSQL, Web Design & Web Services "Ace McKool" <[EMAIL PROTECTED]> wrote: > Hi, > > This is the end result I'm trying to get: > > $z1 = array_merge($z[0], $z[1], $z[2]); > > But what if I don't know how many elements are in $z? I tried this (but it > breaks if there are more than 2 elements in $z): > > for ($i=0; $i { > if ($i<(count($z)-1)) > { > $z1 = array_merge($z[$i], $z[$i+1]); > } > } > > Any pointers would be greatly appreciated! TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Dynamic array_merge problem
This worked wonderfully--thank you very much Jochem! On 4/12/06, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Ace McKool wrote: > > Hi, > > > > This is the end result I'm trying to get: > > > > $z1 = array_merge($z[0], $z[1], $z[2]); > > $yourArrays = array($z[0], $z[1], $z[2]); > $z1 = call_user_func_array('array_merge', $yourArrays); > > obviously - you have to build $yourArray before passing it > to call_user_func_array() >
[PHP] plain text email message format
Greetings All, Is the code below the correct way to 'build' the message for plain text email? $message = "Message From: ".$firstName. " " .$lastName." First Name: ".$firstName." Last Name: ".$lastName." Address: ".$address." Home phone: ".$homePhone." Best time to contact: ".$bestTime." Email: ".$email."; Thanks! -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Business.Solution.Developers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] plain text email message format
[snip] Is the code below the correct way to 'build' the message for plain text email? $message = "Message From: ".$firstName. " " .$lastName." First Name: ".$firstName." Last Name: ".$lastName." Address: ".$address." Home phone: ".$homePhone." Best time to contact: ".$bestTime." Email: ".$email."; [/snip] Yes. And no. http://www.php.net/manual/en/function.mail.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] plain text email message format
I use $message ="Message From: $firstname $lastname First Name: $firstname Last Name: $lastname . "; Wolf Schalk wrote: > Greetings All, > > Is the code below the correct way to 'build' the message for plain text > email? > > $message = "Message From: ".$firstName. " " .$lastName." > First Name: ".$firstName." > Last Name: ".$lastName." > Address: ".$address." > Home phone: ".$homePhone." > Best time to contact: ".$bestTime." > Email: ".$email."; > > Thanks! > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help with multidimentional arrays
> On 4/11/06, Bing Du <[EMAIL PROTECTED]> wrote: >> => foreach ($sponsor_id as $sponsor => $arr) >> echo "$sponsor:"; >> foreach ($arr[$sponsor] as $project) { >> echo "$project"; >> } >> => > > It looks like you're building your array just fine. Here though, your > second foreach needs to look like this: > > [code] > foreach ($arr as $project) > { > echo "$project"; > } > [/code] > > Your temprorary $arr variable contains only your array of titles, not > an entire row of your 2-dimensional $sonsor_id array. So you do not > need to use the $sponsor key to get at that array. > Thanks so much for pointing out that error on $arr, John. You are very right. Now I realize it's such an obvious error. But I did not notice it before I posted. Bing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] plain text email message format
Schalk wrote: Greetings All, Is the code below the correct way to 'build' the message for plain text email? $message = "Message From: ".$firstName. " " .$lastName." First Name: ".$firstName." Last Name: ".$lastName." Address: ".$address." Home phone: ".$homePhone." Best time to contact: ".$bestTime." Email: ".$email."; Thanks! just look at the MIME content type of the email that you are sending out: HTML: Content-Type: text/html; charset = "iso-8859-1" Plain Text: Content-Type: text/plain; charset = "iso-8859-1" hope this helps. By the way this gets set in the header. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Hiding text?
Hello, How can I hide error message when user enters to POST action form for first time? I have a form for collecting and saving user data. In the code below you can see that there are text messages for user info stored in $teksti variables. At the end the $teksti is passed to function that displays the message. Problem is that when user enters the page for firs time the variables are empty and therefore basically the decisions made with variable values result to error message at the first time. Thanks for your advice -Will Here's code: if ($ryhma != 'Valitse:' && $ryhma != ''){ if ($ikaluokka != ''){ $sql="SELECT ikaluokka FROM x_ikaluokat WHERE ryhma = '$ryhma'"; $result=mysql_query($sql); $num = mysql_num_rows($result); $cur = 1; if ($num == '0'){ $check = "ok"; } while ($num >= $cur) { $row = mysql_fetch_array($result); $il = $row["ikaluokka"]; if ($il == $ikaluokka){ $teksti = "Virhe! Samanniminen ikäluokka on jo tässä ryhmässä."; $check = "bad"; } else { $check = "ok"; } $cur++; } if ($check == "ok"){ $sql_lauseke = "INSERT INTO x_ikaluokat (ryhma, ikaluokka) VALUES ('$ryhma','$ikaluokka')"; if (!$kysely = mysql_query($sql_lauseke,$yhteys)){ $teksti = "Virhe: " . mysql_error(); unset($ryhma); unset($ikaluokka); } else { $teksti = "Tallennus onnistui."; unset($ryhma); unset($ikaluokka); } } } else { $teksti = "Virhe! Ikäluokka puuttuu. Tarkista tiedot."; } } else { $teksti = "Virhe! Ryhmä puuttuu. Tarkista tiedot."; } UserMessage ($teksti); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Hiding text?
William Stokes wrote: Hello, How can I hide error message when user enters to POST action form for first time? I have a form for collecting and saving user data. In the code below you can see that there are text messages for user info stored in $teksti variables. At the end the $teksti is passed to function that displays the message. Problem is that when user enters the page for firs time the variables are empty and therefore basically the decisions made with variable values result to error message at the first time. Thanks for your advice -Will Here's code: .. UserMessage ($teksti); try something like: if (isset($teksti) && $teksti) { UserMessage ($teksti); } also note you check for the existance of the $_POST superglobal to determine if the user actually submitted a post. e.g.: if (isset($_POST) && is_array($POST) && !empty($_POST)) { // somebody submitted something from somewhere. } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CURLOPT_BINARYTRANSFER
Richard Lynch wrote: Can anybody expand on the meaning and correct usage of: hi Richard, been following your ordeal from a far, sorry to say I have nothing useful to add regarding the curl problem ... but I was wondering if a fopen() or file_get_contents() in conjunction with allow_url_fopen wouldn't be a way to side step the problem? rgds, Jochem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] regular expressions or something else?
On 4/12/06, Chris Westbrook <[EMAIL PROTECTED]> wrote: > I have a problem. I'm trying to get a Google search results page via snoopy > and then display the links of the results it returns in an application. I > know about the fetchlinks function in snoopy, but I'm having trouble getting > the text between the and tags. Yeah, I know, I should use the > Google API, but my client doesn't want me doing that, probably because they > might have to pay for that. any suggestions? Try this, and read up on regular expressions - it's an essential knowledge if you're a programmer. $text = "this is where the contents of your search result page goes"; preg_match_all('|]*href="([^"]+)"[^>]*>([^<]+)<\/a>|U', $text, $links, PREG_SET_ORDER); print_r($links); -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CURLOPT_BINARYTRANSFER
On Wed, April 12, 2006 11:28 am, Jochem Maas wrote: > Richard Lynch wrote: >> Can anybody expand on the meaning and correct usage of: > > hi Richard, > > been following your ordeal from a far, sorry to say I have > nothing useful to add regarding the curl problem ... but I was > wondering if a fopen() or file_get_contents() in conjunction > with allow_url_fopen wouldn't be a way to side step the problem? I need the cookies and all that... It's an anti-CAPTCHA ocr research thang... I think my next step is to figure out how to run PHP source under a debugger. Yikes. It's been 20+ years since I've done that kind of thing... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] IIS,Apache
Hi, I've been working on PHP using windows IIS as web server but now that I moved to Linux I'll use APACHE 2.x I read about and every where I see that apache improves PHP I would like to now specifics cases Can anyone help me with this, please? Anybody got a clue to lend? Thanks, Norman Huasebe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] internationalization of web site
Ussually, the browsers send a header with information about the language preferences of the user. This header is HTTP_ACCEPT_LANGUAGE. You can retrieve its value in PHP through the array $_SERVER: $_SERVER['HTTP_ACCEPT_LANGUAGE'] Here you can find about the format of this header: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4 Alain Roger wrote: Hi, Sorry to send this email on both mailing lists but as i suppose that both are concerned by it, i did. i would like to make my web site tune to user language. for that i was thinking to create some XML files where all words can be found and based on the icon (country flag) that user clicked, i will load a specific XML file to tune my PHP pages. i know from Java exprience that it exists also another possibility via browser setup for preference in language, but i do not know how it works in PHP. please, could you give me some tips, helps, or tutorial for such request ? thanks a lot, Alain -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] C Debugger?
Can anybody recommend a good C debugger fitting the following criteria: FreeBSD 5.3 command-line based (no X) intuitive enough for a guy who hasn't touched C in 20 years to not fail plays well with PHP source C code/macros installable and runnable by non-root user TIA! -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] MS SQL extension not loading
Maybe this was already asked, but are you running 64bit Windows Server 2003 on that box? I've heard there's some wonkiness getting PHP and the various extensions to work on 64bit Windows. > c:\windows\system32\logfiles\W3SVC848989038\ > Don't ask me why. :-) All IIS logfiles -- be they HTTP, FTP, or whatever -- go under \Windows\System32\LogFiles. The W3S... folder is named based on the site ID from IIS. You are either running multiple webs on that box, or you deleted the default web and recreated it at some point. I, too, run on the WIMP platform (Windows, IIS, MySQL, PHP). Heh. Tim. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CURLOPT_BINARYTRANSFER
Richard Lynch wrote: On Wed, April 12, 2006 11:28 am, Jochem Maas wrote: Richard Lynch wrote: Can anybody expand on the meaning and correct usage of: hi Richard, been following your ordeal from a far, sorry to say I have nothing useful to add regarding the curl problem ... but I was wondering if a fopen() or file_get_contents() in conjunction with allow_url_fopen wouldn't be a way to side step the problem? I need the cookies and all that... It's an anti-CAPTCHA ocr research thang... I feared as much. I think my next step is to figure out how to run PHP source under a debugger. Yikes. It's been 20+ years since I've done that kind of thing... a trial version of Zend Studio Server in combination with a trial version of Zend Studio Client will be a very pleasant surprise for most debugging tasks - so much so that you might find you do want to go back to what you were using (i.e. I really think the money is worth it) BUT the segfault issues you are having probably won't be tackled by that alone, which means setting up a version of apache with debug symbols and a debug build of php ... not exactly easy to setup (imho) and then install gdb and run apache through that - I have managed to do it in the past based on advice/tips given by none other than Rasmus himself (I can't remember exactly where but I'm pretty sure it was in relation to using/debugging APC - regardless a quick google/yahoo should turn up something useful :-) good luck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] C Debugger?
Richard Lynch wrote: Can anybody recommend a good C debugger fitting the following criteria: FreeBSD 5.3 command-line based (no X) so far: gdb intuitive enough for a guy who hasn't touched C in 20 years to not fail plays well with PHP source C code/macros er? (coming from a guy that's never more than looked at C) installable and runnable by non-root user don't know if that will be possible. and unless your running php as CLI then you'll hsve to attach apache to the debugger which requires stopping apache and then starting it via the debugger... not something you can usually do as any other than root (as you know :-) TIA! you certainly know how to ask bad-ass questions don't you ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Framework alternative ...
no question here but for anyone wanting a totally different take on php frameworks and some killer code examples take a look at this: http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html in the immortal words of Quake3Arena: 'Impressive' :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Framework alternative ...
On Wed, 2006-04-12 at 16:21, Jochem Maas wrote: > no question here but for anyone wanting a totally different take > on php frameworks and some killer code examples > > take a look at this: > http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html Rasmus is just suggesting you build your own framework instead of using someone elses framework. That way you have the ideal framework for your own needs by the time you have sufficient projects. That's how most of us got started on our framework *lol*. Nothing new to see here... just word mashing to make you think it's not a framework. Out of curiosity, I'm curious where Rasmus stands on Zend's framework? Or is he not a part of that process? Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Framework alternative ...
Robert Cummings wrote: On Wed, 2006-04-12 at 16:21, Jochem Maas wrote: no question here but for anyone wanting a totally different take on php frameworks and some killer code examples take a look at this: http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html Rasmus is just suggesting you build your own framework instead of using someone elses framework. That way you have the ideal framework for your own needs by the time you have sufficient projects. That's how most of us got started on our framework *lol*. Nothing new to see here... just word mashing to make you think it's not a framework. oh I got all that alright, I just chucked in the word 'framework' because: a. I saw a couple of general questions regarding frameworks the last couple of days/weeks. b. it's garanteed to stir the pot so to speak ;-) Out of curiosity, I'm curious where Rasmus stands on Zend's framework? Or is he not a part of that process? I second that, and if anyone in the know cares to comment on whether: a. php will actually implement static late binding b. Zend Framework's 'DataObject' class will make use of said late binding to do cool things like Person::findAll( $myFilter ) with out having to actually implement a findAll method in the Person class (i.e. using a single generic findAll method defined in whatever DataObject class Person is derived from ). ... please do :-) I must say that I have questions regarding the 'real' reasons behind development of the ZF and also question (given the current state/contents of ZF) whether it's not destined to be JAFW ... not that that's necessarily a bad thing (plenty of code already in ZF that serves as an excellent primer for how to write decent [OO] code if nothing else :-) given your InterJinn codebase you no doubt have an opinion about ZF too, dare to give your take on it? Cheers, Rob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Framework alternative ...
On Wed, 2006-04-12 at 19:23, Jochem Maas wrote: > Robert Cummings wrote: > > I must say that I have questions regarding the 'real' reasons behind The most plausible real reason is to give Zend's name to a framework that will possibly rally interest behind a single framework rather than the multitude currently in existence. it will probably work more or less since they will probably be packaged with PHP (unless they are going to commercialize it -- in which case it will probably gain moderate corporate uptake and be JAFW :). > development of the ZF and also question (given the current state/contents of > ZF) > whether it's not destined to be JAFW ... not that that's necessarily a bad > thing (plenty of code already in ZF that serves as an excellent primer for > how to write decent [OO] code if nothing else :-) > > given your InterJinn codebase you no doubt have an opinion about ZF too, > dare to give your take on it? My InterJinn framework works exceptionally well for me and for my customers. it was never wildly adopted, but then the free license is probably overly restrictive and the philosophy behind it isn't your run of the mill OOP (I use a service registry system). Regardless of what happens, InterJinn has one of the most non-intrusive footprints when it comes to general PHP code. I've had little trouble hooking it into or wrapping it around other frameworks and codebases. Additionally with the way it processes templates, I've been known to wrap other frameworks' templates and source code within TemplateJinn so that I can get at the custom tag functionality (I don't lose out on processing time since TemplateJinn compiles templates to PHP source, and compiled templates don't need to include InterJinn :) Either way, for me, ZF will be JAFW. If it has good stuff, I'll use it, I'll wrap it, I'll 0wn it -- but that's how any chunk of code should work :D Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Framework alternative ...
Jochem Maas wrote: a. php will actually implement static late binding b. Zend Framework's 'DataObject' class will make use of said late binding to do cool things like Person::findAll( $myFilter ) with out having to actually implement a findAll method in the Person class I have read indications that this will eventually happen. For example, read Mike's comment here (scroll down): http://blog.joshuaeichorn.com/archives/2006/01/09/zactiverecord-cant-work/ From my perspective, it's not a big deal. What is a big deal to me is whether ZF will have an ORM solution at all. At the moment, it does not. I must say that I have questions regarding the 'real' reasons behind development of the ZF and also question (given the current state/contents of ZF) whether it's not destined to be JAFW I can only speculate like anyone else, but I feel like Zend's motivation is based on several things: 1. It wants PHP to remain competitive among J2EE and .NET. PHP's growth has been impressive for many years, but it seems like it's just now penetrating the "enterprise" companies. (Enterprise basically means large companies with more money than technical competence.) 2. Its customers have been demanding a supported component library and framework. Zend needed to develop this, so it could either choose the closed source or open source development model. It chose the latter. 3. Its customers demand IP accountability, because integrating projects with PHP is vastly different from using the PHP engine in terms of IP concerns. Thus, the CLA. It may be JAFW (just another framework, for anyone feeling left out), and in a way, I think Zend will consider that to be a failure. Given its ability to be used with other frameworks and/or component libraries, I think the ZF is good for PHP as a whole, regardless of whether it becomes any sort of standard. JAFW isn't so bad. :-) Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] var_dump($POST)
Hello, var_dump($POST) returns now always NULL. Before it returned the POST variables and their values like it should, right? Is there something that the operator could have done in the server that causes this? Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] var_dump($POST)
On Apr 13, 2006, at 12:16 AM, William Stokes wrote: Hello, var_dump($POST) returns now always NULL. Try var_dump($_POST); Note the underline between $ and P. Al Padley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] var_dump($POST)
oooppps :) sorry about that one... "Albert Padley" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > > On Apr 13, 2006, at 12:16 AM, William Stokes wrote: > >> Hello, >> var_dump($POST) returns now always NULL. > > Try var_dump($_POST); > > Note the underline between $ and P. > > Al Padley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] var_dump($POST)
William Stokes wrote: Hello, var_dump($POST) returns now always NULL. Before it returned the POST variables and their values like it should, right? Is there something that the operator could have done in the server that causes this? try var_dump($_POST); The superglobals (except for 'global' for some reason) are $_ - ie $_GET, $_SESSION and so on. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] preventing duplicate rows?
Hello, I'm updating a table with following SQL statement $sql = "INSERT INTO x_ikaluokat (ryhma, ikaluokka) VALUES ('$ryhma','$ikaluokka')"; What would be the best way to test that similar rows doesn't get created to the table? I can't make both columns unique. Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php