We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 2
PHP Tips and tricks!; Not a question for once!
Topic Started: Apr 6 2005, 12:10 AM (1,000 Views)
Jeremy
Member Avatar
Member
[ *  *  *  *  *  * ]
Quote:
 
Believe me, if we could grab cookies between servers, that would be wubbly. But you just can't.

Couldn't you set the cookie domain to .invisionfree.com (note the period at the beginning) to fetch between servers?
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
There was something that prevented us from doing that. I forget exactly :P I could poke Duffy though.
Offline Profile Quote Post Goto Top
 
blakeo_x
Member Avatar
I cant believe its not PHP!
[ *  *  * ]
I forgot this was a PHP :P

but, higher-level languages such as Java and such can treat cookies as server-side files. Javascript is another example of it.

Im just learning PHP, but it seems to have the same constructs as the other languages that are used online. That should mean you can open data sent to the server and fool it into thinking you are a different host. (I do realize my techie talk doesnt really make sense). So sorry if Im mistaken.
Offline Profile Quote Post Goto Top
 
KodeCing
Member
[ * ]
I've always heard that PHP was like C, or C++...
Am I right? :/

Oh, by the way...

$_GET's are awesome.

Look at PHP.net for info about them. :)

(While I'm at it... And removed)
Offline Profile Quote Post Goto Top
 
Stefan
Member Avatar
Mew?
[ *  *  *  *  *  *  * ]
Quote:
 
I've always heard that PHP was like C, or C++...
Am I right? :/

No.

And while I'm at it, I'll just point out that advertising is not allowed anywhere on this forum, except in your signature.
Offline Profile Quote Post Goto Top
 
Jeremy
Member Avatar
Member
[ *  *  *  *  *  * ]
Stefan
April 19, 2005 05:13 AM
Quote:
 
I've always heard that PHP was like C, or C++...
Am I right? :/

No.

PHP is a C derivative. Most of the function names are the same, and the biggest difference between the two is that PHP is loosely typed.
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Does that mean that if you know php you its easy for you te learn C ?
(That would be nice :) )
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
blakeo_x
April 18, 2005 05:57 PM
I forgot this was a PHP :P

but, higher-level languages such as Java and such can treat cookies as server-side files. Javascript is another example of it.

Im just learning PHP, but it seems to have the same constructs as the other languages that are used online. That should mean you can open data sent to the server and fool it into thinking you are a different host. (I do realize my techie talk doesnt really make sense). So sorry if Im mistaken.

You CANNOT peek cookies with ANY server-side language. The most you could do would be to download an ActiveX control TO the user's computer and then yoink their cookies. PHP, JavaScript, etc. CANNOT peek at cookies.
Offline Profile Quote Post Goto Top
 
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
javascript called a "higher level language", not heard that beofre
Offline Profile Quote Post Goto Top
 
Jeremy
Member Avatar
Member
[ *  *  *  *  *  * ]
Qj
April 19, 2005 07:50 AM
Does that mean that if you know php you its easy for you te learn C ?
(That would be nice :) )

Actually, if you learn PHP first, it's a little harder to learn C. After the looseness of PHP typing, C will blow your mind for the first couple of weeks. :r
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
PHP = loose typing
PHP = wub
Java = strong typing
Java = die

For all ye C++ and Java people, I present the following conundrum:

$var = 3;
$var = "haha you all suck";

MUAHAHAHAHAHAHAHAH*choke*
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2