[PHP] Nevermind Ereg Bug
I figured out a work around. I'd still be interested if anyone else has experienced this. Josh -- 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] HTTP_POST_VARS: Data there, but can't get to it
Hi Your whatdo's will be whatdo0 whatdo1...whatdox You need to do like this if I understand what you are doing :) $row=0; while($row < $numofrows): $var = "whatdo".$row; $whatdo = $submitted_vars["$var"]; //do whatever with $whatdo . $row ++; endwhile; Tom At 09:41 AM 10/11/01, Lara J. Fabans wrote: >Hi, > >I'm having some difficulties accessing HTTP_POST_VARS > >The original form has a table where each row has a set of 3 radio >buttons name="whatdo[]" where $x is the row counter. >(I'm using PHP to pull info into a table, then the user manipulates >the info, and it places the info into 2 other tables depending upon what >the choice is for the 3 radio buttons). > >So, on submit, it reloads the page, and I pull in all of the areas. All >work except the radio buttons. > >I've tried: >$submitted_vars = $HTTP_POST_VARS; >$whatdo = $submitted_vars[whatdo]; >--- >and >$whatdo = $HTTP_POST_VARS["whatdo"]; >-- > >but when I do a print_r($whatdo) >it's blank > >When I do a >print_r($HTTP_POST_VARS) >I get >Array ( [whatdo] => Array ( [0] => load [1] => delete), [other stuff]) > > >What am I doing wrong :-) How do I access this data? It's so frustrating >since all the rest of the postvars are working, and I can see that the >data's there in the HTTP_POST_VARSI just can't get to it. (pun not >intended) > >Thanks, >Lara > >- >Lara J. Fabans >Lodestone Software, Inc >[EMAIL PROTECTED] > > > >-- >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] -- 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]
[PHP] Text Wrapper
$string = "Mary had a little lamb whose face was icy cold. Everywhere that Mary went the townsfolk were sure to know"; I want to display the text where the max number of characters on any one line is 34. 1234567890123456789012345678901234 Mary had a little lamb whose face was icy cold. Everywhere that Mary went the townsfolk were sure to know. Where would I start? strlen($string) explode and then what?
[PHP] Ereg Bug
I'm ready to rip my hair out! I have a form which submits to a script to generate an image using the info on the form. I am trying to center the text over the image, and this application requires the use of variable-width fonts. So I am using a very basic regex to check for an all-caps string in order to adjust the placement of the text in the image. I don't know what is causing this, but the regex seems to get "stuck" holding a particular value. If you type in a string in all lower case after changing the regex, it works fine. It may work 10 times in a row. But then after some seemingly arbitrary number of submissions, the value of the variable $uo in the script snippet below will not change. I am stumped - if anyone has any insight into this I'd appreciate it. You can view the script in action here: http://toolshed51.dhs.org/~josh/ The script prints the value of $uo preceding the input text. Thanks, Josh Code snip: for($x=3;$x>=1;$x--) { $string = ${"line" . $x}; $string = stripslashes($string); if(ereg("^([A-Z])*$", "$string")) { $uo = 1; } else { $uo = 2; }
[PHP] Re: Associative Arrays Performance under Linux
This is just a suggestion. Rather than creating the associative array from scratch, prebuild one and just use copies of that associative array when you need it. I don't know whether it will be faster, but intutitively it should. This is analogous to pre-allocating structs in memory before using them in C. Regards, John PS: Let me know if this is practical and if it works! Mike Boulet <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have been troubleshooting the performance of some code for a couple of > days and I have not been able to find out what is happening. > > Here's the pseudo-code > > - Get jobs from the MySql database. Return all customers. Returns 10 rows. > then for each customer return their active jobs. ( About 1 to 2 rows ). > - for each row build and array entry which looks like the following > > Array Customers > { > Array CustInfo() > { > Array Job 1 Info > Array Functions() > Array Details() > Array Job 2 Info > Array Functions() > Array Details() > } > Array CustInfo() > { > Array Job 1 Info > Array Functions() > Array Details() > Array Job 2 Info > Array Functions() > Array Details() > } > } > > There may be more than one customer (CustInfo) stored. The problem is > that under Windows 2000 server the code that builds the array takes 1/1000 > of second to execute for each item added to the custinfo array. When I move > the same code and database to my Red Hat 7.1 Linux server it takes 2/100 of > a second!! So the whole process of building the arrays takes a total of > 2/10th of a second under Windows 2000 server and takes 2 seconds on the > Linux server. > I have never seen this kind of issue before under Linux and was wondering > what it could be? PHP Config option? Linux config option? > > Specs of the Servers > = > The Windows 2000 server is a 600Mhz Pentium with 384Megs ram > > The Linux server is Red Hat 7.1 on a Dual gighz server with 512 megs ram.. > > Both servers are running php 4.0.6. > > There is no load on the Linux server to affect the numbers. All other > processes including other PHP code runs great and much faster than Windows > 2000. > > Any advice would be appreciated. > > > > -- 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]
[PHP] Re: Design for Large OO poject
Hi Daniel, Most OOP projects contain multiple hierarchies, not just one. Normally DB is not made the base class. Think in terms of whether the objects have is-type-relationships or use-part-relationships. Eg. Boring_News uses-the-part MySQL_DB, so Boring_News uses the MySQL_DB object as a member var. class Boring_News { $var db; ... } Sexy_Articles is-a-type-of News, so perhaps Sexy_Articles can be derived from the News class. class Sexy_Articles extends News { ... } Hope this helps. Bye, John Daniel Harik <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hello guys, > > I've started large long-term project, i'm buildingd my own CMS (content > manegment system) with few more developers, compared to nuke i want > it to be fully object-oriented, so that adding more modules would be > easy and logical, i have built first beta version of it, i want to > maximize code reuse, so here is the structure of my classes > > class DB{} > class Member extends DB() > class News extends Member{} > class Poll extends News{} > ... > All new blocks and modules are added > in this place > ... > class NewBlock extends BitOlderBlock{} > > after this comes the class that's always in the end > > class Blocks extends NewBlock{} > > then i have a file that uses all this library > > looks like this: > --- > include ("blocks.php"); > class mainPage extends Blocks{ > > function displayMainPage(){ > $this->heading(); > > $this->block_news(); > > $this->footer(); > } > > > } > $page = new mainPage; > $page->displayMainPage(); > ?> > > > -- > > > I'm very new for big Object-oriented projects, but i'm not new to PHP, > i was wondering if my design is good or bad, if you could show me > what's wrong with it i'd be very thankful > > Thank You very much, and have a nice day :-) > > > > > > > > -- > Best regards, > Daniel mailto:[EMAIL PROTECTED] > -- 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]
[PHP] Re: Faking MS Access on MySQL linux box
See http://php.weblogs.com/adodb_csv "ADODB also supports SQL communications through HTTP as a database proxy. In plain English, if you have a FoxPro or Access database that you need to connect to from Unix, you can do so via HTTP (eg. Apache talking to IIS, which talks to a small PHP program [the proxy] that queries the database, packs it into serialized text and sends it back to Apache). PHP client -- Apache IIS -- PHP server -- Database Or if you have to go through a firewall to access your database, this solution allows you to stream SQL queries as HTTP through the firewall." [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote in message GMJD1G$[EMAIL PROTECTED]">news:GMJD1G$[EMAIL PROTECTED]... Hello, For reasons not worth discussing here, I have to develop and test on Linux/Apache some PHP pages that will have to access via ODBC a MS Access database on an NT/IIS/PHP server. I would like to do it by writing PHP pages that access via ODBC some mysql or other database on my linux box, in such a way that, if it works there, I just change some general setting, upload the pages and they work for sure on the MS Access thing (something like: ifdef LINUX then ODBC_ACCESSES_MYSQL ifdef NTthen ODBC_ACCESSES_MS_Access) I am sure that this must be possible, but would really appreciate some examples/pointers to specific tutorial/similar stories/etc. TIA, mweb -- 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] Server redirection
On Friday 09 November 2001 07:46 pm, Ernesto wrote: > How do I do server-side redirection? > I want to redirect the user to another URL without using javascript. RTFM. http://php.net/header Or, check the archives of the mailing list. http://marc.theaimsgroup.com/?l=php-general This question has been asked dozens upon dozens of times before. --kurt -- 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]
[PHP] Server redirection
Hi there... newbie here! How do I do server-side redirection? I want to redirect the user to another URL without using javascript. Regards, Ernesto -- 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] PHP Usage Stats
That Report doesn't seem to identify PHP version only total Matt McClanahan wrote: > On Fri, Nov 09, 2001 at 10:11:50AM -0800, Chris wrote: > > > Are there any refrences that would indicate the percent of sites (PHP > > installs) using various versions of PHP (i.e., 60% PHP4, 30% PHP3, > > etc.)? > > See the top of http://php.net which refers to usage stats provided by > Netcraft and SecuritySpace. > > Matt -- 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] HTTP Headers
Boy, that's one of those "Imagine the trouble we would get into if we could!" questions, isn't it? Just like "How do I disable the back button?", or "How do I use PHP to feed me the contents of a web browser's hard drive?" That said, some hosting services support what is called "domain parking", where you can hop on to a URL, and then have that URL displayed in the browser's location bar throughout the browsing experience. The problem is that it's unreliable (you don't know when you're going to "burst out" of park mode and see the "real" URL), and the URL that is displayed is relatively static. That is, you will only see the URL, and not any subdirectories. It's obnoxious, and I don't recommend it, but check with your hosting service if that's really the route you want to go. Can't be done with PHP, though. At 03:55 PM 11/9/2001, Mike Harvey wrote: >Is it possible to redirect to an IP address but have the browser address bar >show an URL? > >Mike H. >http://ibiz-tools.com http://vestudiohost.com > > > >-- >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] Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!" -- 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] HTTP Headers
On Fri, 9 Nov 2001, Mike Harvey wrote: > Is it possible to redirect to an IP address but have the browser address bar > show an URL? Assuming that you meant "hostname" instead of "URL" since the browser address bar will always display a URL ... No. ~Chris /"\ \ / September 11, 2001 X We Are All New Yorkers / \ rm -rf /bin/laden -- 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]
[PHP] post variables to MySQL fields
A while back somebody answered a question about some PHP code that would take the $HTTP_POST_VARS and create the SQL that would write them to a MySQL table (provided the posted var names matches the MySQL fieldnames). Does anyone have info on that project? The PHP searchable archive is down, otherwise I wouldn't be asking on the list. Thanks, Rory -- 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] HTTP_POST_VARS: Data there, but can't get to it
On Fri, 9 Nov 2001, Lara J. Fabans wrote: > The original form has a table where each row has a set of 3 radio > buttons name="whatdo[]" where $x is the row counter. Well, for a set of raido buttons, they should all have the same name. In your case, all 3 radio buttons should be named "whatdo". Don't put on any brackets ... that will cause whatdo to be an array when it's being handled by the form handler. Then you can check $HTTP_POST_VARS['whatdo'] for the value of the checked radio button when the form was submitted. g.luck, ~Chris /"\ \ / September 11, 2001 X We Are All New Yorkers / \ rm -rf /bin/laden -- 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]
[PHP] UPLOADING BLUES: Empty form variables when uploading
Hi everybody, I hope someone is able to help me with this, I've been having this problem for a couple of months now and I have not been able to find a solution. I have a form to upload a file which submits to itself, and has two submit buttons, one called "eliminarfoto" (deletephoto) and "salvar" (savephoto), but for some weird and unexplainable reason (it only happens to some users, not all of them) when they hit any of these two submit buttons, the form returns empty variables. This is part of my script, has anybody had a similar problem before??? Any help would be greatly appreciated. Foto (opcional,tamaño máximo: 20k,formatos permitidos: JPEG, GIF) "; } ?>
[PHP] InterSystems Cache DB and PHP
Does anyone know if PHP can be used (other than with ODBC) with the Cache database from InterSystems? Thanks in Advance, Shawn Sellars
[PHP] HTTP Headers
Is it possible to redirect to an IP address but have the browser address bar show an URL? Mike H. http://ibiz-tools.com http://vestudiohost.com -- 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]
[PHP] Functions to big
> Hi there ! > > I just want to know what is the max size that a function can be before it > becomes out of range for the function that follows? -- 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]
[PHP] Functions to big
Hi there ! I just want to know what is the max size that a function can be before it becomes out of range for the function that follows? -- 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]
[PHP] HTTP_POST_VARS: Data there, but can't get to it
Hi, I'm having some difficulties accessing HTTP_POST_VARS The original form has a table where each row has a set of 3 radio buttons name="whatdo[]" where $x is the row counter. (I'm using PHP to pull info into a table, then the user manipulates the info, and it places the info into 2 other tables depending upon what the choice is for the 3 radio buttons). So, on submit, it reloads the page, and I pull in all of the areas. All work except the radio buttons. I've tried: $submitted_vars = $HTTP_POST_VARS; $whatdo = $submitted_vars[whatdo]; --- and $whatdo = $HTTP_POST_VARS["whatdo"]; -- but when I do a print_r($whatdo) it's blank When I do a print_r($HTTP_POST_VARS) I get Array ( [whatdo] => Array ( [0] => load [1] => delete), [other stuff]) What am I doing wrong :-) How do I access this data? It's so frustrating since all the rest of the postvars are working, and I can see that the data's there in the HTTP_POST_VARSI just can't get to it. (pun not intended) Thanks, Lara - Lara J. Fabans Lodestone Software, Inc [EMAIL PROTECTED] -- 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]
[PHP] PHP4.0.6 configure error with apache 2.0.16
Hello list, I tried to compile apache 2.0.16 with php 4.0.6. Here's my ./configure line for apache: ./configure --prefix=/usr/local/apache2 --enable-module=so And here's my ./configure line for PHP: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --disable -debug --enable-track-vars --with-ftp --with-xml And here's the error I get from the ./configure in PHP: checking for Apache 2.0 module support via DSO through APXS... Usage: apxs -g [-S =] -n apxs -q [-S =] ... apxs -c [-S =] [-o ] [-D [=]] [-I ] [-L ] [-l ] [-Wc,] [-Wl,] ... apxs -i [-S =] [-a] [-A] [-n ] ... apxs -e [-S =] [-a] [-A] [-n ] ... configure: error: Sorry, I cannot run apxs. Either you need to install Perl or you need to pass the absolute path of apxs by using --with-apxs2=/absolute/path/to/apxs Anyone know what's going on? I have perl installed. Tyler -- 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] PHP Usage Stats
On Fri, Nov 09, 2001 at 10:11:50AM -0800, Chris wrote: > Are there any refrences that would indicate the percent of sites (PHP > installs) using various versions of PHP (i.e., 60% PHP4, 30% PHP3, > etc.)? See the top of http://php.net which refers to usage stats provided by Netcraft and SecuritySpace. Matt -- 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]
[PHP] odbc_free_result
Hi, I'm a newbie and I'm currently porting a system coded in another language to PHP4. Here's a question about the internals of PHP: The manual states that it's not necesary to do odbc_free_result() because PHP will free all used resources upong script completion. Ok, but what if I reuse (overwrite) the ODBC result identifier like this: $ex=odbc_exec($jg_difolt, "SELECT ..."); //Here... I don't free the resource $ex=odbc_exec($jg_difolt, "SELECT ..."); //Now... I free the resource... odbc_free_result($ex); I guess both resources are freed, but I just want to make sure because I do this all the time (because the old code I'm porting does it (because it's ok to do it in _that_ language) (and I'm too lazy to rework it)). Thanks in advance. Regards, Ernesto -- 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] putting the result of PHP code into a string
On Fri, Nov 09, 2001 at 10:33:39PM +0100, Morten Gjetanger wrote: > I like to evaluate som PHP code, but I want the result to be putted into a > string. > example: > > $var = "Test1"; > $code = ""; > $html = someFunction($code); > > After this i want $html to contain "Test1 $var = "Test1"; $code = "$var"; $html = someFunction($code); Done. -- Jason Stechschulte [EMAIL PROTECTED] -- "You can't have filenames longer than 14 chars. You can't even think about them!" -- Larry Wall in Configure from the perl distribution -- 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] Regular expression question
What is $num going to be? A number? So how do you determine where that number ends and where there shouldn't be another number in front of it...are there any restrictions on the size of $num? say $num is 51 then you're saying that you want to match 51:: but not 151:: however, what if $num is 151? see what i mean? - Original Message - From: "Leon Mergen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 09, 2001 1:53 PM Subject: [PHP] Regular expression question > Hello, > > I have a little question regarding regular expressions... I want to check > for the pattern > > $num:: > > But, $num may not be started with another number (assume the number will be > 51 , 1 will also match (the pattern 1:: is available in 51::) ... Currently, > my regular expression is: > > eregi("([^0-9]$num::)", $string); > > But that doesn't seem to work... The other option, the start of a line or a > : also didn't work: > > eregi("([^|:]$sess_id::)", $string); > > Anyone can help me with this? > > Thanks in advance, > > Leon Mergen > > > -- > 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] > > -- 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]
[PHP] What is the PATH...
When PHP try to execute a program via exec() or system(), where does it search for it? I mean, it sertainly is not MY (foo.php owner) path, because it returns me a sh: YOUR_PROGRAM: command not found It seems to be (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin ) now. Where can I set this PATH? Thanks! Cleber S. Mori Monitor Lab Linux 2o Ano - Bacharelado em Ciências da Computação ICMC - Instituto de Ciências Matemáticas e de Computação USP - Universidade de São Paulo - São Carlos HPage: http://grad.icmc.sc.usp.br/~cleber/ E-mail: [EMAIL PROTECTED] ICQ/UIN:1409389 -- 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]
[PHP] putting the result of PHP code into a string
I'm quite sure there is a simple solution to the problem bellow! I like to evaluate som PHP code, but I want the result to be putted into a string. example: $var = "Test1"; $code = ""; $html = someFunction($code); After this i want $html to contain "Test1 I've checked the eval function, but it just evaluates the code and just outputs the result. I really wants the output into a string! regards Morten Gjetanger -- 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]
[PHP] can't insert into mssql smalldatetime
I have this query $db1 = "INSERT INTO tablename (name,email,phone,room,problem,upgrade,software,hardware,printer,network,os, priority,submitdate) VALUES ('$name','$email','$phone','$room','$problem','$upgrade','$software','$hardw are','$printer','$network','$os','$priority','1996-05-01')"; $cur1 = MSSQL_QUERY($db1); But when I do a select of the submitdate field, it always turns up as today's date no matter what I try to insert. Do I need to change the format of my date before I insert it somehow? The submitdate field is of type smalldatetime Thanks, Aaron -- 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]
php-general Digest 9 Nov 2001 20:43:27 -0000 Issue 985
php-general Digest 9 Nov 2001 20:43:27 - Issue 985 Topics (messages 74005 through 74056): Re: Looking for security annoucements 74005 by: Jimmy 74018 by: Mark Roedel 74039 by: Jimmy php test page not working with apache 1.3.22 74006 by: Caleb Carvalho 74034 by: Neil Freeman PHP Redirect / header("location: ") 74007 by: phantom 74008 by: Bas Jobsen 74009 by: Scott Houseman Javascript & php / need help 74010 by: xrichx 74011 by: Morten Winkler Jørgensen get names of vars $HTTP_POST_VARS? 74012 by: Vladimir Galkov 74013 by: Stefan Rusterholz 74014 by: Hidayet Dogan 74015 by: Joffrey van Wageningen Faking MS Access on MySQL linux box 74016 by: mweb.inwind.it Real problemas with sessions and SSI... 74017 by: Christian Dechery help please: exec/pasthru/system/popen problem 74019 by: Wolfram Kriesing Saving Dynamically Generated Pages 74020 by: Chris 74021 by: Wolfram Kriesing 74023 by: Chris Associative Arrays Performance under Linux 74022 by: Mike Boulet GD 74024 by: Thargor PHP Usage Stats 74025 by: Chris Security question: getenv() 74026 by: Johnson, Kirk Re: Newbie Question 74027 by: Steve Brett Classes Question 74028 by: Paul - Zenith Tech Inc 74030 by: pierre-yves Re: Apostrophes and Textareas 74029 by: Steve Brett Re: Append to STDIN 74031 by: Christian Reiniger Dallas Texas PHP User Group? 74032 by: Clint Tredway How do I logout a user ? 74033 by: John Martin Alfredsson 74036 by: Julio Nobrega Trabalhando call a function from a DLL? 74035 by: GRI Re: [PHP-WIN] call a function from a DLL? 74037 by: Alain Samoun Re: [PHP-DEV] Re: [PHP-WIN] call a function from a DLL? 74038 by: James Moore Any known reason, why 'ob_start("ob_gzhandler")' does not work? 74040 by: Sebastian Stadtlich Regular expression question 74041 by: Leon Mergen fopen and while problem 74042 by: Dennis Moore Re: PHP/XSLT questions 74043 by: Jeff Warrington variable issue 74044 by: Clint Tredway 74045 by: Johnson, Kirk 74046 by: R'twick Niceorgaw 74051 by: Matthew Luchak 74055 by: Clint Tredway Eval()??? A variables contents? 74047 by: Christopher Raymond 74048 by: Kurt Lieber 74050 by: Chris Hobbs 74052 by: Christopher Raymond 74053 by: Johnson, Kirk Re: [PHP-DB] Re: [PHP-DEV] Re: [PHP-WIN] call a function from a DLL? 74049 by: Matthew Loff MORE INFO > Eval()??? A variables contents? 74054 by: Christopher Raymond 74056 by: Chris Hobbs Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- --- Begin Message --- I'm running phpBB not phpNuke and I'm subcribed to Buftraq, hope the otehrs are more helpful for me... Jimmy --- End Message --- --- Begin Message --- > -Original Message- > From: Jimmy [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 09, 2001 2:41 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Looking for security annoucements > > > I'm running phpBB not phpNuke and I'm subcribed to Buftraq, > hope the others are more helpful for me... What version of phpBB? I know there were a number of security fixes in the last few releases (current looks to be 1.4.4)... --- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA| -- John Powell --- End Message --- --- Begin Message --- 1.4.0 was hacked, but just for fun on tuesday, on wednesday I upgraded to 1.4.2 and it was hacked by another hacker in the night!!! I looked at the 1.4.2 for my customization, and this morning at the 1.4.4 and saw that even basic security holes are not fixed. The project team is working on the 2.0 so I think the release is not serious. I spent all the day to recover the defaced topics and texts, now I gonna backup and think to another solution... Thanks for the reply anyway, Jimmy -Message d'origine- De : Mark Roedel [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 9 novembre 2001 15:22 À : Jimmy; [EMAIL PROTECTED] Objet : RE: [PHP] Looking for security annoucements > -Original Message- > From: Jimmy [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 09, 2001 2:41 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Looking for security annoucements > > > I'm running phpBB not phpNuke and I'm subcribed to Buftraq, > hope the others are more helpful for me... What version
Re: [PHP] MORE INFO > Eval()??? A variables contents?
OK, maybe I'm missing something, but why not just replace: > with: Assuming your Query_Database() function returns a string, this should work fine. Christopher Raymond wrote: > > Okay there are two files involved here. First is my index.php file: > > $params = array('class' => 'text10', 'content' => 'Query_Database( $category > )'); > > switch ( $mode ) { > > case "list": > > Make_TR( $params ); // This is executing the included function. > break; > > default: > Display_Default(); > > } > > Then there's the function that's located elsewhere in an include file: > > > function Make_TR ( $params ) { > > ( $params["class"] ) ? $class = "class=" . $params["class"] : $class = ""; > ( $params["content"] ) ? $content = $params["content"] : $content = ""; > > ?> > > > > > > > > > > > > > > } > > ?> > > Christopher <-- Still has no solution :-( > > -- > 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] -- Chris Hobbs Silver Valley Unified School District Head geek: Technology Services Coordinator webmaster: http://www.silvervalley.k12.ca.us/~chobbs/ postmaster: [EMAIL PROTECTED] -- 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] variable issue
thanks for all the help. I realized that I did not need the else, and the isset() works great! Now I have my calendar working the way I want it to! Thanks! Clint -- Original Message -- From: "Matthew Luchak" <[EMAIL PROTECTED]> Date: Fri, 9 Nov 2001 15:07:22 -0500 if(!isset($dte)) { $dte=date("j", time()+$ctime);} You don't need the else statement. Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Clint Tredway [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 2:37 PM To: PHP General Subject: [PHP] variable issue Hey everyone, I need some help with a variable issue. How can I delcare a variable and then if a url variable of the same name is present use that value instead? this is what I have: if(!$dte) { $dte=date("j", time()+$ctime); } else { $dte=$dte; } and this causing an error in the 'if' expression. Thanks! clint -- 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] -- 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] -- 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]
[PHP] MORE INFO > Eval()??? A variables contents?
Okay there are two files involved here. First is my index.php file: $params = array('class' => 'text10', 'content' => 'Query_Database( $category )'); switch ( $mode ) { case "list": Make_TR( $params ); // This is executing the included function. break; default: Display_Default(); } Then there's the function that's located elsewhere in an include file: > Christopher <-- Still has no solution :-( -- 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] Eval()??? A variables contents?
http://www.php.net/manual/en/function.eval.php Kirk > -Original Message- > From: Christopher Raymond [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 09, 2001 1:11 PM > To: PHP List > Subject: Re: [PHP] Eval()??? A variables contents? > > > on 11/9/01 2:01 PM, Kurt Lieber at [EMAIL PROTECTED] wrote: > > > What you're doing doesn't make any sense. If it were to > work, it would look > > like the following: > > > > ; ?>, > > > > or something similar. I think what you want to do is: > > > $content = query_database($category); > > echo $content; > > ?> > > > > that's using psuedo-code, of course. You'll want to > substitute correct php > > syntax for returning database results. > > > > > Kurt: > > I understand where you are coming from, and I appreciate your answer. > However, I'm trying to get PHP to parse commands that are stored in a > variable because I'm passing those commands to a function. Inside the > function, it needs to evaluate the commands stored in the variable. > > Does you solution solve that or does my description clarify my problem > better? -- 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] Eval()??? A variables contents?
on 11/9/01 2:01 PM, Kurt Lieber at [EMAIL PROTECTED] wrote: > What you're doing doesn't make any sense. If it were to work, it would look > like the following: > > ; ?>, > > or something similar. I think what you want to do is: > $content = query_database($category); > echo $content; > ?> > > that's using psuedo-code, of course. You'll want to substitute correct php > syntax for returning database results. Kurt: I understand where you are coming from, and I appreciate your answer. However, I'm trying to get PHP to parse commands that are stored in a variable because I'm passing those commands to a function. Inside the function, it needs to evaluate the commands stored in the variable. Does you solution solve that or does my description clarify my problem better? Thanks, Christopher -- 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] variable issue
if(!isset($dte)) { $dte=date("j", time()+$ctime);} You don't need the else statement. Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Clint Tredway [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 2:37 PM To: PHP General Subject: [PHP] variable issue Hey everyone, I need some help with a variable issue. How can I delcare a variable and then if a url variable of the same name is present use that value instead? this is what I have: if(!$dte) { $dte=date("j", time()+$ctime); } else { $dte=$dte; } and this causing an error in the 'if' expression. Thanks! clint -- 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] -- 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] Eval()??? A variables contents?
I just asked a similar question yesterday. The answer is, conveniently enough, eval(). One trick from the php.net page on the function is to do somehting like this: $content = ""; echo eval ("?>$content"); Christopher Raymond wrote: > > PHP Gurus: > > I have one for you. I'm sure there is a simple solution, but I'm having > difficulty finding it. > > Let's say I have: > > $content = ""; > > If I use , it doesn't evaluate that content. What am > I doing wrong here? > > Is there an equivalent to JavaScript's eval($commands) function? > > TIA, > > Christopher Raymond > > -- > 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] -- Chris Hobbs Silver Valley Unified School District Head geek: Technology Services Coordinator webmaster: http://www.silvervalley.k12.ca.us/~chobbs/ postmaster: [EMAIL PROTECTED] -- 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] Eval()??? A variables contents?
On Friday 09 November 2001 11:51 am, Christopher Raymond wrote: > Let's say I have: > > $content = ""; > > > If I use , it doesn't evaluate that content. What am > I doing wrong here? What you're doing doesn't make any sense. If it were to work, it would look like the following: ; ?>, or something similar. I think what you want to do is: that's using psuedo-code, of course. You'll want to substitute correct php syntax for returning database results. --kurt -- 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]
[PHP] Eval()??? A variables contents?
PHP Gurus: I have one for you. I'm sure there is a simple solution, but I'm having difficulty finding it. Let's say I have: $content = ""; If I use , it doesn't evaluate that content. What am I doing wrong here? Is there an equivalent to JavaScript's eval($commands) function? TIA, Christopher Raymond -- 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] variable issue
replace the if statement if(!$dte) with if (!isset($dte)) - Original Message - From: "Johnson, Kirk" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Friday, November 09, 2001 2:35 PM Subject: RE: [PHP] variable issue > The else clause can be removed, since it is not doing anything. What is the > error message? > > Kirk > > > Hey everyone, I need some help with a variable issue. How can > > I delcare a variable and then if a url variable of the same > > name is present use that value instead? > > > > this is what I have: > > if(!$dte) > > { > > $dte=date("j", time()+$ctime); > > } > > else > > { > > $dte=$dte; > > } > > and this causing an error in the 'if' expression. > > -- > 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] > > -- 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] variable issue
The else clause can be removed, since it is not doing anything. What is the error message? Kirk > Hey everyone, I need some help with a variable issue. How can > I delcare a variable and then if a url variable of the same > name is present use that value instead? > > this is what I have: > if(!$dte) > { > $dte=date("j", time()+$ctime); > } > else > { > $dte=$dte; > } > and this causing an error in the 'if' expression. -- 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]
[PHP] variable issue
Hey everyone, I need some help with a variable issue. How can I delcare a variable and then if a url variable of the same name is present use that value instead? this is what I have: if(!$dte) { $dte=date("j", time()+$ctime); } else { $dte=$dte; } and this causing an error in the 'if' expression. Thanks! clint -- 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]
[PHP] Re: PHP/XSLT questions
In <[EMAIL PROTECTED]>, Vikram Vaswani wrote: There is an undocumented function in php4.0.6 that allows you to specify an XSLT callback function for errors. You can then create a function to parse out the error array created by the callback function. It actually captures not only errors but also acts to log the work of the underlying XSLT processor. the function is xsl_set_error_handler and has parameters of 1) the XSLT processor instance and 2) A string representing the callback function name. e.g. xslt_set_error_handler($this->xslth,"XSLT_ErrorHandler"); Here is a sample of the callback function i have. Using the base php fuction error_log, you get the logging you want as well. function XSLT_ErrorHandler($parser, $code, $level, $errors) { if ($errors["msgtype"] == "log") { error_log(getNiceTime()."XSLT Status Code: $code\n",3,XSLT_LOG); error_log(getNiceTime()."XSLT Status Level: $level\n",3,XSLT_LOG); error_log(getNiceTime()."XSLT Status: {$errors['msg']}\n",3,XSLT_LOG); } else if ($errors["msgtype"] == "error") { error_log(getNiceTime()."XSLT Error Code: $code\n",3,XSLT_ERROR_LOG); error_log(getNiceTime()."XSLT Error Level: $level\n",3,XSLT_ERROR_LOG); error_log(getNiceTime()."XSLT Error FILE: {$errors['URI']}\n",3,XSLT_ERROR_LOG); error_log(getNiceTime()."XSLT Error LINE: {$errors['line']}\n",3,XSLT_ERROR_LOG); error_log(getNiceTime()."XSLT Error: {$errors['msg']}\n",3,XSLT_ERROR_LOG); } } Jeff > Hi all, > > I am working with the XSLT functions in PHP 4.0.6. I'm trying to trap > errors with the xslt_error() functions - however, the function generates > no output even if I deliberately introduce errors into the XSLT sheet. > > Same goes for the openlog() function. Anyone have any ideas how I can > use these to generate and log errors? > > TIA, > > Vikram -- 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]
[PHP] fopen and while problem
I am having problems using the fopen functions within a while loop. I am having problems passing variables into the function. Has anyone else had this problem? Example: $work_dir="$DOCUMENT_ROOT/click/oct01"; $ls_res=system("ls $work_dir/*.html > $work_dir/ls.txt"); $ar_file_list=file("$work_dir/ls.txt"); reset($ar_file_list); while (list ($key, $val) = each ($ar_file_list)) { settype($val, "string"); echo "$val"; if (is_writeable($val)) { $s = stat($val); $bytes = $s[7]; echo "Bytes: $bytes Exists: $val"; } $fx = fopen($val, "r"); $text = fread($fx,filesize($val)); $size=filesize($val); echo "$size - $text "; fclose($fx); } Configure Command: './configure' '--with-apache=/u1/source/apache_1.3.20' '--with-zlib=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/u1/source/libpng-1.0.12' '--with-freetype-dir=/usr/local/include/freetype2' '--with-tiff-dir=/u1/source/tiff-v3.5.6-beta' '--with-gd=/u1/source/gd-2.0.1' '--with-mysql=/usr/local/bin/mysql-3.23.41' '--with-pdflib' '--enable-static-pdflib' '--enable-ftp' '--enable-gd-native-tt' '--enable-gd-imgstrttf' '--enable-trans-sid' -- 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]
[PHP] Regular expression question
Hello, I have a little question regarding regular expressions... I want to check for the pattern $num:: But, $num may not be started with another number (assume the number will be 51 , 1 will also match (the pattern 1:: is available in 51::) ... Currently, my regular expression is: eregi("([^0-9]$num::)", $string); But that doesn't seem to work... The other option, the start of a line or a : also didn't work: eregi("([^|:]$sess_id::)", $string); Anyone can help me with this? Thanks in advance, Leon Mergen -- 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]
[PHP] Any known reason, why 'ob_start("ob_gzhandler")' does not work?
Hi all I have two scripts on the server in the SAME directory. both have this line in the beginning: ob_start("ob_gzhandler"); in one script it works. in the other it does not... it buffers, but does not zip the html... the one where it does not work is VERy huge and does lots of stuff, so i can't post it here. what could prevent the gz_handler from working this drives me nuts *igoandcrynow* Sebastian
Re: [PHP] Looking for security annoucements
1.4.0 was hacked, but just for fun on tuesday, on wednesday I upgraded to 1.4.2 and it was hacked by another hacker in the night!!! I looked at the 1.4.2 for my customization, and this morning at the 1.4.4 and saw that even basic security holes are not fixed. The project team is working on the 2.0 so I think the release is not serious. I spent all the day to recover the defaced topics and texts, now I gonna backup and think to another solution... Thanks for the reply anyway, Jimmy -Message d'origine- De : Mark Roedel [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 9 novembre 2001 15:22 À : Jimmy; [EMAIL PROTECTED] Objet : RE: [PHP] Looking for security annoucements > -Original Message- > From: Jimmy [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 09, 2001 2:41 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Looking for security annoucements > > > I'm running phpBB not phpNuke and I'm subcribed to Buftraq, > hope the others are more helpful for me... What version of phpBB? I know there were a number of security fixes in the last few releases (current looks to be 1.4.4)... --- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA | -- John Powell -- 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]
[PHP] Re: How do I logout a user ?
When they click logout, remove the marker from the database that specify they are logged in. Then you must on all pages see if this marker is either 'on' or 'off'. But sessions would be better for this since it is one sql query less. Just unregister the variable on logout and check with: if (!session_is_registered('user_logged')) { // Anything for non logged users, for example: header('Location: login.php'); } Being 'user_logged' the varibale name you will register when they logged in. -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net "John Martin Alfredsson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi ! > > I have a site where I do the user autentication myself. (I auth > against a database). I want to be able to let a user logout, that is > when the user is logged out she/he should not be able to just > press the back button in the browser to get back or use a cached copy > of the login screen. > > How do I do this ? > The Server is IIS and PHP is 4.0.6. > > /Martin > jma(at)jma.se > -- 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] php test page not working with apache 1.3.22
Probably not your problem but shouldn't your php line be as follows: ie without the space between Hi all, > > I've just finish upgrading my apache server to apache 1.3.22, > I have also compiled my php-4.0.6 with it. > > When I try to test it using > > saved as php, the browser tries to download it instead. > > I have added the application type under httpd.conf and restarted the server > ./apachectl restart. > > when I type > > ./apachectl status it does not show that the php-4.0.6 has be compiled with > it. > > Am i missing some steps? please point me out, > > p.s. i have added the module of php4 /libphp4.a to apache > and did the make command to make it executable. > > Thanks, > > Caleb Carvalho > Application Engineer > LoadRunner/APM > >- > Enterprise Testing and Performance Management Solutions > >- > Mercury Interactive > 410 Frimley Business Park > Frimley, Surrey. GU16 7ST > United Kingdom > Telephone : +44 (0)1276 808300 > > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > -- > 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] > > *** > This message was virus checked with: SAVI 3.50 > last updated 5th November 2001 > *** -- Email: [EMAIL PROTECTED] [EMAIL PROTECTED] -- 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]
[PHP] How do I logout a user ?
Hi ! I have a site where I do the user autentication myself. (I auth against a database). I want to be able to let a user logout, that is when the user is logged out she/he should not be able to just press the back button in the browser to get back or use a cached copy of the login screen. How do I do this ? The Server is IIS and PHP is 4.0.6. /Martin jma(at)jma.se -- 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]
[PHP] Dallas Texas PHP User Group?
Does this exist? If so what is the URL to the website. If it does not exist, I am thinking of starting one. Thanks -- Clint Tredway www.factorxsoftware.com Get Chatster - a free CF Chat Program http://www.factorxsoftware.com/download/ Need help with a Factor Product? http://www.factorxsoftware.com/forum/ -- -- 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] Append to STDIN
On Friday 09 November 2001 05:16, Cleber S. Mori wrote: > Hi again... > > I had already RTFM... > Neither in exec or ``'s I found any thing about STDIN... Just a blind shot: $Data = escapeshellarg ($MyVariable); system ("echo $Data | myscript.py -param"); -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) I saw God - and she was black. -- 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] Classes Question
Hello, what I would do is build the instance of your mysql class in the constructor of the user class class User{ var $db; // constructor function User(){ $this->db = new Mysql(True); } // function that show how to use the Mysql class in the User class function foo(){ $this->db->sql_query("SELECT user FROM banned_users"); } } // end class hope it help, py - Original Message - From: "Paul - Zenith Tech Inc" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 09, 2001 11:26 AM Subject: [PHP] Classes Question > I'm hoping somebody has the answer to this! > > I have 3 pages, one a normal PHP page, and 2 which are classes. > > One class, is a MySQL class I have written to connect/update users, etc > And the other is the manage users on the system. > > Is there a way I can get the "users" class to talk to the "mysql" class? > > I have this code to make a new instance of the MySQL class (the True means > use persistent connections) and a new instance of the users class > > $db = new MySQL(True); > $users = new Users(); > > I am then using this code to check the list of banned users > > $users->CheckBannedUser("spacetowns",$db); > > In the CheckBannedUser function, I have this > > $db->sql_query("SELECT user FROM banned_users"); > > But that does not work, (it works fine when used from the standard PHP page) > > Is it not possible to do what I am trying to do? > Or am I doing it all wrong? > > Many thanks, > Paul > > > > > -- > 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] > -- 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]
[PHP] Re: Apostrophes and Textareas
have a look at get_html_translation_table htmlspecialchars() , htmlentities() and get_html_translation_table. these function do all the work for you without reinventing the wheel. Steve "Joe Van Meer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hi there...I'm new to php coming from an asp background. I have a form with > two textarea form elements which is eventually inserted into a sqlServer db. > Everything works great, but one small problem How do I work around > apostrophes within the textareas? I keep getting errors when they are > present and no errors when I remove all of the apostrophes. > > Thx in advance, Joe > > -- 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]
[PHP] Classes Question
I'm hoping somebody has the answer to this! I have 3 pages, one a normal PHP page, and 2 which are classes. One class, is a MySQL class I have written to connect/update users, etc And the other is the manage users on the system. Is there a way I can get the "users" class to talk to the "mysql" class? I have this code to make a new instance of the MySQL class (the True means use persistent connections) and a new instance of the users class $db = new MySQL(True); $users = new Users(); I am then using this code to check the list of banned users $users->CheckBannedUser("spacetowns",$db); In the CheckBannedUser function, I have this $db->sql_query("SELECT user FROM banned_users"); But that does not work, (it works fine when used from the standard PHP page) Is it not possible to do what I am trying to do? Or am I doing it all wrong? Many thanks, Paul -- 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]
[PHP] Security question: getenv()
Happy Friday! I don't know anything about the innards of the PHP/Apache relationship. I am wondering if there is a security advantage to using the getenv() function to access an environment variable, instead of using the $HTTP_SERVER_VARS array, or, if register_globals is on, the global version of the variable. Using $SERVER_NAME as an example, and assuming register_globals is on, if $foo = gentenv("SERVER_NAME"); $bar = $HTTP_SERVER_VARS["SERVER_NAME"]; are $foo, $bar and $SERVER_NAME guaranteed to have the same value? Can a cracker poison one of these but not the other? Does getenv() get the value from Apache or PHP's namespace? You know what I'm getting at, right? ;) TIA Happy Friday! Kirk -- 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]
[PHP] PHP Usage Stats
Are there any refrences that would indicate the percent of sites (PHP installs) using various versions of PHP (i.e., 60% PHP4, 30% PHP3, etc.)? -- 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]
[PHP] GD
Hello, im searching the gd.dll for windows with gif support. who can help me? -- Thargor mailto:[EMAIL PROTECTED] http://www.vergessene-welt.de -- 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] Saving Dynamically Generated Pages
It appears this function is only available for PHP4+. I have been trying to stay compatible with PHP3 but maybe I should abandon this requirement. Do you know of any URLs that may provide stats on versions of PHP in use? Thanks, Chris Wolfram Kriesing wrote: > > Im considering writing all the update information to a datafile > > before displaying it to the user, say through an include(); What I > > would like to do is direct the output (all my prints) to that > > report file. It seems though that I might have to go through my > > code and explicitly use fputs to accomplish this task. > > have a look at "output buffering" >http://www.php.net/manual/en/function.ob-start.php > this way you can send output you actually send to the browser save in > a buffer and do with it whatever u want :-) > > -- > Wolfram -- 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]
[PHP] Associative Arrays Performance under Linux
I have been troubleshooting the performance of some code for a couple of days and I have not been able to find out what is happening. Here's the pseudo-code - Get jobs from the MySql database. Return all customers. Returns 10 rows. then for each customer return their active jobs. ( About 1 to 2 rows ). - for each row build and array entry which looks like the following Array Customers { Array CustInfo() { Array Job 1 Info Array Functions() Array Details() Array Job 2 Info Array Functions() Array Details() } Array CustInfo() { Array Job 1 Info Array Functions() Array Details() Array Job 2 Info Array Functions() Array Details() } } There may be more than one customer (CustInfo) stored. The problem is that under Windows 2000 server the code that builds the array takes 1/1000 of second to execute for each item added to the custinfo array. When I move the same code and database to my Red Hat 7.1 Linux server it takes 2/100 of a second!! So the whole process of building the arrays takes a total of 2/10th of a second under Windows 2000 server and takes 2 seconds on the Linux server. I have never seen this kind of issue before under Linux and was wondering what it could be? PHP Config option? Linux config option? Specs of the Servers = The Windows 2000 server is a 600Mhz Pentium with 384Megs ram The Linux server is Red Hat 7.1 on a Dual gighz server with 512 megs ram.. Both servers are running php 4.0.6. There is no load on the Linux server to affect the numbers. All other processes including other PHP code runs great and much faster than Windows 2000. Any advice would be appreciated. -- 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] Saving Dynamically Generated Pages
> Im considering writing all the update information to a datafile > before displaying it to the user, say through an include(); What I > would like to do is direct the output (all my prints) to that > report file. It seems though that I might have to go through my > code and explicitly use fputs to accomplish this task. have a look at "output buffering" http://www.php.net/manual/en/function.ob-start.php this way you can send output you actually send to the browser save in a buffer and do with it whatever u want :-) -- Wolfram -- 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]
[PHP] Saving Dynamically Generated Pages
Im using PHP to allow a user to update several MySql records in a batch process. During the update I print to the browser information about the update (records deleted, added, changed etc.). What I would like to do is also save this report so the user can access it at a later time. Im considering writing all the update information to a datafile before displaying it to the user, say through an include(); What I would like to do is direct the output (all my prints) to that report file. It seems though that I might have to go through my code and explicitly use fputs to accomplish this task. Any suggestions welcome. Thanks, Chris -- 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]
[PHP] help please: exec/pasthru/system/popen problem
i was now trying all the examples from the docs but no success yet can someone please help? i want to convert an image to another format i was fread-ing the one image into $image1 so they are binary in there and i want to pass that to imagemagick's convert, using: convert gif:- jpg:- which reads from stdin and outputs the result to stdout how can i pass the _binary_ $image1 to convert and retreive the $convertedImage reason, i want to insert the image as a blob and i dont want to mess with files thank you -- Wolfram -- 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] Looking for security annoucements
> -Original Message- > From: Jimmy [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 09, 2001 2:41 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Looking for security annoucements > > > I'm running phpBB not phpNuke and I'm subcribed to Buftraq, > hope the others are more helpful for me... What version of phpBB? I know there were a number of security fixes in the last few releases (current looks to be 1.4.4)... --- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA| -- John Powell -- 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]
[PHP] Real problemas with sessions and SSI...
Can someone explain to me why sessions don't work with SSI? Let me explain my case: I have a php script called miec.php, which uses sessions extensively. It's a script to show products from a catalog randomly, and in the session it keeps the products already shown, so it doesn't repeat... it works just fine. So... if I go to my browser and point to miec.php, and keep reloading it, I can see it working... the sessions get updated perfectly and then reseted when the maxinum number of allowed products is reached... Then I have another file called test.shtml which includes miec.php via SSI (), the include is perfect... even the cookies holding the userId works... but the session simply doesn't work... When I load test.shtml, a session is create by miec.php, I can even see the file on the server. But if I reload the page, another session is created instead of using the same, so it's not persistent... thus, it doesn't work at all. The weird thing is: if I call miec.php directly, the session gets created normally, if then I point the browser to test.shtml, the session persists normally, and then everything works as expected... I believe this is not the expected behaviour... Does sessions work with SSI or not? -- 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]
[PHP] Faking MS Access on MySQL linux box
Hello, For reasons not worth discussing here, I have to develop and test on Linux/Apache some PHP pages that will have to access via ODBC a MS Access database on an NT/IIS/PHP server. I would like to do it by writing PHP pages that access via ODBC some mysql or other database on my linux box, in such a way that, if it works there, I just change some general setting, upload the pages and they work for sure on the MS Access thing (something like: ifdef LINUX then ODBC_ACCESSES_MYSQL ifdef NTthen ODBC_ACCESSES_MS_Access) I am sure that this must be possible, but would really appreciate some examples/pointers to specific tutorial/similar stories/etc. TIA, mweb -- 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] get names of vars $HTTP_POST_VARS?
a great way to debug things like this is to use var_dump or print_r... http://www.php.net/manual/en/function.var-dump.php http://www.php.net/manual/en/function.print-r.php short and simple :) with kind regards, Joffrey van Wageningen On Fri, 9 Nov 2001, Hidayet Dogan wrote: > Or other way: > > while (list($key, $val) = each($HTTP_POST_VARS)) > echo "$key = $val\n"; > > On Fri, 9 Nov 2001, Vladimir Galkov wrote: > > > Good day! > > Is there any way to get names of vars and values from $HTTP_POST_VARS if I > > don't know their names and (ofcourse) values? (number can be taken from -- 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] get names of vars $HTTP_POST_VARS?
Or other way: while (list($key, $val) = each($HTTP_POST_VARS)) echo "$key = $val\n"; Hidayet Dogan [EMAIL PROTECTED] Pleksus Bilisim Teknolojileri D.T.O. A.S. -- caldiran sok. 14/6 06420 kolej ankara * www.pleksus.com.tr tel : +90 312 4355343 * faks: +90 312 4354006 On Fri, 9 Nov 2001, Vladimir Galkov wrote: > Good day! > Is there any way to get names of vars and values from $HTTP_POST_VARS if I > don't know their names and (ofcourse) values? (number can be taken from > count($HTTP_POST_VARS) ) ... > > This is nesesery to write a function wich write log of user's work with > remote filesystem. > Vladimir Galkov > [EMAIL PROTECTED] > ICQ 84873967 > > > > -- > 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] > -- 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] get names of vars $HTTP_POST_VARS?
RTFM HTTP_POST_VARS is an array, so you can iterate with forach: foreeach($HTTP_POST_VARS as $variableName => $variableValue){ echo "In Variable $variableName you submitted: ".htmlentities($variableValue)."\n"; } For further information go on http://www.php.net, there is a _very_ good documentation. (For this topic look at "array functions") Stefan Rusterholz, [EMAIL PROTECTED] -- interaktion gmbh Stefan Rusterholz Zürichbergstrasse 17 8032 Zürich -- T. +41 1 253 19 55 F. +41 1 253 19 56 W3 www.interaktion.ch -- - Original Message - From: "Vladimir Galkov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 09, 2001 1:36 PM Subject: [PHP] get names of vars $HTTP_POST_VARS? > Good day! > Is there any way to get names of vars and values from $HTTP_POST_VARS if I > don't know their names and (ofcourse) values? (number can be taken from > count($HTTP_POST_VARS) ) ... > > This is nesesery to write a function wich write log of user's work with > remote filesystem. > Vladimir Galkov > [EMAIL PROTECTED] > ICQ 84873967 > > > > -- > 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] > > > -- 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]
[PHP] get names of vars $HTTP_POST_VARS?
Good day! Is there any way to get names of vars and values from $HTTP_POST_VARS if I don't know their names and (ofcourse) values? (number can be taken from count($HTTP_POST_VARS) ) ... This is nesesery to write a function wich write log of user's work with remote filesystem. Vladimir Galkov [EMAIL PROTECTED] ICQ 84873967 -- 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] Javascript & php / need help
x> The problem is, i need a javascript which i can write into the database, x> which on the oher side can read out a php SESSION. Is this possible? x> Yes? how? Javascript in browser php on server Pass varibales from javascript -> php via urls and forms Pass varibales from php -> javascript via echo's -- Kind regards, Morten Winkler -- 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]
[PHP] Javascript & php / need help
The problem is, i need a javascript which i can write into the database, which on the oher side can read out a php SESSION. Is this possible? Yes? how? It's for a navigation bar wich gets the names of links in the navigation bar out of the database, and i have a SESSION where he writes in, the name of the guy wich is logged in, so i want to make a link in the menu bar with his name! I hope this eyplains my problem a little bit. If u need more details to help me please contact me at [EMAIL PROTECTED] Thanks! [ mysql php4 iis win2k ] -- 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] PHP Redirect / header("location: ")
Make sure that there is no output from your PHP script - or any HTML code whatsoever - before you call the header function. Cheers Scott - Original Message - From: "phantom" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 09, 2001 11:01 AM Subject: [PHP] PHP Redirect / header("location: ") > I am trying to set up a redirect scirpt that in ASP was > response.redirect(escape("newpage.asp")). > > I tried in PHP >> header("location: newpage.php") > > but all i got was an error message saying that my header content had > already been sent. This PHP script was above the html script. > > Am I doing something wrong? Thank you. > > > -- > 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] > > -- 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] PHP Redirect / header("location: ")
> Am I doing something wrong? Thank you. You may print nothing before the redirect header! ?> - Original Message - From: "phantom" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 09, 2001 10:01 AM Subject: [PHP] PHP Redirect / header("location: ") > I am trying to set up a redirect scirpt that in ASP was > response.redirect(escape("newpage.asp")). > > I tried in PHP >> header("location: newpage.php") > > but all i got was an error message saying that my header content had > already been sent. This PHP script was above the html script. > > Am I doing something wrong? Thank you. > > > -- > 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] > -- 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]
[PHP] PHP Redirect / header("location: ")
I am trying to set up a redirect scirpt that in ASP was response.redirect(escape("newpage.asp")). I tried in PHP >> header("location: newpage.php") but all i got was an error message saying that my header content had already been sent. This PHP script was above the html script. Am I doing something wrong? Thank you. -- 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]
[PHP] php test page not working with apache 1.3.22
Hi all, I've just finish upgrading my apache server to apache 1.3.22, I have also compiled my php-4.0.6 with it. When I try to test it using saved as php, the browser tries to download it instead. I have added the application type under httpd.conf and restarted the server ./apachectl restart. when I type ./apachectl status it does not show that the php-4.0.6 has be compiled with it. Am i missing some steps? please point me out, p.s. i have added the module of php4 /libphp4.a to apache and did the make command to make it executable. Thanks, Caleb Carvalho Application Engineer LoadRunner/APM - Enterprise Testing and Performance Management Solutions - Mercury Interactive 410 Frimley Business Park Frimley, Surrey. GU16 7ST United Kingdom Telephone : +44 (0)1276 808300 _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- 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] Looking for security annoucements
I'm running phpBB not phpNuke and I'm subcribed to Buftraq, hope the otehrs are more helpful for me... Jimmy -- 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]
php-general Digest 9 Nov 2001 08:34:51 -0000 Issue 984
php-general Digest 9 Nov 2001 08:34:51 - Issue 984 Topics (messages 73939 through 74004): Re: file problem: I can´t read 73939 by: Thargor Re: PHP and/or linux issue? 73940 by: John S. Huggins 73942 by: Gaylen Fraley Re: Apostrophes and Textareas 73941 by: Jeff Gannaway Re: if found... 73943 by: Christian Executing php code within a string 73944 by: Chris Hobbs 73945 by: Thargor 73946 by: Julio Nobrega Trabalhando 73949 by: Chris Hobbs Re: Q: How can I load a file to a frame 73947 by: Christoph Pross 73948 by: Jim Lucas 73950 by: Christoph Pross 73951 by: Christoph Pross It Works! 73952 by: Christoph Pross Searching for aeromail.php 73953 by: Don QTDom Documentation 73954 by: root 73956 by: federico.kalporz.com Find Near Zipcode Routine 73955 by: Roy W Multiple SUBMIT Buttons and Default 73957 by: Jason Caldwell 73958 by: Boget, Chris 73959 by: Johnson, Kirk 73977 by: Tom Rogers apache 2.x.x 73960 by: Tyler Longren 73963 by: Martín Marqués Array HELP PLEASE 73961 by: René Fournier 73964 by: René Fournier 73965 by: Martín Marqués 73966 by: Jim Lucas 73967 by: René Fournier 73968 by: Martin Towell Re: Error control and the like 73962 by: CC Zona 73970 by: GB Clark II Re: [PHP-DB] RE: [PHP] Newbie Question 73969 by: Bill Adams phpChess - need beta testers 73971 by: Brian CF convert question.. 73972 by: Kelly Meeks 73973 by: Daniel Reichenbach Re: HTTP_SESSION_VARS 73974 by: Ozgur Demirtas 73975 by: Johnson, Kirk Re: help with Auth in Apache 73976 by: David Robley Append to STDIN 73978 by: Cleber S. Mori 73980 by: David Robley 73988 by: Cleber S. Mori 73989 by: Martin Towell sessions and SSI 73979 by: Christian Dechery Re: html2pdf 73981 by: burk Part Time PHP/MySQL Work Available in Wash. DC 73982 by: Charlie Romero email receipt confirmation 73983 by: WebDev 73985 by: Kurt Lieber Want to remove some special from text 73984 by: Manisha 73986 by: Kurt Lieber Troubles compiling Apache with PHP4 73987 by: Eric Re: Forking and BG processes in PHP 73990 by: Yasuo Ohgaki how to echo data in a textarea 73991 by: Scott 73993 by: Jeff Gannaway 73994 by: Chris Kay Re: pass javascript variable to php? 73992 by: Yasuo Ohgaki *.png - wrapping text 73995 by: jtjohnston IMP 73996 by: edward.ita.org.mo Re: Download script - sometime works sometime not 73997 by: Gede 73998 by: Jason Murray Looking for security annoucements 73999 by: Jimmy 74000 by: Brian Clark 74001 by: Jochen Kächelin 74002 by: Brian Clark MySQL/PHPMyAdmin 74003 by: jtjohnston create new user mailbox 74004 by: heksaputra Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- --- Begin Message --- Hallo Alejandro, Thursday, November 08, 2001, 8:37:11 PM, you wrote: > here is source code. The message it prints is: "no guarda en el búfer" perhaps try buffer in line 4 correct code: -- Thargor mailto:[EMAIL PROTECTED] http://www.vergessene-welt.de --- End Message --- --- Begin Message --- On Thu, 8 Nov 2001, Gaylen Fraley wrote: >-lookup of the mx-rr.domain.com of the e-mail address. When it doesn't find >-an mx record, it rejects it with a 501 error. Windoze doen't use the mx >-lookup, so it attempts to send the email and it works. >- >-My question is this: How do I tell the mail() (or sendmail) not to do the >-mx record validation? Thanks. I have to ask. Why is the email MX record invalid? ** John Huggins VANet 7101 Oriole Avenue Springfield, VA 22150 703-912-6453 703-912-4831 fax [EMAIL PROTECTED] http://www.va.net/ ** --- End Message --- --- Begin Message --- I don't know. I know the person and there is no issue there. Here is the full error, although I have changed his actual address: -- Forwarded message -- Date: Thu, 8 Nov 2001 09:37:01 -0600 From: Mail Delivery Subsystem <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Returned mail: see transcript for details The original message was received at Thu, 8 Nov 2001 09:37:00 -0600 from nobody@localhost - The following addresses had permanent fatal errors - [EMAIL PROTECTED] (reason: 501 5.1.8 <[EMAIL PROTECTED]>... Domain of sender address [EMAIL PROTECTED] does not exist)
[PHP] create new user mailbox
How to create a new user mailbox in PHP ?