Re: [PHP] Forms in PHP

2002-04-12 Thread Erik Price
e appreciated. > > if(($type == book) or ($type == weapon)){ ^^ I could be completely wrong here, but shouldn't these values be quoted? Even if it's not what's screwing up your code, it's probably a good idea unless they are s

Re: [PHP] displaying form data

2002-04-12 Thread Erik Price
was contained by a variable called $navigation_column, then my class would do something like: $template_page = "./includes/site_template.inc"; str_replace("{{{NAVIGATION}}}", $navigation_column, $template_page); This is oversimplified and wouldn't really work (you nee

Re: [PHP] Wanting a better understanding of classes in PHP...

2002-04-12 Thread Erik Price
. Once you've read a bit more about it, read the PHP manual pages on OOP and try it out. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] embedd avi into page?

2002-04-12 Thread Erik Price
yer.. Nope, not a PHP question. Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IMPORTANT question for anyone using XSLT

2002-04-12 Thread Erik Price
ovided. I haven't actually found a general PHP->XSLT reference (for instance, the PHP man pages on a lot of the XSLT functions seem unfinished). Do you know of a resource I can go to learn more? Thanks, Erik > I do this all the time. > > ie: $addl_buffers['

Re: [PHP] update entries in a table

2002-04-12 Thread Erik Price
e_sql = "UPDATE tablename SET tablename.columname = '$value'"; if (!mysql_query($update_sql, $db)) { die("Could not process update SQL query"); } Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing Lis

Re: [PHP] update entries in a table

2002-04-12 Thread Erik Price
On Friday, April 12, 2002, at 05:35 PM, Erik Price wrote: >> How do I update entries in MySQL? Say for example, I checked some >> fields to >> a table, and decided to make update to a particular field. How do I do >> that >> in PHP? > > // $db = datab

Re: [PHP] quotes

2002-04-12 Thread Erik Price
Read the man pages for addslashes() and stripslashes() at www.php.net for information on their usage. You may also be able to set the gpc_magic_quotes setting in your php.ini on your server, but using addslashes() and stripslashes() allows you to fine-tune your control. Erik Erik

Re: [PHP] session_is_registered

2002-04-15 Thread Erik Price
ou don't need to use a string constant ('bar'), you could use another variable to make $_SESSION['foo'] refer to the same thing, as in: You can access this new session variable in the way you might expect, by using $_SESSION['foo']. Erik Erik Pr

Re: [PHP] XHTML tag attribute quoting (Was Re: Forms in PHP)

2002-04-15 Thread Erik Price
tes (and vice versa). To the best of my knowledge, the following is fine XML/XHTML: ... Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] globals in functions

2002-04-15 Thread Erik Price
individualy. If you refer to a POST or GET (or COOKIE or SESSION or SERVER) variable as $_POST['variablename'] or $_GET['variablename'], then it will automatically be global. In PHP 4.1.x or later Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROT

Re: [PHP] Internet Explorer - BACK Button - Passwords?

2002-04-15 Thread Erik Price
put the user's input as the "value" of my HTML form inputs. Here's an extremely simple example of such a function: function print_simpleform() { $simple_form = " \n"; return $simple_form; } Of course, you can get far more complex and have functions that do this but use da

Re: [PHP] Remote file does not return var?

2002-04-15 Thread Erik Price
ng the including. So, any variables that were available in your included file are now included in your script, although they are not "returned" in the sense that you are hoping for. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Ma

Re: [PHP] register_shutdown_function

2002-04-15 Thread Erik Price
if your object is unset(). This is according to: http://www.php.net/manual/en/language.oop.constructor.php , down at the bottom just before the annotations. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.ph

Re: [PHP] Detecting language

2002-04-15 Thread Erik Price
But since the trend appears to be in moving toward Unicode, the "official" distinction of an English character vs any other language's character is becoming blurry -- at least in the field of information delivery. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EM

Re: [PHP] chown ..opperation not permitted

2002-04-15 Thread Erik Price
quot;apacheuser") and under some other group (like "apachegroup"). Several other systems run under "nobody" on most Unix systems, so you could compromise those if "nobody" is compromised. Erik (somebody) Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] chown ..opperation not permitted

2002-04-15 Thread Erik Price
has access to it as well. Whether or not "nobody" has permission to change the ownership of a file to someone else is another matter entirely. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] chown ..opperation not permitted

2002-04-15 Thread Erik Price
doing what you want. Yes, I wouldn't give "nobody" privileges to do anything with sudo. You're better off making "nobody" a member of the same group as the other user, and using chgrp. erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTE

Re: [PHP] calculating US holidays

2002-04-15 Thread Erik Price
On Monday, April 15, 2002, at 03:17 PM, Tom Beidler wrote: > I need to calculate the date to see if it's a holiday, i.e. is today > presidents day No, today is Patriot's Day! Not sure if it's celebrated outside of Massachusetts.... Erik Erik Price Web Dev

Re: [PHP] RE: Php connection with mysql?

2001-11-28 Thread Erik Price
Basically, you don't "log on to mysql" through the internet browser. You are using the internet browser only to request a file that is on a web server. The web server is handing the request to PHP, and PHP is accessing the MySQL database. PHP is accessing MySQL as whatever host and user has

Re: [PHP] RE: Php connection with mysql?

2001-11-28 Thread Erik Price
find this a bit misleading. Yes, I did too -- but I thought that I would use the questioner's own statement to confirm what I was saying. Simply that the privilege tables have NOTHING to do with the browser. Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

Re: [PHP] php without the php.ini

2001-12-03 Thread Erik Price
f you're appending a wildcard to your search ( 'php.ini*' ). Erik On Friday, November 30, 2001, at 10:40 PM, Paul Warner wrote: >> Hi, >> How can PHP work without the php.ini file? I have tried to find the > php.ini >> file on a RAQ3, to no success. Looki

Re: [PHP] How to set file extension php Mac OSX and PHP 4.0.6

2001-12-03 Thread Erik Price
macs /etc/httpd/httpd.conf" if you are not logged in as root because it is not writeable by normal users. Erik On Sunday, December 2, 2001, at 04:15 PM, René Fournier wrote: > OK, that makes sense--that's what I did under WinME. The only problem > is that I can't

Re: [PHP] PHP newbie alert

2001-12-04 Thread Erik Price
I'm poor and it's pretty good (a tiny bit buggy on OS X). There's actually an emacs for OS X that I haven't gotten around to trying yet, maybe I'll give the compile a shot tonight. Erik On Tuesday, December 4, 2001, at 07:50 PM, Andrew Forgue wrote: > > I myse

Re: [PHP] Mac OSX and MySQL

2001-12-05 Thread Erik Price
add the "--with-mysql" configure option because this tutorial doesn't assume that you want to install MySQL. Any questions, email me. Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: Mac OSX and MySQL

2001-12-05 Thread Erik Price
.html It tells you how to create a user. Erik PS: don't use System Preferences' "Users" to make dummy users for MySQL and other services. On Wednesday, December 5, 2001, at 10:04 AM, René Fournier wrote: >>> I have to create a MySQL for my PHP scripts. How do I do

Re: [PHP] PHP & XML

2001-12-07 Thread Erik Price
I thought that short tags were illegal in XHTML and XML. But I could be wrong. On Friday, December 7, 2001, at 01:53 PM, Steve Haemelinck wrote: > Hi Guys > > I am developing with PHP and XML. Now I experience some problem with the > processing instructions of xml () > which causes PHP to retu

[PHP] non-browser PHP downloading?

2001-12-11 Thread Erik Price
f the wget attempts I make yield any files. I'm trying to download PHP 4.1.0 ... source tarball (intended for x86 Linux). Thanks to any who can help. Erik = Microsoft e[X]tra [P]roprietary -- Is this where you really wanted to go today ? -- http://www.redhat.com/about/o

Re: [PHP] non-browser PHP downloading?

2001-12-11 Thread Erik Price
where I can just wget the source? --- Miles Thompson <[EMAIL PROTECTED]> wrote: > > Open up a console and use lynx. > Miles Thompson > > At 06:26 PM 12/11/2001 -0800, Erik Price wrote: > >Is there a way to download PHP without clicking the link in my > browser? >

Re: [PHP] non-browser PHP downloading?

2001-12-12 Thread Erik Price
OH. no one told me that it was called "links" !!! I thought it was "Lynx". Either way, I found /usr/bin/links and have finally been successful in the download. On to the compile !! Erik PS: So the only way to get the PHP source is through the web site? I didn&#

Re: [PHP] Beginner's CURL

2001-12-13 Thread Erik Price
I asked this question three times this week!! :) http://marc.theaimsgroup.com/?l=php-general&m=100817196924450&w=1 No BFD. I discovered /bin/links in the process and that worked for the download. -- Erik On Wednesday, December 12, 2001, at 09:40 PM, Rasmus Lerdorf wrote: &g

Re: [PHP] Working with designers...

2001-12-19 Thread Erik Price
Hmm... can you point out to them that there's a similarity between using an external style sheet and using header/footer includes? And that as a coder, it would be your responsibility to maintain these include files, not theirs? Personally, I think .css external style sheets are awesome -- t

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Erik Mathy
rrorism acts. > > Sean C. McCarthy I couldn't agree more. If anybody wants to start a blame game flame war, please take it off list, eh? -- - Erik Mathy Applications Developer @butlerandco.com, inc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

[PHP] What is the PHP5 eqvivalent to domxml_open_mem in PHP4?

2004-07-26 Thread Erik Franzén
The docs for PHP5 and dom xml is not written yet, so I tried to find information about load and save methods on the w3c site, but I didn't find anything. What's is the PHP5 eqvivalent to domxml_open_mem in PHP4? /Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
See the following example: How do I remove an element in the oObjectA array without destroying the object? I do not want to clone any object. If I call unset($oObjectA[3]), the object will also be destroyed. apparently $oObjectB[3] is also destroyed? /Erik -- PHP General Mailing List (http

[PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
I am correcting myself... $oObjectA = array(); $oObjectB = array(); for($i=0;$i<2;$i++) { $oObjectA[$i] = new foo(); $oObjectB[$i] = $oObjectA[$i]; } unset($oObjectA[1]); var_dump($oObjectA); var_dump($oObjectB); ?> will output: array(1) { [0]=> object(foo)#1 (0) { } } array(2) { [0]

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
$oObjectB[$i] = &$oObjectA[$i]; The above statement does not matter, because in PHP5 "objects are referenced by handle, and not by value". Look at this example: $a = new foo(); $b = $a; unset($a); var_dump($b); >? This will output: object(foo)#1 (0) { } The object is not destroyed!? How do I destr

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
Thanxs for the help Curt!! Thats a tricky solution, but it works... This is almost motivating a new method in PHP5: $foo->__destroy() which will destroy the object once and for all... :) /Erik Curt Zirzow wrote: * Thus wrote Erik Franzn: $oObjectB[$i] = &$oObjectA[$i]; The above stateme

[PHP] summarized results

2004-08-25 Thread Erik Meyer
e wrong way this is my baby step at php) If anybody has a better way I would appreciate it, Thank you, Erik Meyer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] summarized results w/function

2004-08-25 Thread Erik Meyer
news_split); echo "$news_story"; } Sorry about that.. -Original Message- From: Erik Meyer [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 1:29 PM To: Php-General Subject: [PHP] summarized results I have a function loosely based on the fol

RE: [PHP] summarized results w/function

2004-08-25 Thread Erik Meyer
] Sent: Wednesday, August 25, 2004 2:42 PM To: Erik Meyer; Php-General Subject: Re: [PHP] summarized results w/function From: "Erik Meyer" <[EMAIL PROTECTED]> > Here is function > > function shorten_news_results ($input_text, $ending_text) { > $news_strip=s

[PHP] Determine if a property in a class is public, protected or private in PHP 5?

2004-08-25 Thread Erik Franzén
Is it possible to determine if a property inside a object is public, protected or private in PHP 5? /Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] interface problem in PHP5

2004-09-04 Thread Erik Franzén
Can anuyone describe this error? Compile Error: E:\Source\CMAES\src\include\dom.inc.php line 67 - Declaration of CMAES_DOM_Node_List::item() must be compatible with that of CMAES_DOM_Node_List_Interface::item() // {{{ interface CMAES_DOM_Node_List /** * * @access public */ interface CMAES_DO

[PHP] Re: interface problem in PHP5

2004-09-04 Thread Erik Franzén
ling example unsetting a will only kill a, b and c will still be "alive". setting a to null will kill c but not b /Erik Torsten Roehr wrote: "Erik franzén" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Can anuyone describe this error? Compile Error: E:\Source

[PHP] Detailed PHP User SPL documentation?

2007-02-24 Thread Erik Franzén
nice, but for better understanding how to use them I am looking for detailed information how to use them. More comprehensive documentation with examples...? Does it exist? Thanks /Erik -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) iQEVAwUBReCDFC7mbizvza/NAQKnkQf/QtYAMGJT6

Re: [PHP] Environment variables...

2007-03-14 Thread Erik Jones
xec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put the variable in /etc/environment, in /etc/profile, in /etc/bash.bashrc but nothing worked... Do you have any idea ? If it is not possible, I suppose I can put a variable in php.ini ? Thank you very much. David. eri

Re: [PHP] Environment variables...

2007-03-14 Thread Erik Jones
king that variable available in you're web server user's env. On Mar 14, 2007, at 9:52 AM, David BERCOT wrote: Le Wed, 14 Mar 2007 09:42:13 -0500, Erik Jones <[EMAIL PROTECTED]> a écrit : Depending on your system and environment (platform and cli v. cgi), they should be

Re: [PHP] Just upgraded to php 5, html emails showing up as text

2007-03-15 Thread Erik Jones
asily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php erik jones <[EMAIL PROTECTED]> sofware developer 615-296-0838 emma(r)

Re: [PHP] Environment variables...

2007-03-15 Thread Erik Jones
web server, it runs as whomever the web server runs as. If you execute the script from a shell (cli), it runs as whatever user you are logged in as... erik jones <[EMAIL PROTECTED]> sofware developer 615-296-0838 emma(r)

Re: [PHP] php bar/graph scripts/library

2007-03-16 Thread Erik Jones
On Mar 15, 2007, at 10:07 PM, Ron Croonenberg wrote: hello all, I am looking for some scripts/libraries etc to produce some bar graphs etc. Does anyone know of something "nice (that works on Linux) There is a graphing library in PEAR called Image Graph that you could check out.

Re: [PHP] a php stats package

2007-03-16 Thread Erik Jones
What kind of stats are you looking for? On Mar 16, 2007, at 10:57 AM, Ross wrote: Can someone recommend one please? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php erik jones <[EMAIL PROTECTED]> software developer 615-296-083

Re: [PHP] a php stats package

2007-03-16 Thread Erik Jones
On Mar 16, 2007, at 11:11 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: Sorry web stats, unique hits, referers all that kind of info. R. - Original Message - From: Erik Jones To: Ross Cc: php-general@lists.php.net Sent: Friday, March 16, 2007 4:10 PM Subject: Re: [

Re: [PHP] Re: _Construct question

2007-03-21 Thread Erik Jones
struct as opposed to using a function with the classname ? Thanks, JC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php erik jones <[EMAIL PROTECTED]> software developer 615-296-0838 emma(r)

Re: [PHP] Re: _Construct question

2007-03-22 Thread Erik Jones
On Mar 21, 2007, at 7:14 PM, Chris wrote: Erik Jones wrote: That's not true, running with v. 5.2.1: Outputs: works On Mar 21, 2007, at 8:06 AM, itoctopus wrote: They're basically the same thing, however, you can only use __construct in PHP5. He meant that __construct() doesn

Re: [PHP] Rewriting urls

2007-03-26 Thread Erik Jones
ction server, but on the development server it don't want to work. I also tried it on a windows machine but it don't want to work there either. Any suggestions/insights? Yep, take this to the mod_rewrite forums @ http://www.modrewrite.com/ as this is a php list :) eri

Re: [PHP] Rewriting urls

2007-03-26 Thread Erik Jones
On Mar 26, 2007, at 1:18 PM, Peter Lauri wrote: On Monday 26 March 2007 19:49:48 Erik Jones wrote: Yep, take this to the mod_rewrite forums @ http://www.modrewrite.com/ as this is a php list :) Thanks. This solved it for me: http://forum.modrewrite.com/viewtopic.php?p=10796#10796 /Peter

Re: [PHP] Re: SNMP support on compile from source FastCGI

2007-03-26 Thread Erik Jones
g.log to see if PHP found the snmp libs or not. Probably not. Also, when you recompile, make sure you at least 'make clean'. 'make distclean' would be good, too erik jones <[EMAIL PROTECTED]> software developer 615-296-0838 emma(r)

Re: [PHP] PHP Session variable

2007-03-27 Thread Erik Jones
know I am. On the page that generates your webform: Also, changing to using the $_SESSION superglobal array instead of $HTTP_SESSION_VARS will save you a bit of typing. erik jones <[EMAIL PROTECTED]> software developer 615-296-0838 emma(r)

Re: [PHP] Firefox Extension (Firefox 2.x.x.x)

2007-03-28 Thread Erik Jones
editor to bring up the help docs in a mini-browser instead of having to switch to FF while I'm editing. erik jones <[EMAIL PROTECTED]> software developer 615-296-0838 emma(r)

Re: [PHP] CURL questions

2007-03-29 Thread Erik Jones
NSFER twice and that my be messing with the curl call. erik jones <[EMAIL PROTECTED]> software developer 615-296-0838 emma(r)

[PHP] Reristration form

2004-04-23 Thread Erik Gjertsen
amp; $email && $username && $password) { // if everyting's okay. //Register the user. echo 'you are now register.'; } else { //Something is not TRUE. echo 'Please go back and try again.'; } } else {// Display the form } ?> Thanks for any help Erik Gjertsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Reristration form

2004-04-23 Thread Erik Gjertsen
Thanks it helps Erik Gjertsen "Erik Gjertsen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I shall made a registration schema to user log on. But when I fill in > everything I still com up messages that you must go back and try again. > Or can someone h

Re: [PHP] Login page

2004-05-07 Thread Erik Gjertsen
Thanks it help Erik Gjertsena "Petr U." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 6 May 2004 03:42:48 -0700 > "Erik Gjertsen" <[EMAIL PROTECTED]> wrote: > > > I have made a login page but I got an error on line 1.

[PHP] page_title

2004-05-07 Thread Erik Gjertsen
I have write following code: But I can not see Welcome on top of the page. Can someone tell me why I not can see it? Thanks Erik Gjertsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] page_title

2004-05-07 Thread Erik Gjertsen
ot;Bao Ruixian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Erik Gjertsen wrote: > > >I have write following code: > > >$page_title = "Welcome"; > >?> > > > >But I can not see Welcome on top of the page. > >

Re: [PHP] page_title

2004-05-08 Thread Erik Gjertsen
Thanks it help Erik Gjertsen "Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is it me or is the sollution here incredible simple? > > $page_title = "Welcome"; >

[PHP] Login page

2004-05-06 Thread Erik Gjertsen
conection. } else { $message = 'Please try again.'; } } // End of themail submitconditional. //Print the error message if ther is one if (isset($message)) { echo '', $message, ''; } ?> Enter your information in the form below: User Name: Password: Thanks Erik Gjertsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Login page

2004-05-06 Thread Erik Gjertsen
I forgot the error messages: Warning: mysql_real_escape_string() expects parameter 2 to be resource, null given in /home2/erik/gjertsen-www/Skole22/Loggin/login.php on line 28 Warning: mysql_real_escape_string() expects parameter 2 to be resource, null given in /home2/erik/gjertsen-www/Skole22

[PHP] PHP Only directory

2004-05-25 Thread Erik Meyer
Red Hat Linux 9. Erik W. Meyer Technical Support Engineer Ebase www.ebaseweb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySql Close problem

2004-06-20 Thread Erik Gjertsen
I have problem with mysql_close I dont understand why. Are ther someone that have any proposal? Thank for any help Erik Gjertsen Here is the code $query = "SELECT usrid FROM users WHERE username"; $result = @mysql_query ($query); //Run the query if (mysql_num_rows($result) == 0)

[PHP] Re: MySql Close problem

2004-06-22 Thread Erik Gjertsen
rror message if ther is one if (isset($message)) { echo '', $message, ''; ) ?> Enter your information in the form below: Name Email Adress User Name Password Confirm Password but it dont work. If I take away al after mysql close to form_ac

[PHP] Using next() inside a foreach

2008-01-29 Thread Erik Stackhouse
ree Next: four This: 4 -> four Next: --- output under v5.2.4 and v5.2.5: --- This: 0 -> zero Next: two This: 1 -> one Next: three This: 2 -> two Next: four This: 3 -> three Next: This: 4 -> four Next: --- Regards to All, -Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP on Windows

2008-02-29 Thread Erik SJMN
PHP 5.2.5 installed on Windows Server 2003 with IIS 6 ; Mail-1.1.14 mail pkg with Net_SMTP-1.2.11 pkg --Erik

[PHP] Wordpress Theme Switcher plugin redirect modification

2007-07-30 Thread Erik Gyepes
ried redirect the page to the URL in that cookie. It worked, but not as intended, there are some situations when it is redirecting in a loop. Any recommendations how to do it properly? Thanks, Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PDO and PGSQL: ERROR: syntax error at or near "SET"

2006-08-07 Thread Erik Gyepes
and the following PHP code: setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $query = "INSERT INTO users SET uid = :uid, login = :login, password = :password"; $stmt = $db->prepare($query); $uid = ""; $login = "erik"; $password = "

[PHP] How to check value in multidimensional array

2006-11-18 Thread Erik Gyepes
cept contact - there it show error. So what is the correct way to check values in multidimensional arrays? Is it possible with in_array() function? Thanks, Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to check value in multidimensional array

2006-11-18 Thread Erik Gyepes
Oliver Block wrote: Am Samstag, 18. November 2006 19:46 schrieb Erik Gyepes: What exactly do you need to do? You should read the manual too, at I would like to check if the value is really in the array, if it is not then I would like do some other things. (so not check if it is an array

[PHP] How to work with virtual (seo) URLs?

2006-11-18 Thread Erik Gyepes
Hi folks, my another question is how to work with URLs like below in PHP: http://www.example.com/section/ http://www.example.com/section/subsection/ http://www.example.com/section/subsection/subsubsection/ http://www.example.com/section/subsection/subsubsection/ These URLs works very well w

Re: [PHP] Array sort question

2006-02-28 Thread Saline Erik
Sometimes I just need a point in the right direction. So RTFM is not so bad. Erik On Feb 28, 2006, at 11:26 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: [snip] I love how infinitely helpful people on this mailing list are. It's a wonder people are being

[PHP] Administrator page and password problem

2004-04-07 Thread Erik Gjertsen
&& $email && $username && $password) { // if everyting's okayOK. //Register the user. echo 'you are now register.' } else { //Something is not TRUE. echo 'Please go back and try again.' } else { ?> Enter your information in the form b

[PHP] Password

2004-04-07 Thread Erik Gjertsen
&& $email && $username && $password) { // if everyting's okayOK. //Register the user. echo 'you are now register.' } else { //Something is not TRUE. echo 'Please go back and try again.' } else { ?> Enter your information in the form b

[PHP] Re: Administrator page and password problem

2004-04-07 Thread Erik Gjertsen
Thanks for help Red. Cut and past is not always work But I got a new problem in the last line. I don't understand watt the problem is here Thanks Erik Gjertsen "Erik Gjertsen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I try to made a administrator

[PHP] Re: Administrator page and password problem

2004-04-07 Thread Erik Gjertsen
Thanks for help Red. Cut and past is not always wok But I have a new problem in the last line. I don't understand why it's problem here Thanks Erik Gjertsen http://www.w3.org/TR/html4/loose.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"&g

Re: [PHP] Looking for CMS advice

2005-08-22 Thread Erik Gyepes
to be good CMS too, see the: http://nucleuscms.org/. Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for CMS advice

2005-08-22 Thread Erik Gyepes
to be good CMS too, see the: http://nucleuscms.org/. Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ftp_nlist dont work for me :(

2005-08-29 Thread Erik Gyepes
dont get work it at home at my machine. May I enable something in PHP? Some settings, or what? Thanks very much. Erik Gyepes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LAN IP address

2005-08-29 Thread Erik Gyepes
Hi. I think you want to get the internal IP adress which computer uses? Am I right? If yes, that is not possible with PHP directly, but it is possible with Java and PHP. Erik Philippe Reynolds wrote: Hi all, I would like to find a way to get my computers LAN IP address through PHP. I

Re: [PHP] LAN IP address

2005-08-29 Thread Erik Gyepes
Okay. There I have script for you: http://pokusy.depi.sk/internalip.zip. Just download it and see the source. You can see how it works here: http://pokusy.depi.sk/inernalip/ip.php. Hope that helps you. Erik Philippe Reynolds wrote: Yes, I would hard code my IP address but when the computer

[PHP] RecursiveIteratorIterator för PHP 5.0.5 Win32

2005-10-01 Thread Erik Franzén
support the RecursiveIteratorIterator Interface? Thanxs /Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: RecursiveIteratorIterator för PHP 5.0 .5 Win32

2005-10-01 Thread Erik Franzén
ren() { return new RecursiveArrayIterator($this->current()); } } ?> Thanxs /Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] domit and XML

2005-10-03 Thread Erik Barba
hi im new in the list i dont know where to write the email so i did it here, i am having a problem I have a xml file and im parsing with domit 1.0 but im from mexico, and we use " é í ó ú á ñ " the xml acept it but when the php show the code in html, i cant see the letters

[PHP] Easiest way to user DomDocument->getElementById()?

2005-11-14 Thread Erik Franzén
Document->validate() or DOMDocument->validateOnParse before using this function." I cannot use a schema in ordet to "activate" DomDocument->getElementById()? /Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Easiest way to user DomDocument->getElementById()?

2005-11-14 Thread Erik Franzén
I have run into this behavior on several sites: $dom->validate('books.dtd'); But according to the docs, the method it is defined class DOMDocument { bool validate ( void ) } Is the dtd (file?) parameter deprecated? /Erik -- PHP General Mailing List (http://www.php.net/) T

[PHP] Re: Easiest way to user DomDocument->getElementById()?

2005-11-14 Thread Erik Franzén
I have run into this behavior on several sites: $dom->validate('books.dtd'); But according to the docs, the method it is defined class DOMDocument { bool validate ( void ) } Is the dtd (file?) parameter deprecated? /Erik Just tested, $dom->validate('books.dtd&#x

[PHP] How to build a XML DTD on "the fly"?

2005-11-16 Thread Erik Franzén
gt;appendChild($oElement); // Retrieve and print the document echo $oDom->saveXML() . "\n"; echo "TagName: " . $oDom->getElementById('123')->tagName; ?> Now the code produces the following result: test TagName: Thanks /Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to build a XML DTD on "the fly"?

2005-11-18 Thread Erik Franzén
apparently, that is not the case. /Erik James Benson wrote: Learn DTD and how it works first then you will know :-) A DTD is contained in an external file and not in XML, so you would create a DTD file then link it from the XML like so, Erik Franzén wrote: The code below lacks the part

[PHP] Re: How to build a XML DTD on "the fly"?

2005-11-18 Thread Erik Franzén
/GetElementById_Pitfalls have some information about my issue, but I have not found the path to go yet. I am using php5.05 on Win32. /Erik Rob wrote: Jared Williams wrote: There is no real standard for creating DTDs on the fly, and therefore libxml/DOM doesn't have any methods afaik. Th

[PHP] DomDocument::GetElementById - a workaround with external DTD

2005-11-18 Thread Erik Franzén
Have tried the following code: $oDomDtd = $oDomImp->createDocumentType('Document', '', 'D:/CMAES/Src/dbtree.dtd'); // Creates a DOMDocument instance $oDom = $oDomImp->createDocument("", "Document", $oDomDtd); // Set other properties $oDom->encoding = 'iso-8859-1'; $oElement = $oDom->createEl

[PHP] Sorry, I copied the wrong the DTD in the code:

2005-11-18 Thread Erik Franzén
Sorry, I copied the wrong DTD into the post. The DTD is the following: Here is the code example and result again: $oDomDtd = $oDomImp->createDocumentType('Document', '', 'D:/CMAES/Src/dbtree.dtd'); // Creates a DOMDocument instance $oDom = $oDomImp->createDocument("", "Document", $oDomDt

[PHP] Re: DomDocument::GetElementById - a workaround with external DTD

2005-11-19 Thread Erik Franzén
I did a typo in the threads post. The dtd is: but it gives the warning when DomDocument::validate() is called: Warning: Syntax of value for attribute S_iSectionId of CMAES_Model_DbSection is not valid in

<    3   4   5   6   7   8   9   >