[PHP] An important, urgent question about classes?
Hi all, I need to learn something about classes in PHP, that I could not understand what's going on really!? For the following sample, what kind of class i need to create? how can i use? For example, I have X students X: from 1 to infinity... With respect to student ID of them, And for each students, I have name,surname,addr,phone,email etc.. informations of them I want to create a class, such that, i can input info of students, for each student. And for example, when I did this for 10 students, I want to register with "session_register" and add/remove/change registered informarmations. I tried to do, but I could not understand the uses of classes clearly, so I could not do... Thus soem body write me small code which includes a sample class and adding/changing/deleting records for one student inside. Can I register a valuable which is a class? $mydata = new Students(); session_register("mydata"); ? is possible? Do we have any restriction about registering a variable with respect to its type? thanx... best regards... IncrediMail - Email has finally evolved - Click Here
[PHP] eregi and alfa numeric characters.
Hi all, I want a regular expression process such that, no characters except for the followings will not be allowed. 0-9 a-z A-Z ~ @ # $ % ( ) _ - + = [ ] { } ? I create a web site with membership. I have a problem. Some body uses a username GUEST and someother get's the same username (in fact not the same, but displays as a same username, because, second username is GUESTx where x replace with the code ALT+231 so I want to give a sequence of characters to the user, such that user cannot use except for this crahcters. I wrote all the characters above... best regards... IncrediMail - Email has finally evolved - Click Here
Re: [PHP] passing parameters from one page to another
Hi, If you want some parameters which will be pass in your site, you can use "session" . for example, you have parameters, fooa, foob, fooc, ... etc.. ? session_start(); $fooa = 1; $foob = "sait"; $fooc = "http://www.yonlendir.com/"; //you do, session_register("fooa"); session_register("foob"); session_register("fooc"); ? then you can use them everywhere in your site as "$fooa", "$foob", "$fooc". You can change it's value. you can unset with session_unregister("fooa"); Be carefull that, your paramater is $fooa, you should register it without $ session_register("fooa"); // No $ at the beginning of the paramater... And you should put session_start() at the top of the page, if you will use these parameters in that PHP file... Also, you can use COOKIES...! I dont prefer in general ... and do NOT session_register a password or a credit card number, for security reasons... good works... ---Original Message--- From: [EMAIL PROTECTED] Date: 11 Ocak 2002 Cuma 14:13:41 To: [EMAIL PROTECTED] Subject: [PHP] passing parameters from one page to another Hello everybodyI want from a Form page to pass a couple of values (fooa, foob, fooc)which are not form fieldswhen submit button pressed to the submited page...thanks in advance for your helpsimos IncrediMail - Email has finally evolved - Click Here
[PHP] Php and PDF files...
Hi, I want to change a PDF file into the HTML, DOC, TXT... All programs that I used is not enogh to create a good document... - HTML output is not clear enough like original PDF OR - Images inside the PDF document has been corrupted or bad (although original ones are very very good) does anybody have/know a utulity which best converts these documents? thanx... note that, I search and tried some documents... like pdf2html ... ---Original Message--- From: Neil Freeman Date: 11 Ocak 2002 Cuma 14:27:28 To: PHP General Subject: [PHP] Sizeof variable variable arrays Hi there guys,Who's awake today then? :) What I'm trying to do is create variablevariable arrays and then fill these arrays with values. The problem Ihave though is that the values don't appear to be getting stored - asfollowing the assignment I have outputted a 'sizeof' command whichalways outputs 0.Here's a snippet of the code. Any ideas guys???//store children page_IDs into array for each parent$str_array = "menu_array_" . $current_parent_page_ID;$$str_array = array();for ($child_cnt = 0; $child_cnt $number_children; $child_cnt++){$db_help_structure-next_record();//get page_ID value$page_ID = $db_help_structure-return_single_result('page_ID');//$page_ID is now setecho "storing in $str_array position $child_cnt:" . $page_ID ."br";$$str_array[$child_cnt] = $page_ID;echo "size:" . sizeof($$str_array) . "br";}Email: [EMAIL PROTECTED][EMAIL PROTECTED] IncrediMail - Email has finally evolved - Click Here