Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #1K
~51.0K People Reached
Favorite Tags

41 Posted Topics

Member Avatar for HanFromNL

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 …

Member Avatar for Nour_6
0
37K
Member Avatar for adkool

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 …

Member Avatar for crunchie
2
895
Member Avatar for airmvp23

are you trying to include [url]http://blahblah[/url] ? you must have allow_url_fopen enabled to do that

Member Avatar for airmvp23
0
500
Member Avatar for Majdaa

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?

Member Avatar for chayan.cjee
0
703
Member Avatar for G_S

[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 = ""; …

Member Avatar for farhan386
0
136
Member Avatar for amras123
Member Avatar for mpc123

[QUOTE=;][/QUOTE] just use ordinary link tag [code] echo "<a href='".$row['Title']."'>".$row['Title']."</a>"; [/code]

Member Avatar for mpc123
0
82
Member Avatar for farhan386

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] …

Member Avatar for farhan386
0
175
Member Avatar for notmasteryet

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]

Member Avatar for 84hd0ns
0
93
Member Avatar for freiheit

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.

Member Avatar for pritaeas
0
103
Member Avatar for mugojoe

[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.

Member Avatar for shadiadiph
0
227
Member Avatar for sastudent

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]

Member Avatar for pzuurveen
0
129
Member Avatar for levsha

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 …

Member Avatar for Grantism
0
203
Member Avatar for smi ensi

[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]

Member Avatar for smi ensi
0
124
Member Avatar for doctorphp

[code] $numrows = mysql_num_rows($sql); if($numrows==0) { die ("You currently do not have any friends on photoshare"); } [/code]

Member Avatar for doctorphp
0
165
Member Avatar for reminem

[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]

Member Avatar for farhan386
0
274
Member Avatar for rahulephp

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. …

Member Avatar for rahulephp
0
96
Member Avatar for Kadafiz

<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()"

Member Avatar for Kadafiz
0
6K
Member Avatar for cristina.h

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.

Member Avatar for farhan386
0
137
Member Avatar for The Dude

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

Member Avatar for Wasser
0
168
Member Avatar for rajeesh_rsn

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.

Member Avatar for rajeesh_rsn
0
164
Member Avatar for Torando

You might want to try SQLite, a serverless, fast, file-based database. It's ideal to replace a large INI file.

Member Avatar for farhan386
-1
533
Member Avatar for samarudge

Try PHPMailer to send such complex email. Better header manipulation, CC/BCC, attachment, SMTP, and much more. [url]http://sourceforge.net/projects/phpmailer/[/url]

Member Avatar for crazyb0y
0
194
Member Avatar for bravo21

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.

Member Avatar for farhan386
-1
91
Member Avatar for punithapary

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.

Member Avatar for cwarn23
0
113
Member Avatar for hemgoyal_1990

try something like this [code] $i = 1; while(.....){ echo $i; echo $yourdata; $i++; } [/code]

Member Avatar for hemgoyal_1990
0
72
Member Avatar for slyme

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.

Member Avatar for slyme
0
409
Member Avatar for farhan386

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 …

Member Avatar for iamthwee
0
152
Member Avatar for KlNTARO

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 :)

Member Avatar for farhan386
0
175
Member Avatar for coollife

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 …

Member Avatar for farhan386
0
66
Member Avatar for gokul.raja

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 …

Member Avatar for farhan386
0
235
Member Avatar for ruwanaru

Please post your bad code here. We have no idea why didn't your code work.

Member Avatar for ruwanaru
0
92
Member Avatar for ayesha789

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 …

Member Avatar for ayesha789
0
337
Member Avatar for w33n

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.

Member Avatar for Nathan Campos
0
73
Member Avatar for farhan386

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 …

0
55
Member Avatar for kaka22

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.

Member Avatar for Shanti C
0
86
Member Avatar for Evil_Tim

well, using relative path doesnt always work well. You should use absolute path, i.e ExtractFilePath(application.exename)+'yourdatabase.mdb'

Member Avatar for farhan386
0
90
Member Avatar for farhan386

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 …

Member Avatar for farhan386
0
406
Member Avatar for gexecuter

You'll have to try something like writeln(c:5:2), to output c with 2 digits of decimal places.

Member Avatar for gexecuter
0
107
Member Avatar for Pim

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 …

Member Avatar for Wiki_Tiki
0
158
Member Avatar for KingsWeBe

>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 …

Member Avatar for sarehu
0
180

The End.