Re: [PHP] array VS object?

2001-02-02 Thread Nathan Crause

Are you perhaps refering to arrays and hashtables?



"Larry Hotchkiss" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ok, I am trying to use some functions that return objects. Its my
> understanding,
> limited as it is, that an object is basically the same as an array,
> except that an object can only be accessed by field names where as an
> array can be accessed by both field names and offsets. Is there any way
> to determine the field names in an object so that they can be called?
>
> --
> Larry Hotchkiss
>
> --
> 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] Files only available via HTTPS

2001-02-02 Thread Nathan Crause

I think your best bet would be to use cookies tagged as secure. My
understanding is that if a cookie is tagged as secure, then the web server
should not give any scripting language access to it (i.e. if you have a
secure cookie LOGGEDIN, then PHP would NOT have $LOGGEDIN set [use isset] if
the user tries to use HTTP instead of HTTPS).


"Michael Conley" <[EMAIL PROTECTED]> wrote in message
2102328FD2ECD411879E00609737BFD11C83@FATBOY">news:2102328FD2ECD411879E00609737BFD11C83@FATBOY...
> I have several PHP files that I only want users to be able to access via
> HTTPS.  How can I control that on an Apache 1.3.14 server running on
RedHat
> 7?  I have openssl and mod_ssl working fine.  Currently, I can access all
of
> the files on my site via either http or https.  I want to keep certain
files
> (with interesting information) from being accessed via http.  I realize
this
> isn't really a PHP question, but I have no idea how to do this.
>
> Thanks.
>
>






> --
> 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] INAPPROPRIATE IOCTL ERROR

2001-02-02 Thread Nathan Crause

An IOCTL (Input/Ouput Control) is an OS's internal mechanism for dealing
with ANYTHING pertaining to Input and Output (in your case a URL). I'm not
100% sure of this, but you may simply be suffering from a typing error.
Perhaps "cgi-win" should read "cgi-bin"




""Kif"" <[EMAIL PROTECTED]> wrote in message
004701c08c4c$04003720$6634de3e@angus">news:004701c08c4c$04003720$6634de3e@angus...
> help...
> ok, now this looks quite straightforward...
>
>
$filename="http://195.92.38.87/cgi-win/homeview.dll?details1?src=1050&Proper
> tyCode=1050003/SAPHI/14665/3";
> $file=fopen($filename,"r") or die("cant open $filename");
> while(!feof($file)){
> $line=fgets($file,4096);
> echo $line;
> }
>
> but when i run it i get an error
>
>
fopen("http://195.92.38.87/cgi-win/homeview.dll?details1?src=1050&PropertyCo
> de=1050003/SAPHI/14665/3","r") -
> Inappropriate ioctl for device in /home/httpd/docs/test.php on line 6
>
> So can someone please tell me, what the blazes an ioctl is and why do i
have
> an inappropriate one?
>
> The remote file is fine,
>
> Thanks
>
> Kif
>
>
>
> --
> 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]