[PHP] Javascript Calendar and PHP

2005-04-05 Thread Jerry Swanson
What Javascript calendar works good with PHP?
Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Why do I get the warning messages in this case? When I execute script from shell. If I execute script from browser, no warnings.

2005-03-31 Thread Jerry Swanson
php time_test.php
PHP Warning:  Unknown(): Unable to load dynamic library './domxml.so'
- ./domxml.so: cannot open shared object file: No such file or
directory in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './imap.so' -
./imap.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './ldap.so' -
./ldap.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './mysql.so' -
./mysql.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './odbc.so' -
./odbc.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './pgsql.so' -
./pgsql.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './snmp.so' -
./snmp.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './xmlrpc.so'
- ./xmlrpc.so: cannot open shared object file: No such file or
directory in Unknown on line 0
Content-type: text/html
X-Powered-By: PHP/4.3.4

31


//Source Code
?php
setlocale(LC_TIME, C);
echo strftime(%d);

?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] XML HTTP

2005-03-22 Thread Jerry Swanson
It is SOAP. I read tutorial on w3 website. Have one more question:
The data that is exchange in SOAP protocol is encrypted or not?

Thanks 


On Mon, 21 Mar 2005 17:32:59 -0800 (PST), Richard Lynch [EMAIL PROTECTED] 
wrote:
 On Fri, March 18, 2005 11:14 am, Jerry Swanson said:
  I create XML file, how to pass the XML file to another server through
  HTTP?
 
 Let's try it this way:
 What's the other server?
 
 Did you read their FAQ and their documentation?
 
 Here are functions that, depending on what you read on the other server,
 may be helpful:
 
 http://php.net/file (GET)
 http://php.net/fsockopen (POST)
 http://php.net/curl (SSL)
 
 The (WORD) indicates which function you would use, at a minimum, if you
 find that word in the other server's documentation.
 
 Note that in each case, you *could* use the next function down in my list,
 if you wanted to do it the hard way. :-)
 
 YMMV. NAIAA.
 
 --
 Like Music?
 http://l-i-e.com/artists.htm
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] XML HTTP

2005-03-21 Thread Jerry Swanson
I need to use SOAP and I use PHP 5. Do I need to compile PHP with some option?

Thanks 


On Fri, 18 Mar 2005 16:03:20 -0500, Jason Barnett
[EMAIL PROTECTED] wrote:
 Chris Shiflett wrote:
  Jerry Swanson wrote:
 
  I generated XML file. I need to send the file to another server not
  through FTP but though HTTP.
 
 
  Yes, I gathered that, but you're not telling us how you're supposed to
  send it. For example, when Google first provided their web API, they
  didn't say, just send us an XML document. :-)
 
  There are many details you're not giving us (you can leave out the
  details involving the XML document itself, of course), so it's pretty
  much impossible to even guess an answer to your question.
 
  Chris
 
 
 Seriously... Chris is truly trying to help you.  There are many, many
 ways to send an XML file.  The following are HTTP methods off of the top
 of my head:
 
 SOAP (possibly with WSDL)
 Simple HTTP POST (usually through a form)
 Simple HTTP GET (possibly through a form, though passing XML documents
 through URL parameters is probably not A Good Thing.)
 
 It really depends on what the *receiving server* expects.  Is there a
 documented API?  Or perhaps can you just point us to the page (URL) that
 is supposed to receive the XML document?
 
 --
 Teach a man to fish...
 
 NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
 STFA | http://marc.theaimsgroup.com/?l=php-generalw=2
 STFM | http://php.net/manual/en/index.php
 STFW | http://www.google.com/search?q=php
 LAZY |
 http://mycroft.mozdev.org/download.html?name=PHPsubmitform=Find+search+plugins
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] XML HTTP

2005-03-18 Thread Jerry Swanson
I create XML file, how to pass the XML file to another server through HTTP?
Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] XML HTTP

2005-03-18 Thread Jerry Swanson
I generated XML file. I need to send the file to another server not
through FTP but though HTTP.




On Fri, 18 Mar 2005 14:17:28 -0500, Chris Shiflett [EMAIL PROTECTED] wrote:
 Jerry Swanson wrote:
  I create XML file, how to pass the XML file to another server through HTTP?
 
 This is similar to asking how to ship a package, only there are even
 more options. :-)
 
 What is the other server's API? How are they expecting to be sent the
 XML file? HTTP can practically be assumed, but this alone doesn't
 provide enough information.
 
 Chris
 
 --
 Chris Shiflett
 Brain Bulb, The PHP Consultancy
 http://brainbulb.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] replacement

2005-01-25 Thread Jerry Swanson
I'm trying to replace a substr of the string that start from Rated
blahblah; azt the end semicolon.

Example:
safsagfasdfsdfdsfRated by 4 people;fafafaafafaf - return
safsagfasdfsdfdsffafafaafafaf

$replacement =; 
$pattern = /Rated.+;/; 
$found_str = preg_replace($pattern, $replacement, $found_str);

Why this above, doesn't work?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to enable ftp in php5?

2005-01-02 Thread Jerry Swanson
How I can enable php in FTP 5? What I should change in PHP.INI file?

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to set register_globals=off in the script?

2004-12-21 Thread Jerry Swanson
I know that register_globals = on is not secure. But one program
requires to use register_globals=on. So in php.ini register_globals is
set to on.

I have PHP 5.1, is it possible in the code set register_globals=off
for specific scripts.

So I want to keep PHP register_globals=on in php.ini, but in local
files set to off?

How I can do this?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Pass mysql array into SESSION?

2004-12-08 Thread Jerry Swanson
I want to pass an array from one page to excell generation page. I
tried to pass through session($_SESSION['sql'] = $var). But value is
not set.

The array is actually $result = mysql_query($query);

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP upgrade

2004-12-03 Thread Jerry Swanson
How to upgrade PHP 4.3.2 to new version? OS is Linux(Fedora Core 2).

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Script Name

2004-11-26 Thread Jerry Swanson
What variable(parameter) in PHP stores file name?

TH

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Script Name

2004-11-26 Thread Jerry Swanson
I meant, file that are being executed.



On Fri, 26 Nov 2004 09:46:05 -0500, John Nichel [EMAIL PROTECTED] wrote:
 Jerry Swanson wrote:
 
 
  What variable(parameter) in PHP stores file name?
 
  TH
 
 Stores what filename?  The name of the file being executed?
 
 $_SERVER['SCRIPT_NAME']
 
 --
 John C. Nichel
 ÜberGeek
 KegWorks.com
 716.856.9675
 [EMAIL PROTECTED]
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP script + read file

2004-11-21 Thread Jerry Swanson
What is wrong with this code? Why $input_str is empty.

if ($handle = opendir('/home/test2/')) {
   echo Directory handle: $handle\n;
   echo Files:\n;

   while (false !== ($file = readdir($handle))) {
if($file != .  $file != ..){
 $handle1 = fopen($file, a+);
 $input_str = fread($handle1, filesize($file));
 echo TEST.$input_str;
 }
   }

}



On Sun, 21 Nov 2004 05:40:07 +0800, Jason Wong [EMAIL PROTECTED] wrote:
 On Sunday 21 November 2004 05:11, Jerry Swanson wrote:
 
 
  I know how to read a file. But the problem is different, I have
  directory that has more than 250 files. I need to read each file and
  process it. But How I know what file to read?
  ls -l (show all files). How I can select each file without knowing
  name? The file will be process and than delete.
 
 To get list of files from directory:
   manual  Directory Functions
 
 To open/read/write/delete files:
   manual  Filesystem Functions
 
 There are plenty of examples in the manual and in the user notes of the online
 manual.
 
 --
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 Do not try to solve all life's problems at once -- learn to dread each
 day as it comes.
   -- Donald Kaul
 */
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP script + read file

2004-11-20 Thread Jerry Swanson
I know how to read a file. But the problem is different, I have
directory that has more than 250 files. I need to read each file and
process it. But How I know what file to read?
ls -l (show all files). How I can select each file without knowing
name? The file will be process and than delete.

Any ideas?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] HTML form online

2004-11-19 Thread Jerry Swanson
I want to write php script that fill out HTML form online. Any ideas
how to do it?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Segmentation Fault

2004-11-17 Thread Jerry Swanson
I have  index.php file. 
On one server it executes with no problem. 
On another server it gives me Segmentation Fault error.

4.3.2 - Segmentation Fault
4.3.4 - no problem

What can cause such problem? This is simple login page.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP file permission

2004-11-14 Thread Jerry Swanson
What is the optimal PHP file permission?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PHP file permission

2004-11-14 Thread Jerry Swanson
regular php page, some mysql queries and print html on the screen.



On Sun, 14 Nov 2004 18:19:28 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote:
 depends on what you need it for
 
 
 
 Jerry Swanson wrote:
 
  What is the optimal PHP file permission?
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] header variable ?

2004-11-10 Thread Jerry Swanson
What variable header use? If I send something in header, what GLOBAL
variable header use?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Why cookie is created?

2004-11-09 Thread Jerry Swanson
So As I understand. Session also store ID on the harddrive. I don't
see the big difference between session and cookies from privacy
point of view.







On Mon, 8 Nov 2004 17:55:03 -0500, Paul Reinheimer
[EMAIL PROTECTED] wrote:
  --
  I don't want to use cookies.
  I want to use session. When I use this code. It stores data on the harddrive.
  --
 
  When you use Sessions, the data you put in the session is NOT stored
  on the users hard drive in a cookie. Only the Session ID is stored
  there. All of the other information you store in the session (say
  their userid, name, prefernces, security level, etc) is stored on the
  SERVER. The session ID stored in the cookie only serves as a pointer
  to the data stored on your server.
 
  The alternative to allowing PHP to store the users session id in a
  cookie is to have php re-write all of the urls on your page to include
  their session id. Generally this is not the preferred solution for
  several reasons:
  1. URLs look a lot messier eg:
  a) without cookies
  http://forum.example.com/index.php?sid=a568a4c022a2f8491323c5f3ef5888d8
  b) with cookies
  http://forum.edonkey.com/index.php
  2. Users may accidentally give away their session id, and possibly
  open the door to session hijacking.
  3. Users bookmark pages with stale session ids
 
  So, in summary. Using sessions only stores the session id on the users
  hard drive. The rest of the data stored in the session is saved on the
  server.
 
  paul
 
  --
  Paul Reinheimer
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Why cookie is created?

2004-11-09 Thread Jerry Swanson
Why when I specify session.cookie_lifetime = 1 // Cookies are not created.
However, when I specify large lifetime, cookies are created.
session.cookie_lifetime = 1500




On Tue,  9 Nov 2004 08:11:46 -0500, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 I just want to give you a simple example that for diff. of session and cookie 
 is
 that---
 
 When in our gmail account we will see that one option is there to save the
 password for 2 weeks, so that eans when u check that bbox and submit then one
 cookie is created for that comp. with your details nand the expiry time would 
 be
 for 2 weeks (by converting insec.).
 
 And when u r in checking of your in box just copy the contents of address bar
 and then closs all the windo and again paste the address bar link it will 
 sshow
 you the login page because your inforation is stored in seession.So when a 
 page
 starts it first of al it check the session.it will check the session id from
 your co. which is not set when you logged out
 
 FOR SESSION  ==  A visitor accessing your web site is assigned an unique id,
 the so-called session id. The session support allows you to register arbitrary
 numbers of variables to be preserved across requests. When a visitor accesses
 your site, PHP will check automatically (if session.auto_start is set to 1) or
 on your request (explicitly through session_start() or implicitly through
 session_register()) whether a specific session id has been sent with the
 request. If this is the case, the prior saved environment is recreated. 
 
 FOR COOKIE ==  Cookies are a mechanism for storing data in the remote browser
 and thus tracking or identifying return users. 
 
 Ankur Dave
 PHP Developer
 INDIA
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Why cookie is created?

2004-11-08 Thread Jerry Swanson
I don't use cookie for my page. I use session. As I understand cookies
don't create any files on user  computer. I have this code below on my
page.
When I access this page immediately cookie is created on my computer.
Any ideas why?


?php
session_start();
$referral = $_SESSION['referral'];
if(empty($referral)) {
$referral = $_SERVER['QUERY_STRING'];
$_SESSION['referral'] = $referral;
}

?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Why cookie is created?

2004-11-08 Thread Jerry Swanson
; Whether to use cookies.
session.use_cookies = 0

; This option enables administrators to make their users invulnerable to 
; attacks which involve passing session ids in URLs; defaults to 0.
session.use_only_cookies = 1

I changed the global variables on PHP. It still stores cookies on my
harddrive. Any ideas why?
PHP version 4.3.4




On Mon, 08 Nov 2004 16:01:27 -0500, John Nichel [EMAIL PROTECTED] wrote:
 Jerry Swanson wrote:
  I don't use cookie for my page. I use session. As I understand cookies
  don't create any files on user  computer. I have this code below on my
  page.
  When I access this page immediately cookie is created on my computer.
  Any ideas why?
 
 As soon as you call session_start(), you are 'given' a session id.  To
 track this id from page to page throughout you site, it is stored in a
 cookie by default.  It's all in the manual...
 
 http://us4.php.net/session
 
 --
 John C. Nichel
 ÜberGeek
 KegWorks.com
 716.856.9675
 [EMAIL PROTECTED]
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Why cookie is created?

2004-11-08 Thread Jerry Swanson
I don't want to use cookies.
I want to use session. When I use this code. It stores data on the harddrive.

session_start();
$referral = $_SESSION['referral'];
if(empty($referral)) {
$referral = $_SERVER['QUERY_STRING'];
$_SESSION['referral'] = $referral;
}


On Mon, 8 Nov 2004 16:19:49 -0600, Greg Donald [EMAIL PROTECTED] wrote:
 On Mon, 8 Nov 2004 15:56:03 -0500, Jerry Swanson [EMAIL PROTECTED] wrote:
  I don't use cookie for my page. I use session. As I understand cookies
  don't create any files on user  computer.
 
 Your understanding is incorrect.  Using cookies does indeed place
 files on the user's computer.  That's what a cookie is, a file on the
 user's computer, created by the web client.
 
 --
 Greg Donald
 Zend Certified Engineer
 http://gdconsultants.com/
 http://destiney.com/
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] email as link

2004-11-03 Thread Jerry Swanson
I'm sending email in text format. 
When I specify URL in the email http://www.mydomain.com, 
person that receive email can click on the link and go to the page.
But when a person receive and email with email address like
[EMAIL PROTECTED] the email is regular text not an email.
How to make email address to be a link?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] beginnind and end of the week

2004-11-02 Thread Jerry Swanson
Your solution works only for Monday. For Tuesday output is below
 start -- 20041108
 end -  20041114

I have no idea why ti doesn't wotk.



On Mon, 1 Nov 2004 02:45:59 +, Curt Zirzow
[EMAIL PROTECTED] wrote:
 * Thus wrote Jerry Swanson:
 
 
  I need to run a query using PHP/MYSQL. The query should be for a week.
  So if today is tuesday, the query  should be from Monday to Sunday.
  How in in php I can know when the beginning  and  end of the week?
 
 
 ?php
 
   // in case the date unlikley changes
   $t = time();
 
   // this weeks monday
   $m = strtotime('this monday', $t);
 
   // next weeks monday minus 1 second
   $s = strtotime('next monday', $t) - 1;
 
   echo date('r', $m), \n;
   echo date('r', $s), \n
 
 ?
 
 Now $m and $s contain the proper timestamps.
 
 Curt
 --
 Quoth the Raven, Nevermore.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] text email new line

2004-11-02 Thread Jerry Swanson
I'm sending text email. How I can make new line. 
\n seems to be not working.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] text email new line

2004-11-02 Thread Jerry Swanson
#1. $headers .= Content-Type: text/plain;
#2. $headers .= Content-Type: text/html; charset=iso-8859-1\r\n;

If I use #1 header I don't need \n\r just create extra space on the email.

Why \n\r doesn't work for #2 ?

TH



On Tue, 2 Nov 2004 17:23:41 +0100, Sebastiano Cascione
[EMAIL PROTECTED] wrote:
 Use \r\n
 Some pop server doesn't support other special characters.
 
 Sebastiano
 
 Alle 17:12, martedì 2 novembre 2004, Jerry Swanson ha scritto:
 
 
  I'm sending text email. How I can make new line.
  \n seems to be not working.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] text email new line

2004-11-02 Thread Jerry Swanson
It is working without \r\n.  Just using regular spaces/new lines in
the text message.


On Tue, 2 Nov 2004 18:34:00 +0100, Jordi Canals [EMAIL PROTECTED] wrote:
 On Tue, 2 Nov 2004 16:25:56 +, Richard Davey [EMAIL PROTECTED] wrote:
  Hello Jerry,
 
  JS I'm sending text email. How I can make new line.
  JS \n seems to be not working.
 
  \n in a text (not HTML) email will do the trick most of the time,
  sometimes I see \r\n, but \n works for me nicely. Are you sure it's
  quoted properly?  instead of ''?
 
 
 The RFC 2822 for Internet Message Format states clearly that MUST be
 \r\n using only \n is not standard and you cannot expet all
 servers to accept it as a valid separator.
 
 Just want to take your attention to this paragraph from RFC 2822:
 Messages are divided into lines of characters. A line is a series of
 characters that is delimited with the TWO characters carriage-return
 and line-feed; that is, the carriage-return (CR) character (ASCII
 value 13) followed inmediatly by the line-feed (LF) character (ASCII
 value 10).
 
 Also take in consideration that a message line cannot have more that
 998 characters (plus CRLF) ...
 
 The RFC 2821 says: The apperance of CR or LF characters in text
 has long history of causing problems in mail implementations and
 applications that use the mail system as a tool. SMTP client
 implementattions MUST NOT transmit these characters except when they
 are intended as line terminators and then MUST transmit them only as
 CRLF sequence.
 
 I hope this will help in composing mail messages and my recommendation
 is to *follow the standard* and send messages always by using CRLF as
 a line delimiter. Only doing that way, you will ensure your messages
 are accepted by any server.
 
 More information:
 RFC 2822 - http://www.faqs.org/rfcs/rfc2822.html.
 RFC 2821 - http://www.faqs.org/rfcs/rfc2821.html.
 
 Best regards,
 Jordi.
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] beginnind and end of the week

2004-10-31 Thread Jerry Swanson
I need to run a query using PHP/MYSQL. The query should be for a week.
So if today is tuesday, the query  should be from Monday to Sunday.
How in in php I can know when the beginning  and  end of the week?

TH

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] output htmkl file as text

2004-10-27 Thread Jerry Swanson
I want to output html file on the screen like text not like html file. 
I want a program to read html file and output source code to the screen.

Any ideas how to fake browser, so browser will print html tags on the screen?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to parse this?

2004-10-23 Thread Jerry Swanson
I have huge html file.  I want to parse the data and get everything between
b class=class1 and !-- Comments --

What function is good for this purpose?

TH

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Parsing

2004-10-23 Thread Jerry Swanson
I have huge html file.  I want to parse the data and get everything between
b class=class1 and !-- Comments --

What function is good for this purpose?

TH

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: ' (Single Quotes) in user inputs

2004-10-18 Thread Jerry Swanson
I'm not sure that stripslashes() are used for input. 

addslashes() - to insert data into database
stripslashes() - to get data from database and print it.




On 14 Oct 2004 11:19:14 +0200, Christian Jul Jensen [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] (Ben) writes:
 
  Any ideas on dealing with this would be greatly appreciated.
 
 Disable magic_quotes, and handle all escaping of characters yourself,
 I would absolutely prefer that. But beware of sql-injection.
 
 Leave magic_quotes on, and use stripslashes() on your input.
 
 --
 Christian Jul Jensen
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] For how long session exist

2004-10-14 Thread Jerry Swanson
For what period of time a session can exist? Or session exist as soon
as browser is open?
TH

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Form Validation

2004-10-14 Thread Jerry Swanson
On what percent browsers Javascript is enabled?



On Wed, 13 Oct 2004 15:48:51 -0700, Mattias Thorslund
[EMAIL PROTECTED] wrote:
 There are several JavaScript solutions for validating forms on the
 client side. Search on hotscripts.com and google.com.
 
 Client-side validation (in the browser) is useful, but you shouldn't
 depend on it to guarantee that the data that your users submit is
 valid.  You should also validate the data in your PHP script as you
 process the form.
 
 Oh, and there are several PHP-based list managers available, for
 instance phplist, so you may not need to program it yourself.
 
 /Mattias
 
 Huang, Ou wrote:
 
 I am currently working on a newsletter mailing list project and
 developed a form in php. I would like to validate before it is
 submitted. What would be the best way to validate a form? Write your own
 routines or using a form validator. I just started learning PHP, so
 don't have much experience on this. I am thinking using a form validator
 but not sure where I can get it.
 
 Any suggestions would be appreciated!
 
 Thanks.
 
 
 
 
 -- 
 More views at http://www.thorslund.us
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] time

2004-10-13 Thread Jerry Swanson
I want to send email every 24. What time format you recomend to use? 
In what format the data should be store in mysql?

TH

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php