Page 1 of 1

Quote your first post

Posted: Thu Mar 05, 2009 10:57 pm
by Benjamin
Well, I've come a long way since 2002, that's for sure. Turns out my issue was caused by register globals being disabled.

I think it would be neat for us to all take a trip back in time and share our first post. So go ahead, dig it up and quote it. I was totally out of the loop back then... using IIS lol.

You can view your profile, click on "Search user's posts" and then click on page 2. In the url you will see &start=15. Keep increasing that number till you get close to the last page and you'll be able to find your first post.

Don't be shy!
astions wrote:Ok after 2 hours of being totally confused about why some code which I copied straight out of a book doesn't work, I decided maybe some of you could help me.

What I did is took this one line of code and threw it into a a file called text.php

<?php echo $author; ?>

Then I pulled up http://localhost/text.php?author=test

And walla.... A blank page EVERYTIME.

Yes I have IIS and PHP installed. Please Help this is driving me crazy. :cry:

Re: Quote your first post

Posted: Fri Mar 06, 2009 12:16 am
by susrisha
Hello, I am trying to execute a .exe program through PHP. The basic function i am trying to use is exec. The program needs the path of a particular directory as its arguement. But the path has spaces and this is not getting recognised by the command. Here is the code.. //Code for executing the Re...

Re: Quote your first post

Posted: Sun Mar 08, 2009 12:51 am
by josh

Re: Quote your first post

Posted: Sun Mar 08, 2009 4:35 am
by onion2k
onion2k wrote:Interesting issue, I'll have a look into later.. in the mean time though, you could use imagefilledrectangle() instead if you're just trying to create a solid background colour.
Back in the days when I was actually helpful. :twisted:

Re: Quote your first post

Posted: Sun Mar 08, 2009 5:33 am
by VladSun

Re: Quote your first post

Posted: Tue Mar 10, 2009 4:44 pm
by Mordred
Heh, I was helpful once too :)
viewtopic.php?f=1&t=54862&p=305795#p305795

VladSun: I positively envy you for such a cool first post ;) At least I got to be in the answers ;)
OT: Out of curiosity, did you use this code in the end? I did some cool things with a similar scheme and a boatful of independent services with multiple communication paths between them (another language, another technology).

Re: Quote your first post

Posted: Tue Mar 10, 2009 4:51 pm
by Mordred
obama wrote:
obama wrote:Am I the only one using CoffeeCup??
Maybe it is time to move on?
But this was 5 minutes ago.
:offtopic:
Wait, CoffeeCup? What kind of dung do they make nowadays, I remember them from the time they were selling this wonderful security product that implemented multiuser login system in a bloody java applet! This inspired my first PHP app, which took a "protected" URL and gave you back a list of usernames, passwords and the secret URL... heh, those were the days. To be fair, there were dozens such snake oil companies on the market, I reverse engineered all of their stupid applets :) Still, dung is dung, other dung does not make this dung less smelly...

Re: Quote your first post

Posted: Tue Mar 10, 2009 4:53 pm
by jayshields
Mine isn't that interesting. Just some trouble I was having before I knew you could do $_POST arrays with HTML forms... viewtopic.php?f=1&t=37238

Re: Quote your first post

Posted: Tue Mar 10, 2009 5:29 pm
by Jonah Bron
Wow. I didn't know anybody could ever know as little about PHP as I did. Come a (relatively) long way. "Cookies not setting"

Re: Quote your first post

Posted: Tue Mar 10, 2009 5:30 pm
by omniuni
viewtopic.php?f=1&t=85515

I also posted about a new free host, and asked for help on a calendar I was making.

Thanks to everyone on this forum for helping my knowledge of PHP and the web grow over the last few years.

Re: Quote your first post

Posted: Tue Mar 10, 2009 5:31 pm
by VladSun
Mordred wrote:VladSun: I positively envy you for such a cool first post ;) At least I got to be in the answers ;)
OT: Out of curiosity, did you use this code in the end? I did some cool things with a similar scheme and a boatful of independent services with multiple communication paths between them (another language, another technology).
Hey, thanks Mordred. And thanks again for you help :)
Indeed, I used the HMAC version of this code. You can find part of its implementation in viewtopic.php?f=6&t=74556&p=421638#p421638 (shamelessly stolen from epay.bg examples ;) ).
I used it for very simple site features - like "My list of something" :)

Re: Quote your first post

Posted: Tue Mar 10, 2009 5:53 pm
by Benjamin
PHPyoungster wrote:Wow. I didn't know anybody could ever know as little about PHP as I did. Come a (relatively) long way. "Cookies not setting"
HAHA, Love the first response you received...
feyd wrote:You have 17 missing double quotes and one missing closing parenthesis.

Re: Quote your first post

Posted: Wed Mar 11, 2009 2:34 am
by Mordred
Speaking of which, here's feyd's first post:
viewtopic.php?p=99682#p99682
... on page 1877 ...

He has more pages of posts than I have posts, talk about exponential curves, eh ;) A bow to him, wherever he is now

Re: Quote your first post

Posted: Thu Mar 12, 2009 4:16 am
by Weirdan
Weirdan wrote:

Code: Select all

 
create table registrations (id int not null auto_increment, person_id int not null, course_id int not null, primary key(id));
create table courses (id int not null auto_increment, lmt int not null, primary key(id));
-- persons table defined elsewhere...
-- you can add more fields
-- fill the table with data, then:
 
select courses.id, if(count(registrations.id)>=lmt,"<font color=red>booked</font>","<a href=reg.php>register</a>") as status from courses left join registration on courses.id=registrations.course_id group by courses.id order by status;
 
-- this query will give you  formatted cell data, which you can
-- insert directly into the <td> tag.
 
PS: tested on MySQL 4.0.14
The actual code was broken during one of forum migrations.