[PHP] Re: sessions

2002-07-23 Thread Jas
You forgot the session_start(); call. You will have to do that before you can tap into registered vars. Hope that helps. Jas "Alexander Ross" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to understand sessions s

[PHP] Credit card checks?

2002-07-23 Thread Jas
Just wondering if anyone has come across the need to develop a class to test a string of numbers based on a credit card type. If you have where would I be able to get information on what string of numbers is consistent with each of the different credit cards? Any help would be appreciated! Jas

Re: [PHP] Credit card checks?

2002-07-23 Thread Jas
So there is no way to use some sort of string comparison to check the number then? I would have to have a merchant account? Sorry for being nieve, just never tried to work with credit card numbers etc. Jas "Kristopher Yates" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

Re: [PHP] Credit card checks?

2002-07-23 Thread Jas
Yeah, I have looked at that class file and I don't want someone elses example to use, I want to build my own but have no way of knowing what makes up a valid visa number etc.... Jas "Richard Baskett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[E

[PHP] Parse error - new set of eyes?

2002-07-25 Thread Jas
I am getting a parse error on line 14, I am trying to make sure session vars are being set before rendering the page. This is lines 12,13,14 & 15. Any help is appreciated. Jas if ((!$u_name) || (!$p_word)){ header("Location: index.php"); session_destroy(); exit; } /* Che

[PHP] dir to array?

2002-07-31 Thread Jas
Not sure why this isn't working, any help is appreciated. I am trying to read the files in a directory and place them into an array. Here is the code: /* Function to create array of directory contents */ function dCNTS($files) { $dir = opendir("/path/to/directory/"); while($imgs = readdir($d

Re: [PHP] dir to array? - SOLVED

2002-07-31 Thread Jas
I got it fixed, thanks again. Just in case anyone else needs help with this type of item look at readdir() at http://www.php.net Jas "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thursday 01 August 2002 03:00,

[PHP] Passing hidden form var?

2002-08-09 Thread Jas
I think I am just over looking something here, a new pair of eyes would be useful. Thanks in advance. The var $ipaddy is not getting passed to code listed below /* Form for IP checking */ $table = "cm_sessions"; $record = @mysql_query("SELECT * FROM $table",$dbh); while ($row = mysql_fetch_a

[PHP] secure?

2002-06-05 Thread Jas
logging setup on each and every script which I have not included here (different topic), just in case someone does get in I can at least "try" to find them. Any help, pointers, tutorials, examples, etc. would be appreciated!!! TIA Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Anyone?

2002-06-06 Thread Jas
including: creating a page that tries to include one of the pages I have my security checks on from another website, linking directly to a script within the application etc. In any event, I also have logging setup on each and every script which I have not included here (different topic), just in

[PHP] Re: Anyone?

2002-06-06 Thread Jas
I cannot believe that no one with alot of PHP and MySQL experience has not replied to this post yet. Is PHP not a secure scripting language? I would really like a little insight into this question, anyone? "Jas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"&

[PHP] Re: Help on Session and cockies

2002-06-06 Thread Jas
ion list and it will break it down alot better for you HTH Jas "Marcos Lois BermúDez" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... A have two webs made in php, both uses a authentication based on session suport. I use in every page a

Re: [PHP] Re: Anyone?

2002-06-06 Thread Jas
Ok, so you have pointed out an problem, now that you have been so kind to do this could please recommend how to resolve this? Thanks, Jas "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message 002201c20d80$552be430$8102a8c0@niigziuo4ohhdt">news:002201c20d80$552be430

Re: [PHP] Re: Anyone?

2002-06-06 Thread Jas
ow off" my code, simply find ways to improve my existing ideas. Thanks again, jas "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message 002301c20d82$444a6130$8102a8c0@niigziuo4ohhdt">news:002301c20d82$444a6130$8102a8c0@niigziuo4ohhdt... > [snip] > Ok, so you have

Re: [PHP] Re: Anyone?

2002-06-06 Thread Jas
o not need some script kiddie messing with the time and research I have put into making this application. Any resources would be appreciated! Jas "Scott Hurring" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > No language is "secure&

[PHP] video file properties?

2002-06-12 Thread Jas
to this effect, and if so could you give me the names of the functions you used to get said properties? TIA Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] security advice...

2002-06-13 Thread Jas
let me know where I can do some good research on this subject. Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dreamweaver MX?

2002-06-14 Thread Jas
It also has support for snippits, or a code library that you can add, edit or delete. Saves alot of time in re-using code. I definately recommend it, not only for that reason for but for the code debugging options available. HTH Jas "John Holmes" <[EMAIL PROTECTED]>

[PHP] compare variables from text fields...

2002-07-07 Thread Jas
What is the best function or operator to compare two text strings being inputted by a text field within a form? Any help is appreciated. Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] support@bignickel.net

2002-07-07 Thread Jas
http://www.adobe.com/products/premiere/demodnld.html#win -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] another pair of eyes?

2002-07-12 Thread Jas
Hello all, I have a parse error and I am not sure why, I think my eyes are giving up on me, or its a friday. Any help is appreciated. // just trying to compare the session var $date to timeout if older than 5 minutes [snippit] /* Begin Session and register timeout, random image & client info vari

[PHP] php.security newsgroup any time?

2002-07-12 Thread Jas
I am wondering how we can get a newsgroup for security type of things, with either php, mysql or apache... To be honest I am interested in the php security newsgroup the most being as there is for the following two applications. How can one ask a moderator about that type of newsgroup? Jas

[PHP] timer on sessions?

2002-07-17 Thread Jas
problem is finding the correct way to check the seconds in php. Any help or pointers is appreciated. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] timer on sessions?

2002-07-17 Thread Jas
the seconds and register them in a session var, then > J> do a check on the session var (seconds) vs. the seconds var + 5*60 (or 5 > J> minutes) to time out the session and force the user to log back in. My > J> problem is finding the correct way to check the seconds in p

Re: Re[2]: [PHP] timer on sessions?

2002-07-17 Thread Jas
so using time() will work better. Thanks a ton. Jas "Asmodean" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > J> I am not able to test from this machine so please tell me if I am right or > J> wrong on this: > J> $

Re: [PHP] IIS Ports

2003-09-30 Thread Jas
and tools to help secure your box http://www.nsa.gov/snac/index.html // for windows and linux HTH Jas "Stephen Craton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I'm not sure where he tried to find the ports that were open but I'd guess from his apartme

[PHP] form not working...

2003-11-10 Thread jas
For some reason my form to edit selected items is not working, I think I need a new set of eyes. Any help is appreciated... Jas // inc.php function db_retrieve() { require 'dbase.inc.php'; $tble = $_SESSION['table']; $show = @mysql_query("SELECT * FROM $tble LIMIT 0, 1

Re: [PHP] mcrypt libraries?

2003-11-18 Thread Jas
Curt Zirzow wrote: * Thus wrote Jas ([EMAIL PROTECTED]): I am not sure if I should post my question here but I will anyways. Ok, I have compiled the mcrypt libraries on a Redhat 9 box running apache 2 with php4. And I need to know the next step(s) in getting php to use the libmcrypt libraries

[PHP] mcrypt libraries?

2003-11-17 Thread Jas
pointers (other than reading the manual) I would appreciate it. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mcrypt libraries?

2003-11-19 Thread Jas
Evan Nemerson wrote: On Tuesday 18 November 2003 01:13 pm, Jas wrote: Curt Zirzow wrote: * Thus wrote Jas ([EMAIL PROTECTED]): I am not sure if I should post my question here but I will anyways. Ok, I have compiled the mcrypt libraries on a Redhat 9 box running apache 2 with php4. And I need

[PHP] Session vars not echoing?

2003-11-20 Thread Jas
x27;date']; //This is not showing up in browser? Any help is appreciated... Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Session vars not echoing?

2003-11-20 Thread Jas
Yeah I did that, sorry I just didn't note it in the snippit.. and it is now working with the $_SESSION function, i just had to restart the browser to clear the cache after updating the code. jas Pete M wrote: need to issue a session_start() at top of page Pete Jas wrote: Not sure why

[PHP] Remote computer name?

2003-11-20 Thread Jas
I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the remote computer name? [Snippit used] $ipaddy = $_SERVER['REMOTE_ADDR']; $host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of the server (i.e. localhost, 168.2.2.1) jas

[PHP] eregi function?

2003-11-25 Thread Jas
te,$user,$level,$global,$vlan01,$hosts01,$vlan02,$hosts02,$vlan03,$hosts03,$vlan04,$hosts04,$vlan05,$hosts05,$vlan06,$hosts06,$vlan07,$hosts07,$vlan08,$hosts08,$vlan09,$hosts09,$vlan10,$hosts10)) // insert line break here } Any help with this would be appreciated Jas -- PHP General Mailing L

[PHP] function problems...

2003-12-03 Thread Jas
I call this function it checks a session variable then displays 1 of 3 menus... for some reason it will only display the first menu regardless of the results of my decoded session var. Any help or just a new pair of eyes would help. Thanks in advance. jas function menu() { $lvl

[PHP] Re: function problems...

2003-12-03 Thread Jas
Nevermind, I got it to work... cheers Jas wrote: I call this function it checks a session variable then displays 1 of 3 menus... for some reason it will only display the first menu regardless of the results of my decoded session var. Any help or just a new pair of eyes would help. Thanks in

[PHP] Regular expression assistance...

2003-12-05 Thread Jas
help would be great, or maybe some insight into the various characters used (besides the basic, ^, $, +, etc). Thanks in advance. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: password protection/encryption

2003-12-06 Thread Jas
n be found here. http://www.webopedia.com/TERM/S/SSL.html Hope this helps Jas Chris Mach wrote: Greetings, I'm working on a project that involves a password protected area of a website. Some one also involved brought up the point that this area should be secure (Whit the lock icon i

[PHP] new set of eyes?

2003-12-06 Thread Jas
{ $v = array(); list($v) = explode("}",$ar); } print_r($v); } I am hoping to get something like array([0]=>first row of data[1]=>second row of data) Any help would be great... Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] new set of eyes?

2003-12-06 Thread Jas
t; => "00:02:B3:A2:B6:FD", "6" => ";", etc... I hope this clarifies my problem. I have tried a few things such as a eregi statement, explode etc. and so far explode has done what i need it to by separating one db entry into multiple c

Re: [PHP] new set of eyes?

2003-12-06 Thread Jas
m; for ($x = 0; $x < $num; $x++) { print "$result[$x]\n"; } ?> On data in "one" field that looks like: host dhcp-01 { hardware ethernet 00:D0:B7:BD:D2:8D; fixed-address 155.97.1.190; } host dhcp-02 { hardware ethernet 00:02:B3:A2:B6:FD; fixed-address 155.97.1.

[PHP] Array problem....

2003-12-10 Thread Jas
ist($id,$sub,$msk,$dns01,$dns02,$rtrs,$rnge) = mysql_fetch_row($sql_subs)) { $_session[''] = "$sub+$msk+$dns01... } I have been scouring the various functions and as of yet have yet to accomplish what I need. Any help would be great. Thanks in advance, jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array problem....

2003-12-10 Thread Jas
having no idea you could use numbers as session variable names I kinda feel like a retard right now. You solution worked, thank you very much. Jas Chris W. Parker wrote: Jas <mailto:[EMAIL PROTECTED]> on Wednesday, December 10, 2003 3:21 PM said: while(list($id,$sub,$msk,$dns01,

Re: [PHP] Array problem....

2003-12-11 Thread Jas
0 { option domain-name-servers 128.110.22.4, 128.110.29.3; option routers 128.110.22.1; range ; } Which allows for easy reading of configuration variables and the ability to modify the individual vars using a form etc. Thanks again for all who gave me some pointers on using numbers instead of names for my se

[PHP] Re: How to reduce CPU usage in a cycle? [ag]

2003-12-11 Thread Jas
Can we get the code posted so we know what is going on? Sometimes there are a dozen different ways to accomplish the same objective and looking at what your code is doing may assist us in assisting you. Jas Taualex wrote: Hello! I'm having a problem with my php script on my linux web s

Re: [PHP] Array problem....

2003-12-11 Thread Jas
works better for this page. Thanks again. Jas Chris W. Parker wrote: Jas <mailto:[EMAIL PROTECTED]> on Thursday, December 11, 2003 7:21 AM said: Well just so you understand "why" I needed something like that here is the finished result below [snip] $i

Re: [PHP] How to reduce CPU usage in a cycle? [ag]

2003-12-11 Thread Jas
Well have you tried to define one function to include the for all variables that require mt_rand()? Jas Brent Baisley wrote: Personally, I wouldn't worry about it unless it is actually interfering with other processes. The OS will give any process or thread 100% of the CPU if there is no

Re: [PHP] How to reduce CPU usage in a cycle? [ag]

2003-12-11 Thread Jas
hen listing the contents of the array (with new values) it might improve cpu performance but then again. I am still fairly new to php. Jas Jas wrote: Well have you tried to define one function to include the for all variables that require mt_rand()? Jas Brent Baisley wrote: Personally, I would

Re: [PHP] php .htaccess autologin

2003-12-11 Thread Jas
var then just write a function to look on the users machine for a cookie from your site with auth=1, then if you see that present simply authenticate the user. HTH Jas Evan Nemerson wrote: On Thursday 11 December 2003 04:17 pm, ROBERT MCPEAK wrote: I've dug around quite a bit and can

[PHP] session var not being passed?

2003-12-12 Thread Jas
New set of eyes maybe or maybe I am indeed regressing... Page calling functions looks like such... require 'sessions.php'; require 'inc.php'; if (($_SESSION['user'] == "") || ($_SESSION['pass'] == "") || ($_SESSION['lvl'] == "")) { $_SESSION['msg_01'] = "You have not entered the correct authori

Re: [PHP] (0/T) executeing script below public

2003-12-12 Thread Jas
LMAO, I am in concordance. Jas Ryan A wrote: One wonders how two retards got together to give birth to a bigger retard like you. Hi, I am a bit puzzled here, I have to wipe my a$$ after taking a $hit...but I have to wipe while i'm on the toilet! My usual way is to stand up and do i

[PHP] var check not working...

2003-12-15 Thread Jas
works except when selecting an item from the select box it will only display the first form when there are $_post vars present. I think I am missing something, could someone look over my code? Thanks in advance, Jas function vlans_dhcp() { $lvl = base64_decode($_SESSION['lvl']);

[PHP] Re: Q on RegExp & extended Char

2003-12-15 Thread Jas
e($match,$replace,$b); Might not be exactly what you want but hope it helps. Jas Jswalter wrote: I've hit my limit on regular expressions. I need to check a string to see if it contains legal characters... A thru Z [a-z], SPACE, PERIOD, DASH/HYPHEN, APOSTROPHE [\' -,\.] OK, this is

[PHP] Re: var check not working...

2003-12-15 Thread Jas
Sven wrote: Jas schrieb: For some reason this will not work... my $_POST variables check for no form variables and display a form... if they choose an item from a select box it queries the database for a field matching the $_post var and builds a new form creating 8 separate $_post variables

[PHP] Re: 4 project questions - help appreciated

2003-12-15 Thread Jas
= "shared/image03.jpg"; $x++; $rand_image[$x] = "shared/image04.jpg"; /* Randomly select image to encrypt and use as session variable */ function random_image() { global $rand_image; srand ((double) microtime() * 100); print $rand_image[rand(1,sizeof($rand_image))]; }

[PHP] Re: php compile error with mysql undefined reference to `mysql_real_escape_string'

2003-12-15 Thread Jas
information on the different options available for your ./configure. HTH Jas Ivone Uribe wrote: Hi all! I'm installing php4.3.3, apache 1.3.28 with mysql3.22.32 I'm using this option --with-mysql=/usr/local/mysql But when I compile the php code, I get this error: ext/mysql/php_mysql.o: I

[PHP] Re: Security Question

2003-12-18 Thread Jas
/ if a match is found do the rest of the code session_start(); $_SESSION['auth'] = base64_encode(1); //encoded var to deter session hijacking } else { header("location: login.html"); } ?> Hope this helps a bit... more info on stuff like this is available at google.com. =

[PHP] Re: Script timeout Problem

2003-12-18 Thread Jas
='$PART_NUM',products.desc='$DESCR',COST='$COST',retail='$RETAIL',qty='$QTY',list_price='$LIST_PRICE',eff_date='$EFF_DATE',tech_fax='$TECH_FAX',status='$STATUS',upc='$UPC' WHERE grp='&quo

[PHP] Re: picking up a form name

2003-12-18 Thread Jas
result code ... Or if it the name of the "actual form" you want try setting a hidden field with the same name as the form. ex. HTH Jas Php wrote: Hi, If I have more than one form on a page, how can I get the name of the form that was sent on the recieving page without

[PHP] Re: Script timeout Problem

2003-12-18 Thread Jas
Let me know if that solves your problem if you would be so kind... I am sure it will but I just want to make sure. Jas Jas wrote: Have you tried setting a limit on your MySQL insert and update statements to limit the amount trying to be processed? Haseeb Iqbal wrote: hi, i need to update a

Re: [PHP] Re: Script timeout Problem

2003-12-19 Thread Jas
. HTH Jas Haseeb Iqbal wrote: how can i do that? btw the script runs on a local machine but updates the records on a webserver i mean live server. this is also a factor for the timeout. the script was running smoothly for 24000 recods before but now it suddenly timeout after 800records. i dont know

[PHP] post var check failing?

2003-12-22 Thread Jas
Not sure why it isn't checking my post vars correctly... any help is appreciated. Thanks in advance Jas while($a = mysql_fetch_array($x)) { list($_SESSION['id01'],$hn,$ma,$i,$v) = $a; } $_SESSION['search'] = "...new form with listed vars..."; } elseif ((

[PHP] looping problem?

2003-12-30 Thread Jas
ost MTPC-01 { hardware ethernet 00:02:B3:A2:9D:ED; fixed-address 155.97.15.11; } Any help is appreciated... Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function problem?

2003-12-30 Thread Jas
Not sure why the last section won't work... /* Function to search for hosts */ function search_dhcp() { if ((empty($_POST['search'])) && (empty($_POST['hosts01'])) && (empty($_POST['hn'])) && (empty($_POST['ma'])) && (empty($_POST['i'])) && (empty($_POST['v']))) { unset($_SESSION['search']);

[PHP] Checkboxes?

2004-01-05 Thread Jas
;; } else { unset($_SESSION['details']); $_SESSION['details'] = "  You must select an access log(s) to view the details of."; } ?> I think it has something to do with the naming or values of the checkboxes but if someone could shed some light on it that would be great. jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Looping problem?

2004-01-06 Thread Jas
$num; $z++) { $vlans[] = "subnet $subnetmask $msk {option domain-name-servers $dns01, $dns02;option routers $rtrs;range $rnge;}"; } } // Write everything out formated... echo $vlans[$z]\n; Right now it only pulling the last record??? Jas -- PHP General Mailing List (http://www.php.net/

[PHP] Not working?

2004-01-08 Thread Jas
ent user (test_user)... I can write files into the directory and delete files form the directory using the 'unlink()' command but the rename function I am having problems with. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] permissions with bash scripts in php?

2004-01-12 Thread Jas
good tips on what would be the most efficient & SECURE way of starting this service please point me to the tutorial Thanks a ton. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] permissions with bash scripts in php?

2004-01-12 Thread Jas
Jake McHenry wrote: - Original Message - From: "Jas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 12, 2004 4:47 PM Subject: [PHP] permissions with bash scripts in php? Something I have never tried... seems fairly straight-forward but I am run

Re: [PHP] permissions with bash scripts in php?

2004-01-13 Thread Jas
Jason Wong wrote: > On Tuesday 13 January 2004 06:46, Jas wrote: > > [Please trim your posts!] > > >>Just tried that and I am getting the same error. I guess what I am >>really looking for is a way to have apache restart the service without >>adding the

Re: [PHP] Dynamic Forms

2004-01-15 Thread Jas
f it helps. "; } elseif((!empty($_POST['var01'])) || (!empty($_POST['var02']))) { $form = " "; } else { $form = "$_POST[var01] $_POST[var02]"; } echo $form; ?> Jas -- PHP General Mail

[PHP] Re: Ip Tracking Utilities

2004-01-20 Thread Jas
etc...); for($i = 0; $i > $network; $i++) { $result = system("ping $network[$i]") if($result != "") { echo "host $network[$i] responded"; } } HTH Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Function for crypt and decript.

2004-01-23 Thread Jas
/manual/en/ref.url.php crypt() http://us2.php.net/manual/en/function.crypt.php mcrypt() - Must have packages installed, but works very well http://us2.php.net/manual/en/ref.mcrypt.php openssl() - Also must have packages installed http://us2.php.net/manual/en/ref.openssl.php Hope this helps... Jas -- PHP

[PHP] Re: Suggestion on executing external programs from within php

2004-01-23 Thread Jas
it should restart a service. just 2 cents Jas Ammar Ibrahim wrote: maybe if you put Call1 and Call2 in seprate PHP files, and you call both of them. i guess it would work Ammar "John Clegg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi I would like to be able

[PHP] Tracking users...

2002-01-21 Thread jas
done quite a bit of research on php.net on both the session() and the setcookie() functions. =) Thanks again. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrato

[PHP] Re: Basic Authentication with IIS

2002-01-23 Thread jas
to web users. I hope this helps, let me know if you get stuck or dont understand something k? Jas "Spamsucks86" <[EMAIL PROTECTED]> wrote in message 000601c1a468$9c9c2f40$7f523944@cc1966780a">news:000601c1a468$9c9c2f40$7f523944@cc1966780a... > With apache, you can

[PHP] general question...

2002-02-04 Thread jas
info so I may begin incorporating this into my scripts. Thanks in advance... Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] General question...

2002-02-04 Thread jas
directly then it would redirect the user to the index.php page? Thanks in advance... Jas P.S. A tutorial on this would definately prevent me from posting the same question again. =) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Formatting problem

2002-02-19 Thread jas
I feel kinda dumb for posting this but here it is... I am trying to query a table then format the results so it looks like the rest of the site and the darn delete button to remove db entries keeps showing up at the top. Here is the code... Thanks in advance. Jas Current Inventory"; $count

Re: [PHP] eregi() problems...

2002-04-15 Thread jas
I must be doing something wrong, for that solution did not work. "Robert Cummings" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > jas wrote: > > > > // second selection for main image on main page > > $dir_

[PHP] Re: Ereg ()

2002-04-16 Thread Jas
If you look on php.net and run a search on ereg() you will find examples on how to use regex. Your string would look like this: ereg('[a-z][A-Z][0-9]{7}') With your special characters I am not sure how that would work but check out php.net. hth Jas -- PHP General Mailing

[PHP] file delete...

2002-04-17 Thread jas
How can I delete a file in php? thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] verify file types when uploading to server...

2002-04-17 Thread jas
I am wondering if any one has a good idea on how to do checking based on a files extension, what I am trying to accomplish is to be able to upload files to a webserver however I only want to have .jpg files uploaded. If anyone has a good way to do this please share. Thanks in advance, Jas

[PHP] Re: verify file types when uploading to server...

2002-04-17 Thread jas
Nevermind... =) "Jas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am wondering if any one has a good idea on how to do checking based on a > files extension, what I am trying to accomplish is to be able to upload > files t

[PHP] Re: verify file types when uploading to server...

2002-04-18 Thread jas
nsion should be // Also the directory in question needs permissions set to 755 for it to work. "Michael Andersson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Maybe you want to share with the rest of us, or at least me how you did it?

Re: [PHP] Re: verify file types when uploading to server...

2002-04-18 Thread jas
Could you explain that a little more? thanks, Jas "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Not sure what you're tring to achieve, but that only checks the file's > name. You might want to use file

Re: [PHP] Re: verify file types when uploading to server...

2002-04-18 Thread Jas
Ok, I understand how it works at least, however I am not familiar enough with unix systems to know how to effectively use that command. Could you give me an example in code so I can mess around with it? Thanks again, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] file extension validation

2002-04-19 Thread jas
would be great. Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] verify file before linking to another

2002-05-01 Thread Jas
data to a text file, how can one verify that someone is not just typing in the name of the last page and therefore inserting a blank entry into the text file? Any help would be great. Thanks in advance, jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] sessions and outside of server root

2002-05-01 Thread Jas
to work, any help or pointers would be great. Thanks in advance, jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] arithimetic

2002-05-02 Thread Jas
This is a simple problem but for some reason it is eluding me... I have a form that has text fields and check boxes, the function checks the form, counts words, strips the slashes, then based on the number of words and number of checkboxes selected calculates a cost... I have added 4 new checkboxe

[PHP] sessions

2002-05-12 Thread Jas
any other checking with out that. Please help, good tutorials on this are very appreciated! Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session problems...

2002-05-13 Thread Jas
Ok I think I am a little confused as to if this is working or not: I have commented in the places where I am confused... if someone could please point out why the variables "u_name & p_word" are not being registered that would help me out a ton... thanks in advance, Jas --- Form

[PHP] Re: Reading dir contents...

2002-05-13 Thread Jas
; while ($file_name = readdir($dir)) { if (($file_name != ".") && ($file_name !="..")) { $file_list .= "$file_name"; } } $file_list .= ""; closedir($dir); HTH Jas "Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote in message [EMAIL

[PHP] security checks with sessions...

2002-05-15 Thread Jas
I can get the variables I have registered to pass from the login form to the login check, and from there it seems to drop the session variable I registered. Any pointers would be great! Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] uh, oh errors?

2002-05-16 Thread Jas
is is line 13 that is my error generator } This is the code for the db.php script: Any help would be great! I am assuming there is another way to redirect users besides the header function, just not sure what it is or how to use it. Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] uh, oh errors?

2002-05-16 Thread Jas
That worked, I had about 3 blank lines trailing my ?>. Thanks a ton! Jas "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What is on line 6 of the db.php file? Do you have a stray carriage return > at the end

[PHP] Re: List content of folders?

2002-05-20 Thread Jas
readdir(); search for that and you should find what you need. HTH Jas "Hawk" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there some var that does this automaticly? I don't really know what to > search for on php.net.

[PHP] verify file against array?

2002-05-20 Thread Jas
I am trying to register an array containing file types, htm, jpg, jpeg, gif and pdf. I think I am missing something, if someone could look at this and tell me what I am doing wrong that would be awesome, thanks in advance. jas "1", ".jpg"=>"2",

[PHP] in_array problems (another pair of eyes?)

2002-05-21 Thread Jas
I don't think I am using the syntax correctly, I have been looking at this function on php.net and everything I have seen says my code should be working. A form allows the user to upload a file: Resulting file (upload_done.php): And here is my error: Warning: Wrong datatype for first arg

  1   2   >