Quote your first post

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Quote your first post

Post 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:
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: Quote your first post

Post 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...
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Quote your first post

Post by josh »

User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Quote your first post

Post 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:
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Quote your first post

Post by VladSun »

There are 10 types of people in this world, those who understand binary and those who don't
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: Quote your first post

Post 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).
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: Quote your first post

Post 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...
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Quote your first post

Post 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
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Quote your first post

Post 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"
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: Quote your first post

Post 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.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Quote your first post

Post 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" :)
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Quote your first post

Post 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.
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: Quote your first post

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Quote your first post

Post 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.
Post Reply