Correct Handling Of Multiple Sessions
For accessibility reasons I have replaced data being derived from a javascript triple drop down menu on a form feeding to a php page for processing. The replacement method uses a series of pages. A form with radio buttons in an htm page feeds into a similar php page where a session is created - and feeds through to another similar page where a second session is created – with the posted information and the 2 sessions being fed to the final php page for processing.
I did not want to use viewers’ cookies – they are often disabled, I’m told.
It works. But I am brand new to sessions, and wondering if I have done this correctly.
Page1.htm contains a normal radio button form, which posts ”size”.
Page2.php has the following at the very top (pre Doctype):
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
An Attempt To Explain Sessions - PLEASE Correct Errors Where Found
This is stuff I've been arguing with recently and I think I've figured out how to get the crud to work right :-) session_start() sets up your session vars. As such, it must be called before the header is sent; in other words, before you start sending HTML. You can have 150 lines of php code, but as soon as you echo "<HTML>" you're hosed. session_register() will set up the variable passed to it to EVERY page that starts with session_start(), 'cause a session is a temp file somewhere (I think on your local machine) that is storing this, so until that file gets whacked or updated somehow, the variable is in there. Session_register can be used anywhere in your code. Session_register will NOT update if you try to give it a new value. Example: $var was passed from page1.php via session_register("var"); $var = bob; will NOT set $var = bob. $var is still registered as a session var, so when you echo $var, it still gets $var's value from the session. Also, it will not update if you send $var in the URL. So http://www.whatever.com/page2.php?var=bob will NOT work, as the session sets $var BEFORE the URL does. And of course, this also holds true for form data. Nice little security bonus, isn't it? There are a few things you can do to change $var: 1. session_unregister("var"); - this will delete $var from your session file. Then you should be able to declare $var again, and then session_register it again if you want. Note that session_unregistering will only remove the session file's entry for $var, but not $ar itself. So unregistering $var will keep it from passing it to other session-enabled pages, but it leaves $var set in the page you unregistered it in. You can then do whatever you like with $var. If you don't want $var to exist at all, you have to unregister it and then unset("var"); 2. session_unset(); will whack ALL session variables. 3. session_destroy(); will whack your session completely. So, if you want to set your session var to a passed var, i.e. page2.php?var=bob, you would do this:
Handling Orders With Sessions
It will essentially be an intranet site that i am using inhouse to log orders made by customers. i would like to use sessions to create a king of shopping cart that i could use to add items in regard to the customers order. i then want to submit the order which will update a database table with the relevant information. what i am asking is: Can someone point me in the dierction of a thorough tutorial on session cart construction.
Handling Multiple Sql Statements
I am trying to do multiple queries from two databases on two different servers.I try to always use comments, what i'm doing here is having a select option, the select option has a value based on a session, basically session_id = userid, select userid in products,, print products, that. From there, store the product id in a variable, and call the product id, as well as the form to get me info from the other database, and then display the info. Sounds easy when I write it like this, but when I write it in code, it doesn't seem to work, it pulls me info, from the product id, but it's not taking any data in the form. I know I should not have a form submitted this way, it's bad for security reasons, but honestly I have no idea how put it in another form, and then call the info back to put it in the specific spot of the table. Can anyone tell me why it's not taking my form data, and also how I can make a query that goes something like this $query1 = "SELECT * FROM ei10800010001200708 WHERE NumeroExterno = '$productid'"; and (part I don't know how to search for) in between fetchadesde and fetchahasta where fetchadesde = $startdate and fetchahasta = $enddate and in between horadesde and horahasta where horadessde = $starthour and horahasta = $endhour That is a type of query i'm trying to get for my results, and I apoligize for the Spanglish, but I work for a spanish company and don't speak good spanish, which frankly just makes life hard. Does anyone have any recommendations? My code:
PHP Handling Of Multiple Select Fields
If I have a select element of a form that have the MULTIPLE attribute with name="temp", what will the variable names be in the action page (POST)? Will the first one be $temp[1], second $temp[2] and so one? This does not appear to be the case.
Handling Multiple MySql Connections
I thought this was possible, but apparently I am wrong, or I am doing something wrong. I need to be able to track and use two different mysql connections in a class. So far my class looks like this: PHP Code:
Handling Multiple Check Boxes
I have a PHP generated page which displays X many records. Each record has a checkbox preceding it. The user checks several checkboxes, and hits a delete button. All the corresponding records will be deleted. But I'm running into difficulty... Right now the NAME property of each check box is the primary key of the corresponding record. Hence if I know which checkboxes are checked, I simply use DELETE using the NAME value. Generally speaking, how do I get the server side to see which check boxes were checked? The check box names may not be sequential, if any records have been deleted previously, and the first check box might be a number greater than 0. Is there an easy mechanism to do this? Some kind of built in cnotrol array allowing me to loop over every check box that was on the form submitted? I could store the last and first checkbox number in a hidden input, then loop starting/ending at those values, but that may loop over a lot of controls that do not exist.
Headers, Octet-streams, & Handling Multiple Requests
I have a page with several links to different 'user' files (which are located outside the webserver). Clicking on the link executes a php file that does some user validation and returns the 'user' file via a header: <?PHP ... //force download dialog header("Content-type: application/octet-stream"); header("Content-disposition: attachment; filename="$file""); header("Content-transfer-encoding: binary"); header("Content-length: " . filesize($path) . " "); //send file contents $fp=fopen($path, "r"); fpassthru($fp); exit(); ?> The issue is, while they wait for one file to download they can't request another file until the script finishes streaming the first file. Is there a way around this? I thought maybe using "Content-Type: multipart" might work. Anybody have and idea how I would do this?
Handling Case Of Field Names In Multiple Db's
(Bottom line: I think what I'm looking for is an easy way of changing the case of key values in an array.) I've got code that I'm trying to make agnostic about the underlying database system I'm using. That is, I want the code to work whether the underlying db is MS SQL, MySQL, Oracle, etc. I'm using the PEAR DB package, and it's great for what I'm trying to do...except in one area. I get the returned row fields in an associative array, where the element key is the field name and the element value is the field value. The problem is that MS SQL returns field names in mixed case (actually, it returns the field names in the case the user used to define the field names in MS SQL in the first place), while Oracle returns the field names all caps. So, if I have the same db on MS SQL and on Oracle, I can't easily access the field values. For example: $row*=*$result->fetch_row(DB_FETCHMODE_ASSOC); Now, if I print_r($row), I see something like: Array*( ***[My_Id]*=*1; ***[Name]*=*"Fred Flintstone"; ) If I run this under an Oracle db, I might get this, instead: Array*( ***[MY_ID]*=*1; ***[NAME]*=*"Fred Flintstone"; ) So my code cannot say something such as: $id*=*$row["My_Id"]; That would work for the MS SQL version, but not for the Oracle version. I certainly don't want to say something like: if*($IsMsSql)*$id*=*$row["My_Id"]; else*$id*=*$row["MY_ID"]; I really don't have control of how the users define the case of their field names, otherwise I could tell them to upper-case them all the time. But that might not work, if a different set of db routines that DB uses returns field names in all lower case. I could do the following, but I'm not sure I want to take the efficiency hit (maybe it isn't so bad; I don't know): foreach*($row*as*$key*=>*$value)*{ ***$row*[strtoupper($key)]*=*$value; ***unset($row[$key]); }
Handling Multiple PortType Definitions With The Same Method Name With Built-in SOAP
I am trying to communicate with a WSDL that defines to portTypes: - <portType name="General"> - <portType name="Session"> And their exists 2 operations with the same name but in 2 different porttypes (the general "GetList" returns a default list of items, the session "GetList" requires a session ID to be passed in the header and returns a list based on the session ID): - <operation name="GetList"> <soap:operation soapAction="urn:XXX-General#GetList" style="rpc" /> - <input message="tns:GetListRequest"> <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:XXX-General" /> </input> - <operation name="GetList"> <soap:operation soapAction="urn:XXX-Session#GetList" style="rpc" /> - <input message="tns:GetListRequest"> <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:XXX-Session" /> </input> When I try to create a client using the build-in SOAP (PHP 5.1 beta 3), like this: $client = new SoapClient('http://localhost:8095/soap', array("trace"=>1, "exceptions"=>0)); I get the message: Fatal error: SOAP-ERROR: Parsing WSDL: 'GetListRequest' already defined in d:InetpubPHPsoaptest.php on line 12 Is there a way to handle this situation so that I can specify the portType, service name, or port name so that the available methods won't be duplicates?
Multiple Sessions
I'm developing a gameserver admin site , and some advanced user will rent multiple servers, therefore it would be nice to allow multiple sessions. Right now, when someone logs in as user "sam", and they want to log in as "joe" they will lose connection to the "sam" account.
How To Differentiate Multiple Sessions?
One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location on the server (in our own accounts on the same machine). When I am testing both versions of our program using the same browser (IE on Windows or Konqueror on Linux) the session variables will mix up and only the latest selection or options will be displayed. If I go back and forth using the "Previous" and "Next" buttons on our pages not only the variables from my pages will change to the variables from his page, but also my page will jump to his page as well. I am wondering if there is a way to specify where to save the session variables on the local machine so later the users can open multiple browsers to lead to different branches of our web site without mixing session variables.
Detecting Multiple Sessions
I have an address database running on POSTGRESQL web based ofcourse with php. My Web application has a login page that gives the users a session_start if their data is correct. Users can login at the same time. I would like to know how i can detect the session from these users. Than i want to know: - How many user are online - Wich users are online When they didn't logged out but have closed their browser, how can i detect if their offline?
Php (or Mysql?) Multiple Sessions
I'm running a script that uses a mysql connect to my local database. The script runs on my local webserver (using wampserver). When I'm running one instance of the script, and I'm trying to start another one, it won't start until the first script is finished. When I run one session on FireFox and the other on Internet Explorer, it does work. Is there some setting I need to change to allow more then one session?
PHP Multiple Instances / Sessions Question
I am currently running 2 instances of a web application on the same server. one of them has address http://www.justanexample.com/prod and the other has an address of http://www.justanexample.com/ipeer_demo. By logging into the demo with the guest passwords, the address becomes http://www.justanexample.com/ipeer_...on=Student.home. I can get into the production instance by simply changing the base url to http://www.justanexample.com/prod/i...on=Student.home and hitting enter. I'm sure there are quite a few solutions to this, but what do you think is the most secure way of overcomming this problem?
Multiple Sessions Disrupting Login Script
Hello, ok i have a very odd problem and i can't seem to figure it out. Basiclly the problem is, i login and logout as different users, and sometimes (im not sure when exactly) but it switches to use a different session file. I used greenarray.php to display all the global variables i am using, and from one page to another i am using different session ID's. Even though my login page has what i beleive to kill the old session: unset($_SESSION['user']); session_unset(); session_destroy(); Shouldn't all those kill the session? But for some reason it will re-read the original session?
Correct Way To Use ||?
Can anyone show me the correct way to use the || to compare if a string equals value 1 or value 2, 3, 4 etc? For example; PHP Code:
How To Get The Correct Date...
I'm working on an interactive calendar for my home page, but I can't get it to put the right dates down. It just keeps repeating today's date. Here's the code:
Correct Redirect Help...
Howdy. Here's the deal. I'm trying to use the script "Correct Redirect" written by Shamim Islam on my website. I'm having a major side effect with it: It don't work like I want it to. Here's a little information: I Type This: URL I Want To Go Here: URL But I Go Here: URL See where the problem arises? Even going to just URL I am given a problem. I have tried to email the author of the script but I am getting no replys so I didn't know where to turn. I hope someone here has an idea as to what I should do. Oh, and those addresses up there are correct. Here's the original script that I downloaded: Code:
How To Do Correct Path?
I have many folders and subfolders on server. As I would like to add code on each page to detect server URL, I need help with this. Code is: $_PATH1="http://" . $_SERVER['HTTP_HOST']."/"; Why I have to add on link for images also / that it will work as it is already there / in Link is like. <img src="<?=$_PATH1?>images/myimage.jpg" ></a>
Correct Date
i need a good script that can validate a proper date... by that I mean that it knows how many days are in each month etc. and so if a user selects a date that isn't valid then it just echo's an error message.
Is This Preg_replace Correct?
Just want to verify. I have a form and I want to parse any semi-colons out of the submitted info and replace with commas. Would this be the correct way to do it? $question1 = preg_replace(";", ",", $question1); Is there a better way to replace it in all the $_POST variables at once like maybe $_POST[] - preg_replace(";", ",", $_POST[]); or would I have to do a foreach loop?
Correct Use Of AddSlashes
When reading in values submmitted by a form, do you use addslashes just on string values or on any value regardless of type. I have a double value and a date value and am not sure whether I need to include these in my code block which addslashes to the submitted values.
Correct Date Syntax?
I have a mysql DATE column called date_available that I'm attempting to make this happen:
Correct Implementation Of Smbclient
I've got a real N00b question. I've been messing around with smbclient all day and I can get it to work from the commandline but not from my php script...i'm sure it's probably just an un-escaped character. PHP Code:
Correct Use Of Html_entity_decode($var,ENT_QUOTES);
I use the html_entity_decode() and htmlentities() for my all my php-form. It is safe and fast. I have read in a website that when using it is recommended to indicate the character encoding after the function e.g. html_entity_decode($var,ENT_QUOTES [, character_encoding]); I have also read in this topic that the utf-8 encoding is the safest as it is now recognised worlwide (though there are still some problem with Asian countries) My questions : 1/ Should I indicate the encoding in my statement? 2/ Is utf-8 really safe worldwide? 3/ If not, what about allowing the user to modify the encoding in its profile page (assing a variable) and then use the variable to all entity functions? Or can I forget this coz it has no use?
Cannot Get This One Correct And Working, Though Simple!
I have 40 or jpeg files which I want them displayed in a frame called "main" upon clicking thumbnails of the same pics in a "leftMenu" frame. The thumbnail jpeg files are called thumb1, thumb2, thumb3, thumb4, ...., thumb40. These files are smaller versions (50pixelX50pixel) of the larger jpeg files called 1, 2, 3, 4, ..., 40 which I want them displayed. To display the hyperlinked thumbnails in the "leftMenu" frame I have it in a loop. [See the code snippet] But my problem is that part of the code ...<img src='thumb$i.jpg'> ... It doesn't display the intended thumbnail jpeg files; instead, it display the larger version of the files as thumbnails which takes longer to load. Here's my loop: <?php for ( $i = 1; $i < 40; $i++) { if ($i!=17) { echo "<a href='$i.jpg' target='main'><img src='thumb$i.jpg'></a> } } ?>
Correct Format For .php&redirect=
I'm working on setting up some affiliate links on a site of mine and I haven't been able to get a redirect to work. The original affiliate link looks like this: http://www.exampleurl.com/index.php?ref=10 Rather than use this link however I am wanting to redirect to specific product pages. A product page link would look like this: http://www.exampleurl.com/example-p...-1-135_100.html In the past I have been able to easily set up a redirect link simply by combining the links with &redirect= such as: http://www.exampleurl.com/index.php?ref=10&redirect= http://www.exampleurl.com/example-p...-1-135_100.html I understand this is probably not correct for PHP. I did play around with it a lot to no avail, including the use of URL encoding.
Echoing The Correct XML Tag Data
I am having trouble ECHOing specific data and for some reason the links for each sub parent are combined into one link...Let me explain that. The first link is correct and outputs http://example.com/1, but the second link outputs http://example.com/1http://example.com/2 Does anyone know why that is? The other problem I have is that I have about 200 sub parents in my xml file and the sub parents represent different categories, for example: Code:
Join And Echoing Correct Id
The information is displayed correctly. The problem comes into play with the record id's. The link I would click on for the employees name is echoing the job id and not the employee id so I get sent to the job page and not the employee profile. The link I would click on for the job is echoing fine. Code:
Calculating Correct Time
Lets start off by giving you my code (Well the important sections of it!): <?php /**/# Total Time /**/$query = "SELECT sum(hours) FROM flights ".$condition; /**/$result=mysql_query($query); /**/$blcktime = number_format(mysql_result($result,0)); /**/$query = "SELECT sum(minutes) FROM flights ".$condition; /**/$result=mysql_query($query); /**/$blckmins = number_format(mysql_result($result,0)); echo "$blcktime:$blckmins"; ?> Okay this part works. Like if there is an entry that has 20 hours in hours table and 50 minutes in minute table it displays 20:50, but my problem is if there are more than one record (Which there will be) if the previous was still true and another record had 1:30 the total would be 21:80 but this of course is not correct addition of time. And this is not a 24 hour clock it simply displays the time someones been in a game so it can go lke 300:56 too. Now how would I get it so if the $minutes were greater than 60 and divisible by 60 it would add the correct numbers to the hours like $hours = $hours + $times_divisible; or something like that! I am okay with if..else..elseif statements but that would take forever to write. thats why I need a looping sttatement but I havent got a clue how to write it.
Displaying The Correct Result
I am getting a value from the table of the field no_of_semester. suppose the no_of_semester for the programe BCS are 8. Now i have to put the no_of_semester value in a listbox but the no_of_semester will start from 1,2,3.....8, which will be defenetly done with the help of a loop. Code:
Correct Validation Logic In Forms
I have a question which have bothered me for a while - thats to do the validation when a form is submittted: How can validation be done in the best way? I have come on the alternatives: 1- making the validation in the php after submitting the form --> then you handle in the server level, but would the data that the user enters still exist when you redirect to the same page (probably globals is needed then) --> how would the error messages be handled - would you redirect to a totally new page or the same the user came from? 2 - Using Javascript. --> This I like because you directly apply messages at the instance data is entered. --> But this is Client side - so its not a REAL validation. I like the usability of 2) and the consistency of 1) But what is the best practices?
Refreshing A Frame With The Correct Content
I have a frame.html which will call navigator.php in headerFrame and main.php in mainFrame. The problem that i am facing now is whenever a user refresh the pages, the frame will load the default main.php in mainFrame although the user may be looking at other pages. i've tot of using sessions to track the page that the user is currently viewing. from there, i can call the right file upon refreshing frame.html. however, what if the user had openned two windows? how can i make refreshing with the right page possible?
Correct Way To Write A Variable In A Loop
I have a form with variables names that are created from a loop. This is easily done as the names of the variable are output to the name part of an input field. however, i now am working on some error checking. I have made a loop that is supposed to loop through the submitted variables and check if each one has a value, if it doesnt have a value then an error message will be created. This is ok if I hard code the variable but i need to do something different. PHP Code:
Correct XML String Creation Function
Is there a php function that can translate any string to it's correct XML equivalent? Like for instance when I have the following script: PHP Code:
Sql Query Not Returning Correct Results
i'm using an entry in an sql database as a semaphore and it, unfortunately, doesn't appear to be working. the script that spawns the child processes has a for loop that performs the same basic sql query over and over again until the value has changed (there's a one second delay between each query). unfortunately, the resultant row is always the same, even when the other process *has* changed it. as an example, if the orig. value was of the entry was 0, and one second into the execution of the second process, the entry was changed to 1, my program would, even 10 seconds later, fetch 0. in other words, it'd never be aware of the change. any idea as to why this is and what i can do to fix it?
Correct String-split And Reassemble?
I need to split a long piece of text from a textarea box into small chunks, then POST these chunks to my credit-card provider, whereupon he will POST them back to my script, which will reassemble them into the original text and display it. This is necessary because my credit-card provider has a limit on all POSTed variables, which must be 255 characters or less each. I thought that this would be simple to do. I used substr to take bites out of the string, then included each piece as a hidden variable in my form. When I received the return POST, I reassembled all the strings using the (.) concatenator, then printed this out. The problem is, pieces of the original text are missing, and there are numerous // escape elements present in the text. Here is my code: $questions = $_POST['questions']; // coming from a previous POST $questions=substr($questions, 0, 3556); // I put a limit on the total string size. $questions0=substr($questions, 0, 254); $questions1=substr($questions, 254, 254); $questions2=substr($questions, 508, 254); $questions3=substr($questions, 762, 254); // etc. <INPUT TYPE="HIDDEN" NAME="questions0" value="<?=$questions0?>" > <INPUT TYPE="HIDDEN" NAME="questions1" value="<?=$questions1?>" > <INPUT TYPE="HIDDEN" NAME="questions2" value="<?=$questions2?>" > <INPUT TYPE="HIDDEN" NAME="questions3" value="<?=$questions3?>" > // etc. Then I POST the data, and then it comes back to my redirect page, which uses the following code: $questions0=$_POST['questions0']; $questions1=$_POST['questions1']; $questions2=$_POST['questions2']; $questions3=$_POST['questions3']; // etc. $questions=$questions0 . $questions1 . $questions2 . $questions3 . $questions4 . $questions5 . $questions6 . $questions7 . $questions8 . $questions9 . $questions10 . $questions11 . $questions12 . $questions13 .. $questions14; // concatenate it print ($questions); // I display $questions. It is mostly there, with parts missing, and many //s here and there.
Correct Permissions For Directories On FTP Site?
I am making an FTP site for users to add files and folders to. Does anyone know what the correct permissions should be so that people logged in to the site can do this? I know that 0777 allows this, but I didn't know if this left the folders/files open to people outside the site?
Script Not Returning Correct Numerical Result
I am working on a script to calculate returns on bets. This involves entering odds, stake etc. The problem I am having is with adding a new element into the calculation. In betting their is something called a Rule 4. This occurs in some races and diminsihes the retrun but there is no need to go into details. Basically, here is how it works: There is a race with odds of 2/1 and a rule 4 of 20 cents is in place. With the betting rules this means that the odds must be multiplied by 1 - rule 4. In this case the rule 4 is .20 so 1 - .20 = .80 You now have to mulpiply the odds by .80 We only multiply the first number os in the case that is 2 (for a 5/1 bet it would be 5 etc) .80 * 2 = 1.6 is the correct answer. This calculates ok in part of my script but when it gets to the second part on the same page it is returning 1.28 instead. PHP Code:
Passing Checkbox Values Into The Correct Arrays
I've been looking at some code and the net for the past few hours trying to figure out what's wrong and I'm stumped. I have a form - multiple checkboxes (different names) and text fields going into an array. The text fields behave fine - the values from the first entry will populate elements of the first array. The weird part is that the check boxes will pass the correct values but not always to the correct array element. For example, given two check boxes in a 2 element array, if you check the 1st box in the first element and the 2nd in the second element, on submission, the second element populates the first array element. I've included a snippet of the code as an example - it's echoing things like crazy because I've been trying to see what's been going on. I hope someone can figure this out for me 'cause I'm completely stuck and am on a deadline. Code:
Why Cant I Show Correct Image From Sybase When Size>17K?
I use php4+sybase11+apache,when i select image from sybase($result=sybase_query("select image from imagetable where id=1"), if size<16k,everything is right,when size>17k,the image is only half(size=16384b).when i use "select datalength(image) from imagetable",the size is 28990b.why cant i read image over 16k?
How To Choose The Correct Height/width For Images
I have users that submit images to my website. By default I choose to make the width bigger than the height because usually pictures are taken horizontally... But in some cases people take pictures vertically so what I'm getting at is... can I know whether an image was taken horizontally or vertically so I can make the proper width/ height lengths so that it looks nice and not kinda weird... because if you make the width bigger than the height of an image that is supposed to have a bigger height than width, it looks kinda ugly.. And also is there a way to know when I've enlarged the image too much? because if an image submitted was small and I make it bigger, then it also becomes kind of ugly to look at because I guess there aren't enough pixels...
Reading The Correct Line Sequence From A Txt File
Is there any reason why i am NOT reading each invididual line from a txt file in this script...e.g i keep on getting 2 lines printed outed when there are clearly four lines in the txt file. also, is my counter right here? <? php $listf = fopen ("./member.txt", "r"); # read the file $line = fgets($listf, 4096); while(($data = fgetcsv($listf,1024,"|"))!=FALSE) { $count++; $duserid=trim($data[0]); $dname=trim($data[1]); list ($duserid,$dname,$actions) = split("|",$line); $line = chop($line); //chops space out of program $actions= "<a href="./delete_member.php?record_id=29">Delete</a| <a href="./edit_member.php?record_id=29">Edit</a></td>"; $data = fgetcsv($listf, 1024); echo "<tr><td>$duserid</td><td>$dname</td><td>$actions<td></tr>"; } fclose($listf); ?>
Sending Mail From Php And Correct MS Outlook Receive
In my MS Outlook I use global address book to handling contacts. When I send email from Outlook to myself and double click on sender I get information about me from my global address book. When I use php mail() function to sending messages and then double click on sender I get specificity message email window only. How do I have to prepare header at mail() function (for example: FROM: ?) that after send and double click on sender in Outlook I get information about sender from Outlook global address book ?
Cakephp ,wiki's Tutorials :advanced_validation Not Correct
is there anynone ever used cakephp for developing? I am a beginner, I followed http://wiki.cakephp.org/tutorials:advanced_validation but it nerver work properly,there always an error: Warning: preg_match() expects parameter 1 to be string, array given in D:WWWcakecakelibsmodelmodel_php5.php on line 1321 I think we must make some changes on cakelibsmodelmodel_php5.php.
|