Search found 62 matches

by MattSharp
Mon Apr 18, 2005 8:16 am
Forum: Linux
Topic: Compiling PHP with Oracle support
Replies: 1
Views: 2453

Compiling PHP with Oracle support

So I have spent countless hours in the last week trying to successfully compile PHP with Oracle support. I know that I have a working Oracle database because I have accessed it and written a Java application that uses it. I am running Fedora Core 3 and the regular PHP install for FC3 does not come w...
by MattSharp
Wed Aug 13, 2003 11:11 am
Forum: PHP - Code
Topic: Changing file owner in PHP script
Replies: 1
Views: 830

Changing file owner in PHP script

I am having a problem when using a file upload script. The script sets itsel f and as the owner and group and the script never needs to use the file again. Other users on the network need access to the file and be able to eventually delete it. I have to go in and manually change the owner of the fil...
by MattSharp
Mon Jun 23, 2003 5:51 pm
Forum: Miscellaneous
Topic: Need Linux Admin help BAD!
Replies: 1
Views: 1854

Need Linux Admin help BAD!

All of the sudden, when we tried to use ls it caused segmentation faults. We restarted the box, or attempted to and it won't make it through the restart. Our primary thought is bad memory but what else could cause a problem like this? Anyone run into this problem before? We could really use some ins...
by MattSharp
Mon Jun 09, 2003 2:20 pm
Forum: PHP - Code
Topic: stream does not support seeking
Replies: 3
Views: 1360

I am recieving this very same error now:

Warning: main(): stream does not support seeking in /xxx.php on line 153

How did they fix it? What is the problem and what can I do?
by MattSharp
Mon Jun 02, 2003 3:22 pm
Forum: Job Hunt
Topic: Help Wanted
Replies: 2
Views: 2780

Yea, last year when I was a freshman I would have been all about it. Nowadays between work and school I barely have time for my own projects and couldn't do anything for free. I might know a couple novice programmers who might be interested though.
by MattSharp
Mon May 12, 2003 8:25 pm
Forum: PHP - Code
Topic: Taking part of a webpage and putting it on yours
Replies: 1
Views: 1089

Taking part of a webpage and putting it on yours

Like weather or sports. I want to read a file and get the data for like the local weather and the sports standings. What is the best way to do something like this? Just open the file and look for like a unique line or what? Thanks for the help.
by MattSharp
Mon May 12, 2003 8:22 pm
Forum: General Discussion
Topic: Strategy Pattern: Sample application for C++?
Replies: 1
Views: 1236

Strategy Pattern: Sample application for C++?

For my Design Patterns class we have to do a presentation on the Strategy Pattern and make a VERY simple example application to demonstrate when it would be used. Now before you try to give me smurf and say we aren't here to do your homework for you, I am not asking anyone to give me code. Just if y...
by MattSharp
Fri May 02, 2003 11:54 am
Forum: PHP - Code
Topic: Making something happen at a designated time?
Replies: 2
Views: 1480

when you say program you mean php script yes? of you have access to a cron job you could make a script run every how then loop thru a database full of scheduled times. if it sees one that is scheduled 24 hours or less away it sends a msg to a user then deletes the schedule (so it doesnt loop thru a...
by MattSharp
Fri May 02, 2003 9:59 am
Forum: PHP - Code
Topic: Making something happen at a designated time?
Replies: 2
Views: 1480

Making something happen at a designated time?

I am making a program that should notify users 24 horus prior to their scheduled time. How could I do this?
by MattSharp
Thu Apr 24, 2003 9:38 am
Forum: PHP - Code
Topic: Where and how do you store SQL variables on your website?
Replies: 5
Views: 1605

Oromian wrote:That's hyper secure ;), i just leave the variables in the regular directory but change the chmod() permissions.
So do you like change the permissions on the fly? Like at the top of the file? Does that make it so that people can't see it or what?
by MattSharp
Sun Apr 13, 2003 12:02 am
Forum: PHP - Code
Topic: Where and how do you store SQL variables on your website?
Replies: 5
Views: 1605

So if its included somewhere in a protected directory, then your php sites can still access it but nothing else can?
by MattSharp
Sat Apr 12, 2003 8:42 pm
Forum: PHP - Code
Topic: Where and how do you store SQL variables on your website?
Replies: 5
Views: 1605

Where and how do you store SQL variables on your website?

I need to store some variables for accessing my SQL database. I don't know where a good place is to store them to be as secure as possible.

Thanks.
by MattSharp
Sat Apr 12, 2003 8:36 pm
Forum: PHP - Code
Topic: Dynamic table names in PHP-SQL commands?
Replies: 6
Views: 1506

Thanks for all the help guys. I determined the problem to be that I am using it in a function and I forgot about making variables global.

But now upon 2nd thought, this may open up a greater security whole. A global variable use to access a database.
by MattSharp
Thu Apr 10, 2003 1:15 pm
Forum: PHP - Code
Topic: Dynamic table names in PHP-SQL commands?
Replies: 6
Views: 1506

Dynamic table names in PHP-SQL commands?

Is it possible to use a variable name as the table name in an SQL command with PHP.

Like:

SELECT * from $table.......

When I tried this I get an error and I am wondering if there is something special I need to do to make this work.
by MattSharp
Fri Apr 04, 2003 11:50 am
Forum: PHP - Code
Topic: Conditional statment in the middle of output?
Replies: 3
Views: 1046

Conditional statment in the middle of output?

Is it somehow possible to have an if statement in the middle of an echo. Like: echo "bill likes" . if ($likes =="yes") echo "me" . "!!!!!!" I tried code similar to that without any luck. I wondered if there was a way to get around it or make it work. Cause the...