648 Posted Topics
Re: Well I don’t walk away often… don’t get me wrong I don’t thing that I can teach people the “right” way either by speaking , shouting or … but I strongly believe that if walk away from something that has small significance today you will be forced to stand up … | |
Of course this is a hypothetical scenario. Let’s suppose that you can’t choose last three or four decades, and that you can’t choose to be a historical (real or imaginary) figure so when in history would you choose to live, where and why? | |
Re: Well the good news is that you are alive and as I can understand you have love from family and friends … I hope to keep that status for many … many years … | |
Re: The other option could be to create a web service (or a REST JSON webservice) and have the provider in your ISP that takes the data and store it in your ISP and the client that gives the data in local machines. | |
Re: This thread made me little sad because I remember that in ’87 I was hiding that I am programming (even a game then) in order not to be thought as a geek. There were races back then, geeks , rockers , athletes, and I am a rocker still and I … | |
Re: > The rest of Europe is paying for the food these characters are throwing. Really? How could you say such a thing without any thought? I haven’t seen or read any news about food (or money) given to Greece for free… (If you have any such news –not loans- please … | |
Re: In my previous job I worked for more than 12 hours a day, not programming all of them, but with many meetings. When I am programming I need 15 minutes each two hours, to go out, chat or take a small walk smoke a cigarette (bad habits), talk to cell … | |
Re: Where are you defining $name variable before using it? Do you mean something like $name = $_POST("name"); ? Of course using MySQL without validations or/and prepared statements is really a bad way to do things (PHP has PDO). | |
Re: Go to RecursiveCopy function example in http://php.net/manual/en/function.copy.php | |
Re: If you develop both sites then creating a secure web service could be the best solution. Even if you are not familiar with web services a simple json client – provider approach with a password for security could do the job. If you don’t control at all the site where … | |
Re: You said that when user clicks on the calendar image, date can be chosen, why don’t you use only JavaScript and leave PHP on its server side? One good JS calendar that I am using in lot applications is JSCal2 that allows you set max and min date selection (but … | |
Re: This is another way, first take a look at, http://www.php.net/manual/en/datetime.construct.php http://www.php.net/manual/en/datetime.diff.php http://www.php.net/manual/en/class.dateinterval.php <?php $safetimestamp = 1332185534; $then = new DateTime(); $then->setTimestamp($safetimestamp); $now = new DateTime(); $now->setTimestamp(time()); $difObj = $now->diff($then); if($difObj->invert == 0) { $message = "error: future date given"; } else { if($difObj->y > 0) { $message = "over ". … ![]() | |
Re: Try that [CODE]echo "<option value='".$band."'>".$band."</option>";[/CODE] | |
Re: What puzzles you ? Where are you stacking? | |
Re: You must have copied something wrong in reservation_insert.php , the logic thing is that your line 15 is line 14, and therefore the message speak by itself - undefined index . At least one index from the $_POST array that you are using is undefined. You could echo them before … | |
Re: You must have copied something wrong [CODE]<?php $stack1 = array(); echo sizeof($stack1); // will be 0 for($i = 0; $i < sizeof($stack1); $i++) { //this will not happen at all echo $i; } ?>[/CODE] | |
Re: What do you mean “to protect against malicous attacks. . .” , what type of variables do you want to avoid ? | |
Re: This has nothing to do with PHP , it is a JavaScript question ... | |
Re: What encoding process do you use in PHP ? Don’t you just read blob binary data and have in some column the type of the image? And on the other hand what could be the encoding process in VB than just save those binary data to db and the type … | |
Re: [CODE]<?php echo "wrong way<br/>"; for($i=0; $i<20; $i++) { $a = "23".$i; echo $a."<br/>"; } echo "an easy solution<br/>"; for($i=0; $i<20; $i++) { $a = (int)"23".($i<10 ? "0".$i : $i); echo $a."<br/>"; } ?>[/CODE] | |
Re: Well it doesn’t work, what is the message? … Have you checked your php.ini for max upload file size ? | |
Re: I can’t understand what could be the reason for such thing. Maybe not a good understanding of what a database is. Anyhow you know what the AB part of the id AB-080312-1 is , you also know how to produce the 080312 , ( date("dmy") ) , to get the … | |
Re: Of course what you described is more complicated than the code provided, but this is not the problem, you can’t upload images through a real AJAX (theory sais that you could using techniques in few browsers) , that is the real problem, you could use iframes and javascript form manipulation … | |
Re: I would love to hear your opinion, amrita111 , how what you are asking could have to do anything with PHP ? | |
Re: To be honest I didn’t understood what you are asking. First you say [QUOTE]I have managed to display the data with all the tables joined to create 1 record.[/QUOTE] And then, [QUOTE]I have managed to get up to showing results of table A but I have no Idea on how … | |
Re: All I know that I know nothing, hehehe. The right answer for me when somebody asks me if I know x language is … -Define the term “know”... ![]() | |
![]() | Re: Of course there could be many approaches, but as I understood from the given examples you are talking about utilities classes (with general functions) . If this is the case could be best if you separate them based on what the subject argument is. That way you could have, let’s … ![]() |
Re: That you can do something with a language doesn’t mean that you should. From PHP4 some programmers used techniques that were against any object oriented logic, of course PHP changed and then they had problem maintaining their code. This is also the case here, it is a rather old bug, … | |
Re: Don’t get frustrated, start by putting in first line [CODE]echo get_include_path(); exit; [/CODE] In order to find out what is the include path. If isn’t what you expected then there is a problem in php.ini (for example I noticed that you are using WAMP , which one php.ini are you … | |
Re: If your goal is refactoring an application to object oriented PHP it will save you a lot of time reading more about OO. In the specific question read more at, [URL="www.php.net/manual/en/language.oop5.static.php"]www.php.net/manual/en/language.oop5.static.php[/URL] To make your example complete you should had properties (-private $ anyfield- in A and -private static $anyfield- in … | |
Re: You are perfectionist on what ? on drawing ? Don’t get me wrong, web design is an art science with not so many fields in universities yet, I don’t underestimate that job. But it is not programming, programming is something deferent. Frameworks will not make you a programmer experience and … ![]() | |
Re: From what I understood you since you don’t have access to the script, you could do it in client side, for example with jQuery (just google “jquery modify links” ). | |
Re: An editor (like Eclipse or Netbeans) could make your life easier. The message is telling you what is wrong.. line 109 … [CODE]echo validateCC($POST_[ccnum],$POST_[cardtype]);[/CODE] probably you mean [CODE]echo validateCC($_POST["ccnum"],$_POST["cardtype"]); [/CODE] | |
Re: What exactly is the problem , how has it to do with PHP ? | |
![]() | Re: You can use variable variables, of course you have to modify the following example to your needs [CODE] $book = simplexml_load_string($data); foreach ($book as $key => $value) { $$key = (string)$value; } // example if the book has title echo $title; [/CODE] |
Re: I am afraid this is a more complex issue. If the JavaScript event onunload or onbeforeunload worked than you could call by AJAX a script to let know your database that that user is no more online, but those events don’t really work always and I don’t believe that they … | |
Re: To change databases through an external input is something that reveals that there is a serious problem with the logic of your databases structure. You could do it for example taking the time and from that decide what the arguments of a PDO would be, but it is not a … | |
Re: I am happy for you that you chose your framework … but with what standars? You haven’t worked with PHP and you are not in programming … yes maybe CI is best for acknowledged. Have ever thing to make things in PHP like write your own programs and then decide … | |
Re: I have used jStore witch create persistency in user’s PC (using methods like Flash Local Shared Objects) , in this way (along with AJAX , because first time a user enter a site you don’t have the PC persistent security object) your application can remember a user. But as ardav … | |
Hello, I could really use opinions in the fallowing issues. I am participating in development of a local news site (articles are divided in categories). First of all I am thinking how to structure rss files. One rss for all articles (could be really big one) or one for each … | |
Re: This isn’t sure a PHP question; this isn’t either a programming language one. It is not even a browser question … it is strictly a Firefox usage question, so why don’t you ask in Software / Web Browsers ? | |
Re: Hello, maybe I didn’t understand something correctly. With $_GET["p"] you will have the video_id that you are looking for {you could check first that there is a p var in url { if(isset($_GET["p"]) } } . Then the flow is simply MySql commands that if you need help with them … | |
Re: Have you ever thought in starting programming lessons ? And maybe after 1 or 2 years (if you are a good student), built your own online shopping program and site. In the other hand you could use one of the free scripts available and have no clue of what really … | |
Re: Hello, you told that you could use an advice too. What you are describing is a database issue. Of course you could use a csv as a database / table file … but this will make your life difficult. There aren’t “magic” commands in SQL (MySQL) that we could share … | |
Re: The answer is in the message. You are using $searching without first give a value to it … | |
Re: You could use many deferent approaches to that (array marks in a field name is just a quick dirty fix …) . If you fill these options from PHP then just give names relative to the data that generating them. For example cd_0 is Java … so you will know … | |
Re: If I understood correct what you are doing try something like ... [CODE] ob_start(); echo $obContents; $contents = ob_get_contents(); ob_end_clean(); echo $contents; [/CODE] Where $obContents your table field that has php inside it … (maybe you will need to write first the content to a file and use include maybe … | |
Re: [QUOTE=ppetree;1614253]Apparently, PHP does not support WS security in its soap class so, its not that I'm doing something wrong... its php![/QUOTE] How did you ended with that opinion (that PHP is the problem?). Take a good look at examples in [url]http://www.php.net/manual/en/soapclient.soapclient.php[/url] . Are you sure about the “logonUser” key that … | |
Re: Forget JQuery , has nothing to do with your examples. $DB in your example is an instance of a class (a data base handler class I guess). Object oriented programming has lot advantages, PHP has a very good class PDO , that will make your life easier and more secure … ![]() |
The End.