Search found 67 matches

by elitecodex
Thu Jan 09, 2003 4:13 am
Forum: PHP Scripts
Topic: New script...
Replies: 2
Views: 2044

New script...

I have recently written a script that I feel is somewhat useful. My problem is that I am having a problem getting it out and around. What is an effective way to get my script out there without being an annoying a$$h0le? I dont want to do like unsolicited mailing, etc... but just want to know how oth...
by elitecodex
Thu Sep 26, 2002 11:19 am
Forum: PHP coding => General
Topic: Form
Replies: 3
Views: 1661

Ok, Ill try to explain in more detail. Im writing a statistics program that has an ip filter. Basically, it will exclude certain ip ( or patterns ) from the stats it collects. Currently, I have it stored in a php file where one would have to enter the data in a syntax-correct array. I want to store ...
by elitecodex
Thu Sep 26, 2002 8:26 am
Forum: PHP coding => General
Topic: Form
Replies: 3
Views: 1661

Form

I have a dropdown box that contains multiple selections... I want to be able to save this to a database. My form method is POST... when i tried to save it, it did a var_dump($_POST); and it will only save what is selected... if nothing is selected, it wont pass anything. How can I get the contents o...
by elitecodex
Wed Sep 18, 2002 3:15 am
Forum: PHP coding => Mail
Topic: Problem with php form mailer
Replies: 5
Views: 2986

hmmm....im not sure then, sorry If your variables are coming through ok ( did you use a var_dump($_POST); to verify? ) then I dont see what else could be wrong. Perhaps one of the guru's has some suggestions I checked the manual and they had a couple of comments regarding windows users. Might be wor...
by elitecodex
Tue Sep 17, 2002 9:12 am
Forum: phpMyAdmin
Topic: Were to get
Replies: 1
Views: 1768

by elitecodex
Tue Sep 17, 2002 9:10 am
Forum: PHP coding => Mail
Topic: Problem with php form mailer
Replies: 5
Views: 2986

Maybe its an "auto_global" problem. I think this setting by default is on, and most webservers turn it off due to hazards. When you reference a variable from page to page (for instance, a text field or a hidden field), do not reference it by $field_name... you have to reference it by $_GET["field_na...
by elitecodex
Tue Sep 17, 2002 9:03 am
Forum: PHP coding => General
Topic: FOR LOOP
Replies: 5
Views: 2559

ok, so change it to this: <? for ($i = 1; $i < 23; $i++) { ?> <area shape="rect" coords="<? echo $x.$i.",".$y.$i.",".($x.$i+10).",".($y.$i+10); ?>" href="<? echo "$PHP_SELF?a_cor=1"; ?>" alt="<? e...
by elitecodex
Tue Sep 17, 2002 9:00 am
Forum: PHP coding => General
Topic: Login only once
Replies: 6
Views: 2512

But then what happens if someone just "closes a browser", or their session times out... the script would not have a chance to update the database if the user tried to login again would it?
by elitecodex
Tue Sep 17, 2002 8:52 am
Forum: PHP coding => General
Topic: FOR LOOP
Replies: 5
Views: 2559

Are you getting any errors? I do noticed that you missed some semi-colon's on the end of your echo statements. Try appending those and see what happens.
by elitecodex
Fri Sep 13, 2002 4:16 am
Forum: PHP General
Topic: email encryption
Replies: 4
Views: 2372

I am not 100% sure as I have never done it myself. I searched the net for a few minutes... this site might help:

http://www.alt-php-faq.org/local/65/

I didnt read into details, but looked like it could do it.

best of luck

Will
by elitecodex
Thu Sep 12, 2002 9:23 am
Forum: PHP General
Topic: email encryption
Replies: 4
Views: 2372

Unless im mistaken, you will have to encrypt the message using someting similar to PGP.
by elitecodex
Tue Sep 10, 2002 3:33 am
Forum: PHP coding => General
Topic: Recursion ?
Replies: 2
Views: 1567

Ah, I see what i was doing wrong. What i was over looking before was PHP returning to the point (basically going back to after the if statement ten times in my example) and continuing (sp?) on with the rest of the function. I edited the code to this: function display_tree($temp) { echo ...
by elitecodex
Mon Sep 09, 2002 5:28 pm
Forum: PHP coding => General
Topic: Recursion ?
Replies: 2
Views: 1567

Recursion ?

I come to web programming from an extensive background in client side C++ programming. Im used to recursion in alot of my previous programs and was wondering if PHP supports such a concept. I had tried a simple script and it didnt work as I anticipated. Take this for instance: function display_tree&...
by elitecodex
Fri Sep 06, 2002 4:45 am
Forum: PHP coding => General
Topic: Regular Expressions
Replies: 1
Views: 1539

hello I thank you for your response. I know have some questions though. If memory serves me right, then "^" and "$" match the beginning and end of a string, respectively. What does the "+" do? Do you know where I could find some good docs on regular expressions? Im kinda new to them and want to star...
by elitecodex
Tue Sep 03, 2002 11:24 am
Forum: PHP coding => General
Topic: Regular Expressions
Replies: 1
Views: 1539

Regular Expressions

I have a question. I thought that I understood regular expressions, but I guess I dont. Could anyone lend a helping hand? I have this: preg_match("/([0-9]{2})([a-zA-Z])([0-9]{1,4})/i", $_POST["job_number"], $mat); var_dump($...
by elitecodex
Tue Sep 03, 2002 10:56 am
Forum: PHP coding => General
Topic: Are sessions secure?
Replies: 3
Views: 1725

How dont they seem secure? They are not sent across the internet and the only way to obtain their data without you is to hack the actual server itself (and then you have to know where the session data is kept). I noticed by default its in the /tmp in Linux, and wherever in Windows (I believe its the...
by elitecodex
Thu Aug 29, 2002 7:11 am
Forum: MySQL Installation
Topic: Remote Administration
Replies: 4
Views: 2907

alright, sounds good. Ill look around for some resource from phpMyAdmin and mySQL and see what i can find out... ill probably email my webhost as well to see if it they allow it

thanks alot for your help dvdbinternet

Will
by elitecodex
Thu Aug 29, 2002 6:52 am
Forum: MySQL Installation
Topic: Remote Administration
Replies: 4
Views: 2907

So I can set up phpMyAdmin to control a mySQL database remotely just by changing say the server from "localhost" to whatever the ip is?
by elitecodex
Thu Aug 29, 2002 4:55 am
Forum: PHP coding => General
Topic: Functions
Replies: 6
Views: 2545

No
At least not to my knowledge
by elitecodex
Thu Aug 29, 2002 4:52 am
Forum: PHP coding => General
Topic: problems logging out with cookies
Replies: 2
Views: 1706

Im not sure about refreshing, but you could use session variables. When you log out, you can set a session variable to false, and just check that on every page you want to keep secure. This would work if I understand your question clearly, but im not sure if I do. Let me know.

Will
by elitecodex
Thu Aug 29, 2002 4:49 am
Forum: MySQL Installation
Topic: Remote Administration
Replies: 4
Views: 2907

Remote Administration

Is it possible to remotely control a mySQL database. For instance, can I control the database from my house on a server with a webhosting company somewhere in new york (without having to login to my control panel).

Thanks


Will
by elitecodex
Thu Aug 29, 2002 4:41 am
Forum: PHP coding => General
Topic: Uh.. hi. PHP n00b here..
Replies: 1
Views: 2184

Well then, I suggest you start reading From looking at the script a second time, I would suggest finding another one. There are a ton of poll scripts out there ( m ) and im sure if you looked long enough, you would even find one that is self-automated and has an installer. In order to understand a s...
by elitecodex
Tue Aug 27, 2002 7:18 am
Forum: PHP coding => General
Topic: how to increase the speed of a script
Replies: 2
Views: 1774

The only real part you can control is how fast the PHP is rendered (or parsed) and sent back... you can control net congestion and other factors like that. The best way would be to run a serious of test (ie run your script many many times) with debugging code telling you how long certain parts of yo...
by elitecodex
Tue Aug 27, 2002 7:06 am
Forum: PHP coding => General
Topic: help....upgrade
Replies: 2
Views: 2096

Yes
PHP Docs wrote:$_POST
Variables provided to the script via HTTP POST. Analogous to the old $HTTP_POST_VARS array (which is still available, but deprecated).


Will
by elitecodex
Tue Aug 27, 2002 7:03 am
Forum: PHP coding => General
Topic: Uh.. hi. PHP n00b here..
Replies: 1
Views: 2184

If you understand programming, its pretty self-explanatory. You get the number of results from a database, and print out a graphic with different widths depending on the percentage of each answer. Dont really know what else you want.

Will