[PHP] PHP & XML

2001-12-07 Thread Steve Haemelinck
Hi Guys I am developing with PHP and XML. Now I experience some problem with the processing instructions of xml () which causes PHP to return a parsing error. This is logical because http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] PHP and JAVA

2001-12-02 Thread Steve Haemelinck
Hi all Does anyone got any experience with JAVA in PHP? I tried to rebuild php with java support. Everything worked well but when I try to initiate Java in PHP, I get cannot instantiate Virtual machine. I use kaffe and I believe I have configured PHP correctly. See http://www.haemelinck.be:8080/

[PHP] Setting Cookies

2001-12-10 Thread Steve Osborne
registered users section. Should I be setting the cookie on the top of the page that I am sending them to? Any comments or suggestions would be greatly appreciated. Steve Osborne [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Redirect function

2001-12-10 Thread Steve Osborne
Is there a function or command in php that will redirect a user to another page, similar to Response.Redirect(URL) in ASP? Steve Osborne Database Programmer Chinook Multimedia Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] Class methods and inheritance...

2001-12-11 Thread Steve Cayford
Hi. Is there a way to find the class name of a method when called in the class::method() format? If called on an object (eg. object->method()) I could just ask for get_class($this), but when called as class::method(), $this should not be defined. Anyway around this? Thanks. -Steve --

Re: [PHP] Date formatting

2001-12-11 Thread Steve Cayford
On Monday, December 10, 2001, at 09:35 PM, phantom wrote: > What would be an easy what to format a date value into month day year?? > I want to specially display a date stored in mysql in date format > -MM-DD > > The manual says: string date (string format, int [timestamp]) > > I tried $For

[PHP] Cookie Retrieval

2001-12-11 Thread Steve Osborne
("location: index.php"); }else{ print("The cookie plan didn't work."); } Any suggestions would be appreciated. Steve Osborne Database Programmer Chinook Multimedia Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

[PHP] Cookie

2001-12-12 Thread Steve Osborne
ly in that directory or domain? Will it be retrieved in subfolders of that directory? Do I require special code to allow it to be accessed in subfolders? Steve Osborne Database Programmer Chinook Multimedia Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] last entry in mysql

2001-12-12 Thread Steve Edberg
the last id but to no avail. > >Thanks >Yoed > -- +----+ | Steve Edberg [EMAIL PROTECTED] | | University of California, Davis (530)754-9127 | | Programm

Re: [PHP] phplib???

2001-12-13 Thread Steve Edberg
;thanks in advance. > -- +----+ | Steve Edberg [EMAIL PROTECTED] | | University of California, Davis (530)754-9127 | | Programming/Database/SysAdmin http

[PHP] Passing Variables

2001-12-14 Thread Steve Osborne
Can someone tell me how to pass a variable in the url? I am using a form and calling a handler file as its action, as in: I've also tried single quotes around the variable $login, as in: Anyone have any suggestions? Cheers, Steve Osborne Database Programmer Chinook Multimedia Inc. [

Re: [PHP] Passing Variables-SOLVED

2001-12-14 Thread Steve Osborne
Thanks for the advice... just had to remember that the variable had to be in php tags, as in: Thanks for the help, problem solved. Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Displaying html

2001-12-17 Thread Steve Osborne
Does anyone know of an easy way to store html code in a mysql database, and then retreive it, in such a way that it can display the page as if it were a standard html page? Would using php be of benefit to me? Steve Osborne [EMAIL PROTECTED] * *(borrowed from Paul) -- PHP General Mailing

[PHP] Re: Returning html code-PROB SOLVED

2001-12-17 Thread Steve Osborne
at escape problem characters in databases and unescape them when retrieved. Problem solved. Steve Osborne [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 admin

Re: [PHP] Error while calling a function

2001-12-18 Thread Steve Cayford
hone); If you don't hit the else block, your is_phone function is probably not defined. -Steve On Tuesday, December 18, 2001, at 07:26 AM, J.F.Kishor wrote: > hi all, > > I have got a problem, when I execute the following script it gives > a Fatal error, could any one t

Re: [PHP] Working with designers...

2001-12-18 Thread Steve Osborne
it will protect you in the future if problems do arise. Good luck, Steve Osborne Database Programmer Chinook Multimedia 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

Re: [PHP] $PHP_SELF not working -please help

2001-12-19 Thread Steve Edberg
ction() { ... echo $GLOBALS['PHP_SELF']; .. } To the best of my knowledge, PHP_SELF is set regardless of the register_globals configuration setting, but I'm not 100% sure. -steve At 11:13 AM + 12/19/01, Caleb Carva

Re: [PHP] PHP3 NOT being parsed for SSI!! HELP!!

2001-12-20 Thread Steve Edberg
If you're using PHP as an Apache module, you can use virtual() - http://www.php.net/manual/en/function.virtual.php - to include the dynamic parts; vcstatic includes could be handled by virtual() or just a normal PHP include()/require(). - steve At 11:09 PM -0800 12/

Re: [PHP] Number Format

2001-12-20 Thread Steve Edberg
rote: > > > I would like to format numbers to be a fixed width. > > > > I want all numbers to be 2 characters in width to the left of the > > decimal point. > > > > 1 should be 01 > > 2 should be 02 > > 3 should be 03 > > > > How can I do this

[PHP] sessions and authentication

2001-12-21 Thread Steve Maroney
HTTP_GET_VARS[user_authenticated]); but that didn't do me any good. Please advise. Thank you, Steve Maroney -- 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: some body flood mypage how can I prevent them ?

2001-12-21 Thread Steve Maroney
ED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > Thank you, Steve Maroney -- 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] faxing in PHP

2001-12-24 Thread Steve Maroney
There are many different fax daemons for unix and windows. Thier command line tools are differnt. In the past, I have sent a fax by opening a process to the command line tools provided by the fax software. I simply use PHP variables as arguments. Hope this helps. Steve On Mon, 24 Dec 2001, LDL

[PHP] register_globals & PHP_SELF

2001-03-21 Thread Steve Haemelinck
Does the PHP_SELF variable only work if you have your register_globals on? Is their an another for still using it ? Thx -- 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 administrat

[PHP] php sessions and classes

2001-03-26 Thread Steve Brett
er pages and scripts ? Steve -- 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] file deletions ....

2001-03-28 Thread Steve Brett
he files i want to delete but seem unable to delete them. can anyone help ? Steve -- 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] file deletions ....

2001-03-28 Thread Steve Brett
""Phil Driscoll"" <[EMAIL PROTECTED]> wrote in message 001201c0b768$60da60a0$0c81@philsntserver">news:001201c0b768$60da60a0$0c81@philsntserver... > Steve > > unlink works fine for me (on my nt boxes) providing the anonymous web user > has p

Re: [PHP] split string value again

2001-03-29 Thread Steve Werby
ipt a few months ago that does what you want. Even if you don't need something this complex in your case, my code uses 5 or 6 string functions and arrays so it's a pretty good example of how to manipulate strings in PHP. -- Steve Werby President Befriend Internet Services LLC Tel: 8

[PHP] $PHP_SELF

2001-03-31 Thread Steve Haemelinck
Anybody got an idea why $PHP_SELF isn't working with me? I think because I have set my register_globals to off, but how can I get the value of $PHP_SELF an another way ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP] Execute Shell command?

2001-04-01 Thread Steve Werby
script and what are the permissions on it? Is PHP running as an Apache module or as a CGI? If it's an Apache module, what owner does Apache runs as? Also, if your system is a Cobalt RaQ you may want to post to the cobalt-users mailing list (http://list.cobalt.com/mailman/listinfo/cobal

Re: [PHP] Question: Number of Characters

2001-04-01 Thread Steve Edberg
} For more information, see http://www.php.net/manual/en/function.strlen.php http://www.php.net/manual/en/function.substr.php http://www.php.net/manual/en/function.substr-replace.php -steve >if the string was: > >hi my name is > >it is returned

Re: [PHP] ereg

2001-04-01 Thread Steve Edberg
> >Check out the regular expression documentation or "Mastering Regular >Expressions" over at ora.com. > If by 'spaces' you want to include tabs, newlines & stuff, you can also do: if (!ereg("^[[:alnum:][:space:]_-]+$

Re: [PHP] Search Engines

2001-04-01 Thread Steve Werby
i:s" ) . " GMT" ); Making your webpages appear at the top of search engines for your desired search phrases is another story. Though I live talking about search engine optimization strategies and steps, this isn't the right forum for giving away all of the secrets. -- Steve Wer

Re: [PHP] session in php3 and in php4

2001-04-01 Thread Steve Werby
session handling in PHP4 see the manual (http://www.php.net/manual/en/ref.session.php) and you may want to check zend.com, phpbuilder.com, etc. for tutorials, code snippets and examples. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List

Re: [PHP] Starting a Forum?!

2001-04-02 Thread Steve Werby
yperlinks, but not other tags. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.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]

Re: [PHP] Can php read and than print file like it is

2001-04-02 Thread Steve Werby
possible. Post your code so we can see what you've tried. I suggest using fopen() and fgets() to accomplish what you want. The first example in the manual at http://www.php.net/manual/en/function.fgets.php does exactly what you want. -- Steve Werby President, Befriend Internet Services LL

Re: [PHP] Can php read and than print file like it is

2001-04-02 Thread Steve Werby
"Jan Grafström" <[EMAIL PROTECTED]> wrote: > Thank You Steve! > Here is my php > > $fillista = "fillista.xml"; > $fp = @fopen($fillista,r); > $count = fgets($fp,filesize($fillista)); > fclose($fp); > print "fillista=".$count;

Re: [PHP] Looping through the alphabet [was: Why does it work this way?]

2001-04-02 Thread Steve Werby
You may know this already and not have a need, but for the benefit of others who may have read your post, you can loop through 'a' to 'z' using the chr() function as follows: -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP G

Re: [PHP] duplicate a table

2001-04-02 Thread Steve Werby
statements from your table, edit the table name and then use MySQL to run the INSERTs. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: [PHP] SQL : multiple SELECT and missing rows.

2001-04-02 Thread Steve Werby
SELECT * FROM accounts LEFT JOIN addresses ON addresses.ID = accounts.ID > Can anyone suggest me how do I SELECT ALL of the accounts having simply NULL > on 'addresses.*' when there's no such row, instead of 'loosing' the whole > 'account' row?

Re: [PHP] Please Help!

2001-04-02 Thread Steve Werby
"E K L" <[EMAIL PROTECTED]> wrote: > $tpl = new FastTemplate("../usr/local/apache/htdocs/toplevel.tpl"); According to the error, the path above is incorrect. Looking at it, my guess is that the path might really be: "/usr/local/apache/htdocs/toplevel.tpl&qu

Re: [PHP] Cobalt RaQ XTR(slightly OT)

2001-04-03 Thread Steve Werby
e functions and may need to go through some code. And if the new and old versions are configured differently (like having differences in whether magic quotes is on/off and short PHP tags are on/off) you may have to make some code changes. Otherwise it should be a pretty smooth transition.

Re: [PHP] upgrade question

2001-04-03 Thread Steve Werby
tion. > Could anyone help me to find out where phpinfo() is pulling it's information > or direct me to an upgrade "how to" > for PHP ? Perhaps you should try deleting the old install first. locate php, then rm -rf [DIRECTORIES_HERE] or rpm -e [PHP_PKG_HERE]. -- Steve Wer

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Steve Werby
rol, there's no way to check down to that level. And be happy there isn't. Otherwise the amount of spam you get right now will increase ten fold. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Steve Werby
"Steve Werby" <[EMAIL PROTECTED]> wrote > Renze is correct. Unless you're checking local email addresses which you > control, there's no way to check down to that level. And be happy there > isn't. Otherwise the amount of spam you get right now will

Re: [PHP] column names

2001-04-03 Thread Steve Werby
t; I need to get information about the columns using sql. > that information is to be accessed with a php script. so, I'm looking > for something resembling "select info from table" Check the online manual for more functions and other databases. -- Steve Wer

Re: [PHP] Slow running PHP

2001-04-03 Thread Steve Werby
;re not using $resolvedhost anywhere in the script so why are you defining it? -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Steve Werby
<[EMAIL PROTECTED]> wrote: > ** Reply to note from "Steve Werby" <[EMAIL PROTECTED]> Tue, 3 Apr 2001 15:24:29 -0400 > > > > > > I should have said there's no *reliable* way to check whether an email > > address on an external server is vali

Re: [PHP] error on last line of file (tearing hair out)

2001-04-03 Thread Steve Werby
ug in my > code, but PHP4 isn't reporting the correct line? Maybe you have a missing closing bracket "}". > Thanks in advance, and I can psot the code if people think it will help... If it's not a missing closing bracket, post the code. -- Steve Werby President, Befrie

Re: [PHP] Oracle NVL equivalent for MySQL?

2001-04-04 Thread Steve Werby
t you? There's no such beast in MySQL, but you can do this: IF( my_field IS NULL, your_expression, my_field) -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: [PHP] Reading from a webpage

2001-04-04 Thread Steve Werby
anguage like PHP you won't be reading the PHP source code. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To conta

Re: [PHP] PHP code to verify existing URL???

2001-04-04 Thread Steve Werby
stall. You could also use an existing open source application like mnogosearch. > What about search the META tags as well?? Read the manual - there are functions specifically for this (though they won't work if the meta tags aren't exactly as expected). -- Steve Werby Pres

Re: [PHP] Item in two db tables

2001-04-04 Thread Steve Werby
bout LEFT JOINs in the manual. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.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]

Re: [PHP] BUG - Someone else please verify B4 I file

2001-04-04 Thread Steve Werby
I suspect this will do the trick: ! empty() instead of: isset() Or Jeff (Data Driven Design), did you use a different technique? -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

Re: [PHP] PHP.net is slow

2001-04-04 Thread Steve Werby
the right...I mean wrong times. > How about a downloadalbe version of the site? Does such a thing exist? You can download the manual. See http://php.net/docs.php. If you want the entire site you're going to probably have to slurp it using a spider. -- Steve Werby President, Befriend I

Re: [PHP] Another include ?

2001-04-05 Thread Steve Werby
st called. Then in your main PHP file that calls it use eval() to parse the variable before using it. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [PHP] column names

2001-04-05 Thread Steve Werby
within the logic of the PHP script. Depends what he needs to do. I still think mysql_field_name() / pg_fieldname() are the way to go, though Mauricio never mentioned which DBMS he's using. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General

Re: [PHP] Left Join Across Two Databases

2001-04-05 Thread Steve Werby
t; be coded in PHP to do this? Just prepend the DB name to the table selecting from: SELECT table_1_from_db_connected_to, other_db_name.table_2 ... And make sure that the user for the first DB has permissions for the second DB. -- Steve Werby President, Befriend Internet Services LLC http://

Re: [PHP] inlude_path not in php.ini

2001-04-05 Thread Steve Werby
syntax between PHP3 and PHP4 if you're using the old style. The new style is: php_flag include_path ".:./lib" Directories are separated by colons. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] scramble the code -sneaky solution (redux)

2001-04-05 Thread Steve Werby
ill quite handy ;) I have 4.03 installed on a RaQ2 and AFAIK it will install on a Qube2 since they share the same software. I've yet to install 4.04 on a RaQ2 though. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.

Re: [PHP] IF this then, move to this line...

2001-04-05 Thread Steve Werby
Ahh, the good old days of GOTOs in BASIC. ;-) There isn't a method for referring to a line number within PHP. Enclose your code in functions and do this: if () { true_function_here(); } else { false_fucntion_here(); } If you haven't worked with functions, consult the online manual.

Re: [PHP] fopen wierdness

2001-04-05 Thread Steve Werby
URL with 'http://'. If that's a local file and it's not finding the file, make sure the path is correct. > now when i rename the doc to something.htm, ill get the contents? Which document - the one being called by fopen() or the one containing the PHP script? -- Steve Werby Presi

Re: [PHP] fopen wierdness

2001-04-05 Thread Steve Werby
"Steve Werby" <[EMAIL PROTECTED]> wrote: > acutally i found my problem, what was happening was that script1 that was > on the server that file resides had that file open at the same time that > scirpt2 was trying to open via http, when i change that files name, the &

Re: [PHP] close tcp-IP connection before php-skript finishes

2001-04-05 Thread Steve Werby
; Is it possible to terminate the tcpIP connection, before the php script ends? > (I think this would solve my problem) Perhaps register_shutdown_function() will do the trick. I've used it on scripts where a call to an external command or long DB operation took a long time, but did

Re: [PHP] function and global problems

2001-04-06 Thread Steve Werby
osetup/auto/test.php on line 25 > } > getdata( ) > > echo $domain; <--This is line 25 which is outside of the function getdata(); // Don't forget the semicolon. As a general rule, missing semicolons ";" and braces "}" on lines above those mentioned in t

Re: [PHP] PHP/MySQL Code

2001-04-06 Thread Steve Werby
ot;0") { > if ($num = '0') { The single "=" sets the variable $num to that value. A double "==" is an equality comparison operator - that's what you want in this case. Also, since mysql_numrows() returns a number, not a string, you don't need

Re: [PHP] PHP/MySQL Code

2001-04-06 Thread Steve Werby
esult); Either will work. mysql_numrows() is the old name of the function from previous PHP versions. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: [PHP] Newsletter on the way..stuck in the moment!

2001-04-06 Thread Steve Werby
e to: field. I believe this is covered in an example right in the manual. See mail() in the manual online. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: [PHP] Help please.

2001-04-06 Thread Steve Werby
ing from PHP3 to PHP4 consists of installing PHP4. You can install php with apxs (--with-apxs flag) in which case you don't need to recompile Apache or you can recompile Apache and install it as a static module directly in the Apache binary. -- Steve Werby President, Befriend Internet Services

Re: [PHP] Update: 1767 functions!

2001-04-06 Thread Steve Werby
ns at Zend's PHP function table, but I'm pretty sure it's greater than the # at the URL above. http://www.zend.com/phpfunc/ -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

Re: [PHP] register_shutdown_function - uses for

2001-04-10 Thread Steve Werby
ernal programs that took a long time, but did not affect the output sent to the browser. In those cases I used register_shutdown_function() inside a control structure to call another function (after outputting HTML from within the same control structure). -- Steve Werby President, Befriend Internet

Re: [PHP] site review

2001-04-11 Thread Steve Werby
ms lead you to believe performance needs to be improved. If by "performance" you mean "generating more revenue or increasing page views" I have plenty of ideas, but the last thing the world needs anyway is another hotornot.com copycat. -- Steve Werby President, Befriend Internet Se

RE: [PHP] HTTP_POST_VARS

2001-04-12 Thread Steve Edberg
In PHP3, POST/GET elements could only be one dimensional arrays, at most. In PHP4, though, these can have 2+ dimensions, so for maximum generality you'd have to have somewhat more complex code than this. -steve >-Original Message- >From: Mat Marlow [mailto:[EMAI

Re: [PHP] Fetch_row

2001-04-12 Thread Steve Edberg
$row[5]=mysql_fetch_row($result); would simply create a 1-element array $row, with the array index 5. If this was your first fetch statement, $row[5] would still contain the first row of the result set. -steve -- +--- 12 April 2001: Forty years of manned

Re: [PHP] variables in a e-mail

2001-06-18 Thread Steve Werby
al first or access like $GLOBALS["HTTP_POST_VARS"]["my_form_field"]. So, in your example you'd do: $msg_body = "Hello, " . $GLOBALS["HTTP_POST_VARS"]["variable"]; -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

Re: Re[2]: [PHP] variables in a e-mail

2001-06-19 Thread Steve Werby
ns to replace all template variables with their corresponding PHP variable. As you loop through each line and parse it add the parsed line to a string. When you're done include the string in a mail() function to email it or use a file function to write it to a file. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

Re: [PHP] validate phone numbers

2001-06-20 Thread Steve Werby
ess numbers with extensions or automated systems that have to be traversed. So you may be better off not validating the phone #. YMMV. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

Re: [PHP] bad form...

2001-06-20 Thread Steve Edberg
need to redirect the user to another page (after a successful login or registration), I can use a header("Location: somewhere.else/to/go.html") line. -steve At 8:12 PM -1100 6/19/01, motorpsychkill wrote: >hello everyone, is it 'bad form' (no pun in

Re: [PHP] logout

2001-06-20 Thread Steve Werby
"Jacky" <[EMAIL PROTECTED]> wrote: > Is there anyway I can do the logout that will completely > get rid of all login detail without having user to close browser? If you're using sessions session_destroy() will do it. Create a link or form button that calls tha

Re: [PHP] ***Get a piece of the #1 CASH MACHINE on the net***

2001-06-20 Thread Steve Maroney
Hmmm.. a porn site writen with PHP ? On Wed, 20 Jun 2001, [EMAIL PROTECTED] wrote: > > SEX SELLS!!! > > Enjoy the riches of the most lucrative business in the world without being "in the >business". > > If you are in need of money quickly, This is for you. You don't have to access the >web

Re: [PHP] PHP3

2001-06-21 Thread Steve Edberg
x27;re getting. The only thing that might conceivably be a problem is the table alias syntax. What you have _should_ work, but you could also try Select a.field, b.field from table_one AS a, table_two AS b where a.id = b.id - steve At 1:48 PM -1000 6/20/01, William Poarch wrote

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Steve Edberg
See www.php.net/stripslashes Also check out the PHP configuration settings for magic_quotes_gpc -steve At 9:18 PM -0700 6/26/01, Marcus James Christian wrote: >Hello, > >I'm pretty new to PHP but all I've seen of it so far I pretty much love! > >I've bui

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Steve Werby
"Marcus James Christian" <[EMAIL PROTECTED]> wrote: > \' How can I filter out these backslashes so they don't appear on the > final public viewable page? Use stripslashes(). -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ --

Re: [PHP] search

2001-07-03 Thread Steve Werby
or one word can be made to find other forms of that word. FYI, to break a string into an array like you describe use strlen() to get the length of the string, substr() to pull out the first N characters from the string, then loop through and add each element to an array by adding as follows (pseudocode):

Re: [PHP] recommend a good PHP site specific search engine

2001-07-03 Thread Steve Werby
ttp://www.mnogosearch.org/ -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.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]

Re: [PHP] Security of PHP code

2001-07-04 Thread Steve Werby
Modify as appropriate. > > Have I missed anything, or will this do the trick? Something along those lines will work. Without some kind of limitations built in, the page will be able to load any file that's world-readable so it's a good idea to limit access to certain directories

Re: [PHP] split() function

2001-07-04 Thread Steve Edberg
, not multiple character strings like '//'. - steve At 3:21 PM -0400 7/4/01, David A Dickson wrote: >Thanks for replying ReDucTor but that didn't work either. I tried >$line = explode("[(&|//)]", $field); and >$line = explode("[(&|)]", $fie

Re: [PHP] Removing Invalid Users

2001-07-04 Thread Steve Werby
f matching emails and changes a flag in your DB record to designate the email address as valid or a script in the webpage that does the same. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

Re: [PHP] Security of PHP code

2001-07-04 Thread Steve Werby
"Sascha Schumann" <[EMAIL PROTECTED]> wrote: > On Wed, 4 Jul 2001, Steve Werby wrote: > > > "Jon Haworth" <[EMAIL PROTECTED]> wrote: > > > Yes, I would have thought this would do it: > > > > > > if (strstr($file, "/usr/l

Re: [PHP] checking if checkbox is checked

2001-07-04 Thread Steve Werby
don't want to clutter the code. The code below assumes the fields aren't preset to values other than those listed above. for ( $i = 1; $i < 4; $i++ ) { $field = 'interest' . $i; if ( ! empty( $$field ) ) { $flag = TRUE; } } if ( $flag =

[PHP] Socket Madness !!!!

2001-07-05 Thread Steve Brett
Hi, I need to set up a sockets connection to a server that was written in Delphi. Using the following code I can connect to the socket and send a message through it but don't get a reply back ... { echo "Socket opened ok ... sending message"; $message=s

RE: [PHP] Socket Madness !!!!

2001-07-05 Thread Steve Brett
fixed it now by adding ascii(10) to reply from server BUT what if i use fgetc ? does anyone know the ascii value for EOF ? cheers, Steve > -Original Message- > From: Steve Brett [mailto:[EMAIL PROTECTED]] > Sent: 05 July 2001 12:58 > To: Php-General (E-mail) > Subjec

RE: [PHP] session troubles

2001-07-05 Thread Steve Brett
your session_start() has to be the first thing in the page. no blank lines etc. like right at the top of your page. a blank line will send header info ... Steve > -Original Message- > From: Brad Wright [mailto:[EMAIL PROTECTED]] > Sent: 05 July 2001 16:21 > To: [EMA

Re: [PHP] Missing first record in PHP/Mysql query

2001-07-05 Thread Steve Edberg
ctions - fopen, fwrite, fclose will be of particular interest: http://www.php.net/manual/en/ref.filesystem.php >thanks, > >rory > >providing the finest in midget technology > -- +-- Factoid: Of the 100 largest economies in the world, 51 are --+ | Stev

Re: [PHP] PHP/mySQL Query

2001-07-05 Thread Steve Werby
n table owners the field teamname will be blank. Assuming all of the data is in both tables it's not a problem, but believe me at some point when doing database programming this issue will arise. SELECT teampages.ownerID, teampages.last_update, owners.teamname FROM teampages LEFT JOIN owners

RE: [PHP] Socket Madness !!!!

2001-07-06 Thread Steve Brett
many thanks. i settled for fgetc and checking for a NULL (ascii 0) Steve > -Original Message- > From: David George [mailto:[EMAIL PROTECTED]] > Sent: 05 July 2001 21:50 > To: Justin Farnsworth > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Socket Madness > &

RE: [PHP] Single quote

2001-07-06 Thread Steve Brett
string stripslashes (string str) Returns a string with backslashes stripped off. (\' becomes ' and so on.) Double backslashes are made into a single backslash. Steve > -Original Message- > From: Andy [mailto:[EMAIL PROTECTED]] > Sent: 06 July 2001 10:29 >

Re: [PHP] is_alpha_numeric ?

2001-07-06 Thread Steve Werby
"John Monfort" <[EMAIL PROTECTED]> wrote: > I'm trying to determine if an argument is alphanumeric. Is there a > function to do this? There may be in the CVS version (would have to check), but there's not in 4.0.6. eregi( [[:alnum:]]{1,}, $string ) may do the

[PHP] Re: string formatting help

2001-07-06 Thread Steve Edberg
s with spaces or newlines, the output _should_ all be on one line, since HTML considers ALL strings of whitespace (tabs, newlines, returns, spaces) to be a single space. If you replaced 's with newlines and you are getting the line breaks still, your output may be in a ... block. - steve

Re: [PHP] foreach loop

2001-07-07 Thread Steve Edberg
lso note that foreach operates on a copy of the specified array, not the array itself, therefore the array pointer is not modified as with the each() construct and changes to the array element returned are not reflected in the original array. - steve >John Meyer >[EMAIL PROT

Re: [PHP] Email verification (was: [PHP] Removing Invalid Users)

2001-07-04 Thread Steve Werby
a number of different email addresses on different hosts and all reported "Command Unimplemented". -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

<    5   6   7   8   9   10   11   12   13   14   >