php-windows Digest 3 Feb 2004 14:41:21 -0000 Issue 2106

Topics (messages 22712 through 22717):

Re: tutorial
        22712 by: George Pitcher
        22714 by: Svensson, B.A.T. (HKG)

Mcrypt and IDEA
        22713 by: re_action

Re: imitating browser
        22715 by: Sven Schnitzke

my changes in php.ini are not recognized
        22716 by: Burckhardt Übersohn

Re: User authentication problem
        22717 by: Symeon Charalabides

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 ---
This reminds me of how a few years ago whilst working on a university
library project I was introduced to programming. Being Mac-based, I decided
to use Frontier, to the horror of everyone else who tried (unsuccessfully)
to get me onto Perl. So I checked the library for a Perl book and the only
one they had was "Teach Yourself Perl in 21 Days" - only available on a
seven day loan.

I stuck with Frontier - did the job, moved on to Lasso, then PHP and am now
tackling Java. I still don't classify myself as a programmer though - just a
lucky amateur.

Cheers

George in Oxford

> -----Original Message-----
> From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]
> Sent: 2 February 2004 9:29 pm
> To: 'jon roig '; '[EMAIL PROTECTED] '
> Subject: RE: [PHP-WIN] tutorial
>
>
> "Learn in 24 hours"... Oh dear....
>
> -----Original Message-----
> From: jon roig
> To: Svensson, B.A.T. (HKG); [EMAIL PROTECTED]
> Sent: 2004-02-02 20:01
> Subject: RE: [PHP-WIN] tutorial
>
> The manual is indispensible, but personally, I've found the Sams "Learn
> in 24 Hours" tutorial to be the best. Basically, it breaks learning
> PHP/Mysql in 24 bite-sized chunks, letting you learn at your own pace...
>
> At any rate, that's how I picked it up... (I program in PHP for a living
> now... So it must've worked.)
>
>       -- jon
>
> -------------------
> jon roig
> web developer
> email: [EMAIL PROTECTED]
> phone: 888.230.7557
>
>
>
> -----Original Message-----
> From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 02, 2004 10:29 AM
> To: '[EMAIL PROTECTED] '
> Subject: RE: [PHP-WIN] tutorial
>
>
> In my oppinion, the online manual.
>
> -----Original Message-----
> From: Cyrus Misthalin
> To: [EMAIL PROTECTED]
> Sent: 2004-02-02 18:27
> Subject: [PHP-WIN] tutorial
>
> What is the best tutorial for PHP?
>
> Best online-course?
> And Best book?
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.572 / Virus Database: 362 - Release Date: 1/27/2004
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.572 / Virus Database: 362 - Release Date: 1/27/2004
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
From: Trystano

>If you a beginner, then the online manual might not be a good start.

Might so be, but on the other hand, some languages are better
suited to start to learn than others. (If we now are talking
about learning to do programming, and not just learning php).
It use to be said:

BASIC, learn only language
PASCAL, read only language
C, write only languge

php is a derivate of C... I think that stands for it self when
it comes to the learning cure of php.

>I still find the maual quite complex (must just be me :s). 

Interesting, because I find the manual quite clear cut and easy to use.

Only becasue of speed optimization (some people name it lazyness)
I use to, from time to time, ask a coullegue of mine "what's da
bloody name of the php function that do this-and-that?"

Otherwis one only has to search on an ANSI-C library function
name, and one monstly find somthing then. And if that does not
help, then spending some time rading the online manual resolve it.
The arguments are quite the same as in C, typless thou, and for
me php feels like a cute user "friendly" wraped C interpreter.

Well, maybe one gets brain damage after been writing code for to
long. Must be some gover-mental fund for this were one is allowed
to reclaim some bucks, or?

Anyhow, I still think that the guys who wrote the online manula
really should have all honour for that. It's probably been a
great contribution on to why php is spread as it is today.

--- End Message ---
--- Begin Message ---
Hi everyone.
Does anybody now such thing:
Latest mcryptlib, or some old version of it support the IDEA algorithm
?

-- 
Best regards,
 re_action                          mailto:[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Hi,
may I assume you want to automatically feed the otherwise human answers to
the dialog presented by the search engine/catalog ?

This is possible but at least a little tedious. First you shold make sure that there 
positively isn't any HTTP RPC (no misspelling, I mean remote proc call) access to 
the engine; this would be much easier  (google e.g. has one with its google API 
and asking others may show up some enlightening results). The most problematic 
aspect is that the human interface is not considered fixed (not even necessarily 
the answer part) and may change without notice.

Apart from that, talking to a web server is just opening a socket and talking to that
socket in HTTP style.
Googling HTTP and RPC brings up the ideas about automation over HTTP, basis 
of some APIs around (some stock quote feeds work this way too, e.g. yahoo).

HTH

Sven

> -----Ursprüngliche Nachricht-----
> Von:  Donatas [SMTP:[EMAIL PROTECTED]
> Gesendet am:  Montag, 2. Februar 2004 11:48
> An:   [EMAIL PROTECTED]
> Betreff:      [PHP-WIN] imitating browser
> 
> Has anyone ever tried to imitate a browser with PHP or seen code 
> snippets that could help?
> Scenario would be (everything via PHP):
> -login to the page sending username and password and all other necessary 
> fields via POST
> -now that the script is "logged in (session started)" we my use a search 
> form to search anything we need by sending POST queries to ex. search 
> page (search doesn't work if you are not logged in)
> -save those pages (trivial part)
> 
> I am pretty sure that has to be possible with sockets and things alike.
> Any help is appreciated!
> 
> /Donatas
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
I am just starting in php
(but 10 years experience in developping, last 5 years in JAVA).
I have installed on a Windows 2000 PC:
Apache 2.0 as localhost-server, MySQL 4.0.17 and PHP 4.3.4-Win32.
All parts seem to work properly.
My first steps into php also looked quite well.
Next level: sending HTML-forms and then reading the POSTed vars on another
page, also was running fine.

B*U*T, when defining some $_SESSION vars, their values were NOT available on
another page in the same session. (I was using session-start properly).
When testing and experimenting with phpinfo, ini_get(), and similars, I
found this:

The php.ini file is  C:\WINNT\php.ini, also found by
get_cfg_var("cfg_file_path").
When I do some changes in the ini,
maybe for session_save.path (which was "/tmp" and I change to
"C:\PHP\sessiondata"),
and I stop and start the apache again (sometimes I stoped and restarted
Windows), then the ini_get("session.save_path") delivers again "/tmp".
The same happens with other ini-variables: (very important is, to get
error-messages, but I cannot change the specific vars in the ini, better: I
can change, but it has no effect).
I was looking, if there are other "ini"s in my system, but NO. And...
and...and ...:two days work without result.
The question, I see, is: from where does Apache+PHP take the values for the
ini-Params, because from my php.ini obviously  NOT.
Thank you in advance for reading (and laughing ?) about my silly problem.
Maybe, you have an idea, what is to do ?

Buri (say simply "Buri" instead of Burckhardt)

--- End Message ---
--- Begin Message ---
> What do mean with "wont work"? Does the if expression
> allway evaluate to false, or what?
> 
Indeed. 3 attempts and I'm out. On exiting, the 2 variables still contain empty 
strings.

> By the way, you might like to check out:
> 
> http://nl.php.net/manual/en/security.registerglobals.php
> 
I don't think it's anything to do with the register_globals setting. The code is 
written for a setting of "Off" by default and therefore should work either way. 
The strange thing is that it works on my other websites that have the same file 
and filesystem structure and are uploaded on the same ISP, so the PHP settings 
are identical.

Now, after having exhausted pretty much all sane alternatives (and some quite 
insane ones), I have a very irritating feeling that this problem might be 
connected to the fact that the problematic website is a .gr, while the others 
have always been .com's, .net's etc. Any experience with such problems?

It it turns out to be that, I'll let everybody know.

> -----Original Message-----
> 
> I've always utilized basic user authentication by including the
> following code in  my protected files:
> 
if ($_SERVER['PHP_AUTH_USER']!='name' || $_SERVER['PHP_AUTH_PW']!='password')
{
        header("WWW-Authenticate: Basic realm=\"Website administration\"");
        header("HTTP/1.0 401 Unauthorised");
        exit;
}
> 
> Now, suddenly this code won't work on WinXP on any browser, under Apache
> 1.3 with PHP 4.3.3 running as a module. The worst part is that it won't run
> on my ISP either, which runs PHP 4.3.4 on Linux machines. What really
> baffles me is that the same code snippet on my earlier websites runs
> perfectly. It's just the last  one I'm making it won't run on, although I
> upload exactly the same file that runs  on the others.
> 
> It sounds like something very very obvious is wrong, which makes me feel
> very very silly for not seeing it. Can it be affected by the structure of
> the rest of  the website? Any suggestions?
> 



Symeon Charalabides (cosmopolite trainee)
-------------------------------------------------
Rm 305, IT dept., NUI Galway, Ireland.
+353 91 524411 x3180

http://geminga.it.nuigalway.ie/~symeon/

--- End Message ---

Reply via email to