No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
41 Posted Topics
Re: What's the point of not saving into PHP and using HTML instead? This will slow down your system a little bit since a pure HTML code should be parsed by PHP. I'd rather disguise my PHP file as HTML using .htaccess . Visitor will never know what's under the hood … | |
Re: As an end-user, I vote for Opera, because it's lightweight and full-featured. Very convenient to use. Be honest, compare opera and FF directly without any extension/plugin. As a developer, I vote for FF as there are so many extensions that will make my life easier, such as firebug and web … | |
Re: are you trying to include [url]http://blahblah[/url] ? you must have allow_url_fopen enabled to do that | |
Re: It's a weird idea for me to build a POS system using PHP. In fact, there are many things inconvenient to accomplish using PHP (i.e printing the invoice). Why dont you build it using Delphi/ .NET, and send/retrieve data you need via web service? | |
Re: [QUOTE=;][/QUOTE] You must use two instances of LoadVars. [code] boton.onRelease = function() { var correo = new LoadVars(); //here var example = new LoadVars(); correo.nom = nombre.text; correo.ocu = ocupacion.text; correo.conoc = nos_conoce.text; correo.ema = email.text; //here correo.sendAndLoad("correo.php",example,"POST"); //and here example.onLoad = function(success:Boolean) { resultado.text = correo.res; nombre.text = ""; … | |
Re: [QUOTE=;][/QUOTE] just use ordinary link tag [code] echo "<a href='".$row['Title']."'>".$row['Title']."</a>"; [/code] | |
I have a string contains sequences of 0 and 1. I need to replace all zero sequences whose length less than 5, into number 1 with same length. The zero sequences with length 5 or more should be left as is. For example source : 11000001100010011000001 result : 11000001111111111000001 [CODE] … | |
Re: This is a very simple tutorial from php.net [URL="http://php.net/manual/en/tutorial.forms.php"]http://php.net/manual/en/tutorial.forms.php[/URL] | |
Re: seems that you'll have to fetch each column and sum it one-by-one manually. You'll have greater control about these rounding problem, but it will surely slow down your program by a little bit. | |
Re: [QUOTE=;][/QUOTE] [quote] I put print statements in update.php to see if it was receiving the seq_id from news.php and it is not. [/quote] most likely this is the "register global" problem. You should edit your code as Almostbob recommend, using $_POST[] etc. | |
Re: The code is incomplete, we don't know what is that "Page" object, it's not defined in your code. There's a tutorial about file uploading in PHP Manual, it's simple and easy to understand. [url]http://www.php.net/manual/en/features.file-upload.post-method.php[/url] | |
Re: Never encounter something like that. Have you try another browser? Or use a PHP package such as XAMPP this is my working php.ini [code] session.save_handler = files session.save_path = "D:\xampp\tmp" session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = session.serialize_handler = php … | |
Re: [QUOTE=;][/QUOTE] Basically, you should check if certain session variable exist when the page is being accessed. If that session variable does not exist, then spit a message or take him to login page as vibhadevit said above. [code] if( !isset($_SESSION['admin_login']) ) { echo("Please login first"); } [/code] | |
![]() | Re: [code] $numrows = mysql_num_rows($sql); if($numrows==0) { die ("You currently do not have any friends on photoshare"); } [/code] ![]() |
Re: [quote] $sTargetPath = 'c:/wamp/www/uploading/uploads/' [/quote] it is better and more convenient to use relative path instead of absolute path. [code] $sTargetPath = 'uploading/uploads/' [/code] Windows use \ as separator, if you insist to use absolute path. Don't forget to add another one as escape character. [code] 'c:\\wamp\\www\\uploading\\uploads\' [/code] | |
Re: Are you sure that model numbers are ALWAYS contain at least a number? Or the brand NEVER contain a number? I think you can't just assume that all product will meet this criteria. For instance, "O2 X2i". It will be even harder since the position of product number is arbitrary. … | |
Re: <a href='blah.php?textboxname='+formname.textboxname.value> just read using $_GET['textboxname'] alternatively, use an ordinary FORM, and submit it using javascript. onclick = "document.forms[0].submit()" | |
Re: I found out that mail() function did not work on some web hosting provider. I don't know why, but I experienced it couple of years ago. I use PHPMailer class till now. It rocks. | |
Re: 3 of 3, I'm not dumb :) but to be honest, I answer the 1st question randomly. English is not my primary language (it's my 3rd) and I don't know what "syllabus" (or whatever) mean | |
Re: Do you use shared web hosting? Most shared hosting limit mysql connection from localhost only due to security reason. You cant connect to mysql on a shared hosting from different host. Ask your hosting provider whether they provide "Remote MySQL", or move all of your website to one single server. | |
Re: You might want to try SQLite, a serverless, fast, file-based database. It's ideal to replace a large INI file. | |
Re: Try PHPMailer to send such complex email. Better header manipulation, CC/BCC, attachment, SMTP, and much more. [url]http://sourceforge.net/projects/phpmailer/[/url] | |
Re: If it for private use, cut the file into two pieces and burn them into two DVDs. When you need the file, copy both parts into your hard drive, re-join them, and mount it using virtual drive. | |
Re: It's true that short tag has less character to type. But there are many well PHP editor out there, which automatically create a proper <?php ?> syntax with a single click or via hotkey. | |
Re: try something like this [code] $i = 1; while(.....){ echo $i; echo $yourdata; $i++; } [/code] | |
Re: you should put the public and private files into separated directory. Create a script using directory functions available in PHP such as scandir() to list the directory content. You may protect this file using session so that only logged user may access it. | |
Hello everybody, I need to load an external movie clip using loadMovie(). This external movie clip is playing some sound by default. I need to stop sound for that movie clip only, but not for my entire movie. I don't have the .fla file for that external movie, and fail … ![]() | |
Re: You may want to user javascript library such jQuery. jQuery is able to make ajax call, or many more javascript stuff for all major browser with a single code. Write less, do more :) | |
Re: That's a Regular Expression (or RegEx in short). Every symbol has a meaning, \ for escaping a non-alphanumeric character, / mark the start of an expression, $ mean end of line, etc etc. ([A-Za-z0-9_\-\.])+ means I want alphanumeric character, or dash, or underscore, or dot, at least once. \@([A-Za-z0-9_\-\.])+ means … | |
Re: I don't think you can do that with JS. For security reason, JS should not be able to deeply touch inside client's PC. A website shouldn't be able to force your PC to print all your doc, or shutdown your PC. You may try to use server side script such … | |
Re: Please post your bad code here. We have no idea why didn't your code work. | |
Re: you should use LIMIT in you query. [code] SELECT * FROM foo LIMIT $count,$start,; [/code] $count is the count of rows you want to display at a time. you'll need to pass $start for each pages via URL. [code] <a href="page.php?start=5">Next page</a> [/code] value of $start will be constructed dynamically … | |
Re: PHP framework such as code igniter will make teamwork easier and faster, but it will slow down your site. Be wise. IMHO, the requirement will be : PHP with a framework such as CI, CSS, javascript with jQuery, and MySQL. | |
i've created a form like this [code=html] <form method="post" target="iframe_in_bottom" action="send.php"> [/code] send.php is used to save data posted from the form, and call a function called getURL in main window [code=html] <script type='text/javascript'>parent.getURL('thankyou.php')</script> [/code] [code=javascript] function getURL(url){ var xmlHttp=GetXmlHttpObject(); function stateChanged() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ document.getElementById('maindiv').innerHTML=xmlHttp.responseText; } else … | |
Re: Its always been an unsolved question for years. Yes, things like Intel or AMD, ATi or NVidia, etc. Everything has its own pros and cons. For me, I chose PHP because its easy to learn. PHP had a massive community ready to help you, and cheap hosting price. | |
Re: well, using relative path doesnt always work well. You should use absolute path, i.e ExtractFilePath(application.exename)+'yourdatabase.mdb' | |
I want to paste some text in clipboard into Ms Word. I wrote this following code [code] a:=findWIndow(pchar('OpusApp'),nil); b:=FindWindowEx(a,0,pchar('_WwF'),nil); c:=FindWindowEx(b,0,pchar('_WwB'),nil); d:=FindWindowEx(c,0,pchar('_WwG'),nil); SendMessage(d,wm_paste,0,0); [/code] and it didn't work. But i wrote the code below to paste into Wordpad,and it works fine [code] a:=findwindow(pchar('WordPadClass'),nil); b:=FindWindowEx(a,0,pchar('RICHEDIT50W'),nil); SendMessage(b,wm_paste,0,0); [/code] Am I made some mistake … | |
![]() | Re: You'll have to try something like writeln(c:5:2), to output c with 2 digits of decimal places. ![]() |
Re: Well,i used to learn programming in C too.It was complicated,though. I was moved to Delphi about year later. I found Delphi is easy to use,well documented,and able to create anything I want from a small game to fully-functional HTTP server. You can try the free version (Turbo Delphi) for learning … | |
Re: >You won't learn anything new if you only stick to what is comfortable. Right. But dont waste up your time just to learn new languages. All you will get is shallow knowledge about many thing. There's too many language out there. It's much better if you have a main language … |
The End.