Search found 328 matches

Actual Results

Post Posted: July 30th, 2011, 12:27 pm

Just glad it works. I understand that most MVC frameworks will unregister the globals for obvious security related reasons. I dont now the Joomla internals, and depending on the return values the object method supports your approach might or might not be the right one. Im just glad it worked out for...

Post Posted: July 28th, 2011, 11:25 pm

I have seen allot in my days, but your last comment doesnt make any sense.

!$_SESSION{'something'} might trigger and PHP NOTICE message if the var $_SESSION{'something'} isnt defined, this is why you want to test it with isset first.

Post Posted: July 27th, 2011, 6:42 am

Can you be more specific on 'the logger' system? Is it an procedure someone has written, or a procedure that you need to write, or is it an application someone has created? The documentation is very complete on the Lazarus IDE. But no 'logger' is part of that documentation which leads me to believe ...

Post Posted: July 27th, 2011, 12:58 am

Hi Wpas, I think you isset function will work. Logic : If var is not set (read is var defined?), then define the variable using the following value. Else do nothing because the var is allready there. [php] session_start(); if(!isset($_SESSION{'HTTP_REFERER'})){ $_SESSION{'HTTP_REFERER'} = $_SERVER{'...

Post Posted: July 25th, 2011, 11:56 pm

Hi Wpas, Your missing the point on why the $_SESSION superglobal even exists in PHP. And then there is this other point, how am i supposed to help you when you are altering my scripts which where intended to teach you something? In short, is the referrer information shown on page2.php after calling ...

Post Posted: July 25th, 2011, 3:50 am

Check the free pascal sites documentation ... umentation

Post Posted: July 25th, 2011, 3:01 am

it was an addition to you own code. oke, this is what it 'could' look like using a redirect from page1.php to page2.php using the session vars. [php] //page1.php // Check if we have the reff information from the server // collected headers if(isset($_SERVER{'HTTP_REFERER'})){ $sRef = $_SERVER{'H...

Post Posted: July 25th, 2011, 2:37 am

Hi wpas, I still dont see what good the referrer is in this example. Anyway you prob. get a blank line because you are not accessing the session var in which you are storing the information in the first place. i.e. This example should explain the session vars a bit. Load the code into an php file an...

Post Posted: July 25th, 2011, 1:26 am

Hi Wpas, Consider reading the following. Depending on your goal, understanding of th...

Post Posted: July 22nd, 2011, 5:19 am

Well it doesnt make any sense on why it only seems to block requests made by linux, whereas it simple accepts the requests made by a WAMP environment thats located in the same zone..

Well its working non the less :)

Thx again for your help.

Post Posted: July 22nd, 2011, 4:42 am

This is absurd Content filtering wasnt configured, at least no 'policy' was defined. But on the zones page it was still enabled. removing the CFS from the zone configuration resolved this problem. Weird thing is that PHP running under Windows doesnt seem to be affected by this.. :s Great hint on the...

Post Posted: July 22nd, 2011, 4:20 am

The annoying part is that no error logging is returned anywhere. The same works like a bliss on my windows environment. :S

Well, ill keep on experimenting :)
Im installing Ubuntu Server as a LAMP, so lets see what that one will do :)

Post Posted: July 22nd, 2011, 4:18 am

Shamefully it still doesnt work on a different installation, same error. :/ SOAP-ERROR: Parsing WSDL: Couldn't load from '' : failed to load external entity "

Post Posted: July 22nd, 2011, 4:06 am

You are right (:/) overlooked it the first time


Post Posted: July 22nd, 2011, 3:12 am

Might be a nix issue indeed, sorry for that. I compiled PHP from source because Oracle Enterprise Linux doesnt provide the --enable-soap option, and in this case we need the SoapClient class to be available. During compile we did use the complile options provided by a RPM installed PHP environment f...

Post Posted: July 21st, 2011, 3:10 pm

the curly wrapper is pretty old, as I can remember using it in PHP4. I read about the curly brackets in arrays in some book. It was suggested to be the PHP5 method of accessing array indexes. And as fas as I know it works, not sure if it will be finally adopted or if it will actually enhances perfor...

Post Posted: July 21st, 2011, 2:48 pm

some error messages (maybe they help) [Thu Jul 21 22:23:18 2011] [error] [client] PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from '' : failed to load external entity "http://webservic...

Post Posted: July 21st, 2011, 2:23 pm

Sidenotes, using curly brackets might clean the code even further. i.e. [php] echo "article id:" . $row['id'] . "<br />TITLE: " . $row['Titel'] . "<br />more text:" . $row['omraade']; echo "<br ...

Post Posted: July 21st, 2011, 2:08 pm

It depends on who is redirecting. If the redirect is done by the DNS server hosting the zone file for the TLD, then you need to contact the administrator managing that DNS server. If its done in the configuration/.htaccess of the webserver, then you need to contact the person hosting t...

Post Posted: July 21st, 2011, 1:59 pm

On the question the other way around, the answer is no. This would suggest that the remote user is exposed to the internet, waiting for an update. The correct way around this is make the browser 'query' in a timed manner using Javascript. Then using the XHTTP Request, you are able to 'check' the sta...

Post Posted: July 21st, 2011, 1:51 pm

Hi There, I have build a simple "draw" script using ajax and php. YOu can download the source here, maybe it will help you understand the XHTTP request (ajax) calls. It is a working example that require...

Post Posted: July 21st, 2011, 1:47 pm

Hi guys, I have been breaking my head over this, so i was hoping you guys could possibly hint me in the right direction. Oke, the symptom is the following. I wrote a little script that uses the SOAP client to load an WSDL from a public webservice which works perfectly on windows. Now the idea was to...

Post Posted: June 8th, 2011, 10:27 am

LOL? why not, you invested some of your time in it, I learned a new trick so some credit is justified :)

Post Posted: June 8th, 2011, 10:00 am

For anyone that likes to experiment with this, here is the full code ;) DO NOTE THAT ITS NOT FIT (YET) FOR PRODUCTION PURPOSES. THE CODE NEEDS REFINEMENT AND OBVIOUS SECURITY CHECKS AND ESCAPES. [html] <?php // Fetch the patient_id and Image_id ?> <html> <head> <!-- Enable IE8 S...

Post Posted: June 8th, 2011, 9:58 am


Thx it works like a charm :D

Post Posted: June 8th, 2011, 9:40 am

Yeah, I also noted that IE does not pass the value like mozilla like browser. Your solution 'ugly' as you name it :) looks rather lumbersum, but if it works ill go with that. I am a bit worried about looping through each value, which might become a problem with large select lists and poor client per...

Post Posted: June 7th, 2011, 1:24 pm

Hi Guys, I have this little project going in which I use HTTPRequest to draw into an image using a PHP backend. In the Ajax frontend I use a select dropdown in conjunction with onchange="function" to update a JS global var. All is working as expected in Firefox without any errors, except i...

Post Posted: December 2nd, 2009, 6:29 am

I found a solution. You can add your own modules by doing something like this. You need to create a folder tree inside your application folder that looks like this. /Application (main app container) /Application/Lib/Modulename/ Inside this modulename you copy the .pm file that you are trying to load...

Post Posted: December 2nd, 2009, 3:16 am

Hi all, I not sure how to explain this, but im writing a perl daemon in which i utilize the Config::Inifiles module. Sadly this module isnt delivered by default and might need to be downloaded and compiled when missing. At this moment it is a "manual" task using >`Cpan -i Config::Inifil...

Post Posted: August 10th, 2009, 1:47 am

Thanks for the headsup rabid :)

First off, You allready know that answer, but for the latter yes they are indeed short-crcuit (lazy) operators. if one 'and' two is false then they will all be, if one or two is true they will all be.

Thanks for that typo i have corrected it :)

Post Posted: December 11th, 2008, 3:46 am

Truce wrote:
FTR and to clarify, web browsers simply won't let you access another website with AJAX, so that nixes it for this purpose, even using iFrames.

I didnt knew that :). But then again, what isnt now might be scripted / programmed in the future ^^ Thx for that clarification :)

Post Posted: December 10th, 2008, 8:28 am

Means, php can replace the placeholder PHP, but ph or phpy can't replace the placeholder PHP. ? This sounds strange to me. Just run this and see what i mean...
Code: [ Select ]
$data = 'Ozzu has a user called May'; $data = str_replace('May', 'Ozzu', $data); echo "$data";
The output i get is....

Post Posted: December 10th, 2008, 7:24 am

Use PHP ;) [code]  <?php $bnr[1]['link'] = ""; $bnr[1]['img'] = ""; $bnr[2]['link'] = ""; $bnr[2]['img'] = "";   function GetBanner...

Post Posted: December 10th, 2008, 3:32 am

May, AJAX is out. For security reasons, the XmlHttpRequest object isn't allowed to access pages outside of its own domain. Im not too familiar with whats "in or out" and security is a matter of scripting it savely if you ask me. Just to be clear, i was pointing out Aja...

Post Posted: December 10th, 2008, 3:17 am

Curl is capable to handle Posts / Gets as if your script where a browser. So in effect CURL can fill out a form, or grab content from external websites and present that info localy as if the information is from your own site. To give you some example of Curl in action. This Script > http://www.du...

Post Posted: December 10th, 2008, 3:11 am

Ow i use Eclipse and notepad++ (hacked a bit to my liking :) )

Post Posted: December 9th, 2008, 4:07 am

Code: [ Select ]
$link=[download code]; if($code!=$verify){$link="";} header("Location:");
Your remark "Im like wtf so i did" is just as confusing to me as reading this piece of code. I cant realy figure out what you are tryi...

Post Posted: December 9th, 2008, 3:40 am

I would use Ajax, and dont send - get data between webservers. Also i would recommend using SSL but this would be the setup i would use... [code]  Web1 (Serve Page)  | Page  Ajax Component ----> Web2 (Handle auth)                        | Auth succes?valid session? etc?  Handle Response <----W...

Post Posted: December 9th, 2008, 3:32 am

srrejeki wrote:
...Because im still a rookie in PHP... :mrgreen:

A realy good editor isnt going to help you on that part though :) You will still need to read allot and code allot to change that part :D

Post Posted: December 2nd, 2008, 4:23 am

I often face myself with the question is my code realy functional or is there a smarter way to reach my goal. When am i trying to create a programatical wonder or is it realy the basic functionality i want to guarantee here. When i look at this part of the code i wonder the same... [code]   * Genera...

Post Posted: December 2nd, 2008, 4:03 am

lol, could be. The should be is a tough one though :D

Post Posted: December 2nd, 2008, 3:41 am

Hehe :) Both are correct, and we are all wrong ;) I dont know what he is trying to do exactly or how "smart" and "exclusive" the solution should be in the long run. But i do know we all are trying to help him as good as we can... :) And indeed bogey, you example is save, whereas ...

Post Posted: December 1st, 2008, 6:54 am

Does anyone consider security nowadays? How about this request? ?pg= It will be included and more importantly executed on the server thats handling the include. So effectively if your unlucky and a internet worm is starting to beat your website... One of thes...

Post Posted: October 28th, 2008, 5:23 am

There isnt a "build-in" function available as far as i know. NL2BR does just that, convert \n to <br>. So you can either "strip" the \n from the string after applying the <br>. Or you can evaluate the string rule by rule writing your own function, that can look someth...

Post Posted: October 20th, 2008, 1:16 am

Use a regular expression to compare the strings. Or strip the specifics and compare the result of that. If the query is > $sql = "SELECT age FROM users WHERE id = $id AND group = $group"; Then save it like this. $array[#] = 'SELECT age FROM users WHERE id = $id AND group = $group'; or e...

Post Posted: October 16th, 2008, 8:56 am

You are right about that, and thought about that somewhere during the day. Just didnt have the time to correct myself. In any case i was also wondering "whats in a name" considering directions some sales managers would walk selling one or the other. Also that as far as i know "Just HT...

Post Posted: October 16th, 2008, 3:09 am

Is this for some school project? And yes as long as you consider DHTML to be simular to HTML. Which might be true if the remark truely is "Only JScript cant be used". But in the long run, DHTML is different and has a syntax that doesnt look like HTML in any way. Dynamic HTML though is able...

Post Posted: October 15th, 2008, 6:37 am

Have fun, the basiscs :) you do need to place some more security in and arround the script to stop spam worms from using this... [code]  <?php   if(isset($_POST['sendmail'])){       $to = '';     $subject = (isset($_POST['subject'])) ? $_POST['subject'] : null;     $message = ...

Post Posted: October 15th, 2008, 2:53 am

Little difference there ^^ exmpl1. Echo "FirstText<br>NextText"; exmpl2. Echo "FirstText<br>\nNextText"; To see the difference between these two you need to open the source of the html page ;-) exmpl1. Source. FirstText<br>NextText Browser output. FirstText Next...

Post Posted: October 15th, 2008, 2:38 am

You might be able to script something where you can check various stuff like length, maybe some checksum and hide this somewhere in your application. But all you are doing is making it more of a chalange and increase the required skill to remove it. But removal is possible in any case... But to be h...

Post Posted: October 14th, 2008, 7:09 am

for all that might find this usefull. A class and simple example script to show its opperation to do SSO signon from PHP to windows Active Directory. Be carefull with the "getAttribute()" function. It can only query the first dimention of an class attribute. dump the $info to see the array...

Post Posted: July 31st, 2008, 7:13 am

It sure sounds plausible, but if used in that manner i think it will introduce allot of confusement ammong the people that dont know regular expressions.

It could be fun, it sure will trigger allot of downloads from unexperienced people that want to edit their windows registry ^^

Post Posted: July 30th, 2008, 6:05 am

^^ Long time no chat! Wb Rabid :D

Post Posted: July 30th, 2008, 5:59 am

Primarily I don't like the idea that it's a server thing. Well thats kind o funny :) I usually want these options to be a server thing so its guaranteed that once they are in place no-one will be able to change these security settings on remote. Also the header-splitting (or injection how you called...

Post Posted: July 29th, 2008, 6:13 am

thx ^^

Post Posted: July 29th, 2008, 5:31 am

Did you ever consider using the Apache Mod_Rewrite to rewrite the visiable url, and thus hiding the true parameters?

(Look at the Url of this forum) Its PHPbb (php) but you see .html. Also i thought there where methods to do this from the php code as well using the mod_rewrite module...

Post Posted: July 29th, 2008, 4:37 am

Well i can explain in detail what i mean, even though the example is purely that, a presentation of... But if you like to understand what is happening, i recon that you simply read through this document in which AJAX and its implementation is explained in a very basic AJAX application. http://www.w3...

Post Posted: July 29th, 2008, 4:09 am

you can create a JS function that handles the httpxmlrequest and call it using the onclick() function for instance. So you might get something like. <div style="cursor : hand;" onclick(MyJSRequest('data'))>Link</div> Also placing the information you might use a simular method u...

Post Posted: July 29th, 2008, 2:05 am

You just need to make a HTTPxmlRequest to the remote "webservice" or php script to handle the request. You might find some nice examples here... ... t/examples


Post Posted: July 29th, 2008, 1:52 am

hi, uhm.. you seem to have posted the question twice ^^ 1. You might want to add some "level" system to the questions so one is always presented with at least "XX" level of tough questions. The remainder is pure if(){}else{} stuff. 2. Picked from a predefined set of questions and...

Post Posted: July 28th, 2008, 5:19 am

before i try to understand the whole code, what do you want to reach here? I dont realy understand "the level" of new users in the database. When i look to your for loop some weird things are happening there (in my eyes that is... ) Loop settings. Offset = 3 ($i = 3) Breakpoint = 8 ($thele...

Post Posted: June 16th, 2008, 6:09 am

Again the previous error stated that a type cast was being done on that specific field. The validation you where doing on the input suspected a decimal (the function CDec validates if the decimal (number) is actually a number higher then the number i have given before). To deal with this you should ...

Post Posted: May 1st, 2008, 5:21 am

I only use either notepad++ or utraedit nowadays

Post Posted: April 29th, 2008, 2:19 pm

instead of creating a monster table with all the refferences, you might try to use the "IS LIKE" statement. i.e. $sql = 'SELECT * from users where username is like "%c%"'; Wich will return all possible values that contain a "C" somewhere in the username... So in your ex...

Post Posted: April 29th, 2008, 2:13 pm

Well what i was trying to point out is that if your code is more readable you are more able to find stange things in it. I needed about 2 min to see this, saw it in an instance while cleaning up your code a bit :)

Well dont worry a bit, my code looked like that also at some point ;)

Post Posted: April 29th, 2008, 12:33 am

But still think the clue is in the description ie. HTMLENTITIES() This function is identical to htmlspecialchars() in all ways, except with htmlentities(), all characters which have HTML character entity equivalents are translated into these entities. If you're wanting to decode instead (the reverse...

Post Posted: April 29th, 2008, 12:31 am

,'$_SESSION['username']', < This is not an copy of my version ;) '".$_SESSION['username']." Also, Joelber you are totaly right on the subject i was just hoping he would find out himself.. :S And what may help you also is a tutorial i have written just yesterday that might help you out b...

Post Posted: April 28th, 2008, 7:01 pm

Well JS might do that for you. If its available XML data AJAX isnt going to help you there im afraid. Unless you need specific condition based data thats being served by some active script then AJAX would be the way to go... ie. Option -> Select country. On Select -> Request Region data from t...

Post Posted: April 28th, 2008, 6:56 pm

First i think you can make the script allot readable if you change some of your quotes. Ie.
Code: [ Select ]
  echo '<p>The user ('. $to .') doesn\'t exist</p>'."\n";  
Change it to a dubble quote and force PHP to interpret all the specials first. It functions almost like if((!empt...

Post Posted: April 28th, 2008, 6:30 pm

obviously after ;)

$string = htmlspcial..($sting, 'ENT_QUOTES');
$string = nl2br($string);

and it didnt make a difference at that time, so i forced myself solving it with preg_replace at the time because i needed to deliver it...

Post Posted: April 28th, 2008, 6:26 pm

SpooF wrote:
I know how to use classes ;) I was just wondering if Bogey was doing something wrong when he was delcaring it further down.

Sorry for mis interpreting it... Guess its late :S


Post Posted: April 28th, 2008, 6:15 pm

Validation, validating, everything :S Introduction I love writing tutorials a bit loosly, but still validation is possibly the only thing programming might be all about in the end. Especially when programming PHP you might find that in the end it might possibly be all about validation. Validating c...

Post Posted: April 28th, 2008, 1:22 pm

On the validation part, type validation is pretty complex. Htmlentities and specialentities are nice if you have "html" code stored and want to show it as html in the end, ie. Text (type html) -> Encode using entities Store in DB -> With encoded entities Show text -> Decode using ...

Post Posted: April 28th, 2008, 1:06 pm

About the $$var notition, its dirty but used. Example. ... riable.php


Post Posted: April 28th, 2008, 12:56 pm

4 spoof just an example (using php 5) [code] class mysqlConnector{ private $password; private $username; private $database; private $hostname; private $loaded; protected $link; public function __construct($u, $p, $d, $h){ $this->password = $p; $this->username = $u; $this->database = $d; $th...

Post Posted: April 28th, 2008, 12:27 pm

Well using classes is realy nice, but you will notice in a while using more advanced features of classes you eventually need to make an object model to keep track of the whole. [code] Index.php | | Main <-Instanceof-[Session] <-Instanceof- [SqlObject] | \<-Instanceof- [LoginObject] I | \<...

Post Posted: April 26th, 2008, 9:24 pm

reffer not too actually. If the code breaks (where ever and i dont trust my own skill to much on phyton) the language is simply to powerfull "low-level"...

Phyton scares me :P

Post Posted: April 26th, 2008, 9:09 pm

[code] /* PHP <4 */ class myexample{ var $var; function myexample($value){ $this->var = $value; } } $example = new myexample('1000'); echo $example->var; /* PHP 5 */ class myexample{ public $var; function __construct($value){ $this->var = $value; } } $example = (class_exists('myexample')...

Post Posted: April 26th, 2008, 8:56 pm

unless you are not validating intergers of which the smallest number is 0.0000000000000000000000000001, i dont see any problems actually... maybe in consistancy because the "0" should be illegal considering the CDec function and its props.. Next to that... Not realy... But seeing your erro...

Post Posted: April 26th, 2008, 4:17 am

To be completely honest, I thought of that a few hours ago.....and then ran out of coffee....need a refill, but yes, I think that will work! I hear ya on the caffee part, and yes i think your previous assumption is right. [php] print(' <form action="'.$_SERVER['PHP_SELF'].'" method=&qu...

Post Posted: April 26th, 2008, 4:07 am

Add the selected option to the checkbox that applies, ie. <input type='checkbox' name='group1' selected /> <input type='checkbox' name='group2' /> <input type='checkbox' name='group2 selected /> Rgrds, you can do this in somesort of validation, if($row['checkbox1'] == '1'){ $var = ...

Post Posted: April 26th, 2008, 4:04 am

Well in my world i still isnt a shame to learn, and definitly not when learning from your own mistakes. We all need to start somewhere ;)

Post Posted: April 26th, 2008, 3:54 am

FILEsystem and the image data (name, sizes) in the DATAbase." In most areas "Files" are considered Data. Because the stucture is different compared to a relational database doesnt mean you cant apply the same pricipals. As far as i know both Microsoft and Oracle are working on a rela...

Post Posted: April 26th, 2008, 3:44 am

I mainly only use database now. And the main reasons for me is mainly in the security area. 1. No need to script check and verify all the FS management. 2. Easier to backup (only one backup needed for the whole site) 3. Easier to block against deep linking 4. Not possible to run scripts and uploaded...

Post Posted: April 25th, 2008, 6:51 am

Im not quite sure what you mean, mostly because i think the problem is most prob in your applied data model. what does the table look like?

Post Posted: April 25th, 2008, 6:38 am

GeorgeL, I want to divide my query result output into pages. i got a code from a site but dint understand what these meant so i dint include it include 'library/config.php'; include 'library/opendb.php'; My paging is scattered, as you may guess. i am displaying 10 rows per page and where i dont hav...

Post Posted: April 25th, 2008, 5:09 am

Just a tip, maybe you should try and echo the result of
numberofdays = DateDiff("D", Today, dateentered).
Im not sure but i have the feeling there is a negative in there somewhere ;)

Post Posted: April 25th, 2008, 5:05 am

Im not quite sure what you would like us to do here. Simply put, if a executable is written to show a GUI and doesnt offer you the option to run it deamonized then you prob are stuck to that. Could you please explain a bit better what this program is written to do? (is it purely a GUI based applicat...

Post Posted: April 25th, 2008, 4:52 am

Are you sure the object in : userName =; is intialized, and if so does it contain the element or method next() ?

Because what happens if this is called before you call the initialize method "objInput.close();" in the getFlag() method?

Post Posted: April 25th, 2008, 2:22 am

Sure enough i know that you are trying to point out an so called arp poison attack where the bare system isnt "aware" that all traffic is routed through another machine. What i am trying to protect the code from is Session capturing. It still contains flaws indeed considering big companies...

Post Posted: April 24th, 2008, 4:26 pm

Sorry for the gabs that allow this side road. But the whole principle of Penetration Testing (CEH) is based on breaking code / architectures / systems, compared to what these are supposed to be doing. Wich in turn defines strong or weak code. And offer us the knowledge to make it better or protect i...

Post Posted: April 24th, 2008, 4:05 pm

is the nice "highlighted" php code blocks also part of the premium membership now? Cause i have a hard time getting it enabled in my awnsers now-a-days...

Post Posted: April 24th, 2008, 7:42 am

Introduction In this tutorial I will try to explain and show you what sessions are and how to use them in PHP. Sessions are very powerful but also very dangerous tools the PHP developer has available to him while writing his sweet new PHP script. The danger of sessions is that one might end up putt...

Post Posted: April 24th, 2008, 2:58 am

[code] echo '<table>'; $sql = 'select * from comments'; if($result = mysql_query($sql)){ while($row = mysql_fetch_array($result)){ if($row['gender'] == 'f'){ echo "<tr><td bgcolor="PINK">$row['comment']</td></tr>"; }else{ echo "<tr><td ...

Post Posted: April 24th, 2008, 2:38 am

You cant, its one of the static PHP ini settings. Sinds you prob. dont have access to the php.ini..

Post Posted: April 24th, 2008, 2:27 am If you mean replace the given input back as astricks chars? then you need to string replace the input with an astricks. To replace the output with astricks signs you prob nee...

Post Posted: April 23rd, 2008, 6:24 pm

Just wanted to share this one with you guys, if it wasnt for the martian aproach in this one... :P

Post Posted: April 23rd, 2008, 6:10 pm

Here is a session handler class i wrote that is an instance of a Main class that loads the rest of the mess. Are there any obvious flaws in the code, and are the following checks sufficient for a public site? 1. Last refresh time (session timeout / automatic logout) 2. Session Remote IP (against man...

Post Posted: April 23rd, 2008, 5:57 pm

[code]  #include "stdafx.h"   #include <iostream> using namespace std;   static const int password=1234;   int main(){   int pass;   int passwordCount = 2;   bool loopStatus = true;     while (passwordCount != 0 && loopStatus == true){     cout << "Please enter you...

Post Posted: April 23rd, 2008, 5:42 pm

ps, you can do the same tricks on queries, links even objects if you like ;)

Post Posted: April 23rd, 2008, 5:35 pm

No need for shame ;) Oke this is kinda important. I wrote this class asuming some things.. 1. This class is going to either be instances of other objects or of some code sniplet and is not being overloaded, or extended by any child class. 2. You are using PHP v5 or better (rather important when work...

Post Posted: April 23rd, 2008, 5:04 pm

Dont know if this is very educational... :S Ow well.. [php]  <?php   function GetNewPosts(){     if(is_file('Main/dbConstant.php')){         include('Main/dbConstant.php');     }else{ return 0; }     if($link = mysql_connect($dbHost, $dbUser, $dbPass)){         if(mysql_select_db('mail', $link)){...

Post Posted: April 23rd, 2008, 4:48 pm

omg... Those banners are ugly :S And howcome someone is always visitor 301,389,318 ? :P

Oke back to subject, isnt there some "fine" manual somewhere with an instruction howto installl that thingy you just put in place on that site im not going to visit again?

Post Posted: April 23rd, 2008, 4:39 pm

Sorry for saying so, I dont want to claim that some programmers are "short-sighted". But i do think that it all depends on your approach on the subject. As a programmer from new-york explained in his blog, there are prob. two types of programmers. Idealists and Pragmatists, if you consider...

Post Posted: April 9th, 2008, 10:56 am

Or use the tidy handler to transform your final output to valid XHTML ;)

Post Posted: April 9th, 2008, 10:54 am

Nice one spork, i too was not aware there is an actuall php package to handle BBcode ... :D

Post Posted: April 8th, 2008, 3:19 am

You might use cookies to save a "session id" remotely. Store the session ID in database including all stuff he had in session at that time. Next you let em login to the system and check for cookie. If he has a valid cookie then you restore the session so its available again. Considering th...

Post Posted: April 7th, 2008, 6:44 pm

Probl over your head a.t.m but might give you an idea of the bare minimum we check in an session... (Note bare minimum!) [php]  <?php /* File : session.class.php   * Autheur : May   * Datum : 31-03-08   * Comment : WARNING!! This class is being extended by the login.class.php!   */   /* Some basi...

Post Posted: April 7th, 2008, 6:33 pm

Well im off, good luck in your learning experience ;) And if your writing your own cms, Sessions will prob be your next question. So in advance :P First read up on the subject though, most of the functions are self explained ;) Regards, grtz May..

Post Posted: April 7th, 2008, 6:24 pm

here is the basic idea ;) [php]  <?php   /* get value 1 */ if(isset($_POST['v1']) || $_GET['v1'])){     $v1 = (isset($_POST['v1')) ? $_POST['v1'] : $_GET['v1']; }else{     $v1 = ""; } /* get value 2 */ if(isset($_POST['v2']) || $_GET['v2'])){     $v2 = (isset($_POST['v2')) ? $_POST['v2'...

Post Posted: April 7th, 2008, 6:14 pm

give me a sec, ill show you a basic form that gets filled right after submit ;)

Post Posted: April 7th, 2008, 6:12 pm

i woudnt put it back in $_POST though (if its even possible, thought it to be read only)...

Post Posted: April 7th, 2008, 6:04 pm

For the HTML stuff this what you are looking for? For the spaces $string = str_replace(" ","&nbsp;", $string); And if you have tidy enabled you might also "check and repair" if the HTML is propperly/not-prope...

Post Posted: April 7th, 2008, 5:54 pm

Neksus, I have most of your code working now and I thank you an awful lot. I will comment more tomorrow as its going past 2am and i'm shattered lol May, your code wont show up in my browser and I have no idea why, but I thank you for your input. Thanks all. check your PHP.ini, it prob has " er...

Post Posted: April 7th, 2008, 5:51 pm

While debugging it might be nice sometime to see where the error's occur ;)
but thx :)

Post Posted: April 7th, 2008, 5:26 pm

Ps lose the single quotes in `Module` use

"SELECT * FROM Module WHERE ModuleCode='$ModuleCode'";

Post Posted: April 7th, 2008, 5:17 pm

sooo any idea neksus on why it wont show? : ) maybe this might help you? [php]  <?php /* Is the session needed? */ #session_start();   $host="localhost:8889"; $username="root"; $password="root"; $db_name="MyDB"; $tbl_name="Module";   if(isset($_P...

Post Posted: April 7th, 2008, 4:47 pm

We allready have asset information in place for our collegues, bound to the components in their hardware we want to offer the correct drivers for various Opperating systems as well as GNU development tools that other collegues like to share with each other. A portal of sort with only collegue to col...

Post Posted: April 7th, 2008, 4:30 pm

heheh lol :) ps sorry for my intrusion, ill be back messing with SMB :)

ps. that uses to be a decent website... used to be :S

Good luck you two

Post Posted: April 7th, 2008, 4:29 pm

You combine queries, hell you can even solve a sudoku using sql, here is an article one of my collegues wrote ;)

you can sure do allot using sql :)

Post Posted: April 7th, 2008, 4:25 pm

Have a look ;)

Post Posted: April 7th, 2008, 4:20 pm

No but it is a field that i can manipulate directly writing my own html form that posts to your site. And instead of "username" i could insert something like; innerjoin select blaat.... #(original query is commented out) This hacking method is called sql injection. You should always check ...

Post Posted: April 7th, 2008, 4:08 pm

ah :) ps, do point out the security risk of pasing $_ method super globals directly into sql queries...

$username = $_GET['MyFormEntry'];
$sql = "select * from somewhere where username = '$username'";

Good luck btw :)

Post Posted: April 7th, 2008, 4:03 pm

<?php echo question1; ?><br /> <input type="text" name="question2" /><br /> <?php echo question2; ?><br /> <input type="text" name="question1" /><br /> <?php echo question3; ?><br /> Doesnt that lack ...

Post Posted: April 7th, 2008, 4:01 pm

Oke allready found the solution... *shame

Make sure you have the "List Folder Contence" right enabled on each level of the path from the share entry up. It seems that it checks each level of the directory or something :S

Post Posted: April 7th, 2008, 3:51 pm

Oke building somesort of software distribution site for our employees. As storage for this baby i have a windows DFS (Distributed File System) mirrored over two systems that uses SMB in conjunction with the AD to find the propper entry point to get the data from. (which ever DFS server is either Spo...

Post Posted: April 7th, 2008, 3:42 pm

Reading that article, i guess i should be proud with that little sidenote... :D

Post Posted: March 25th, 2008, 9:44 am

Well as a Final Comment on the thread, any manager that faces these "not willing to admit" they are a Geek, Geeks... Should really read this one ;)

Ps. There are multiple pages so take your time :P

Post Posted: February 12th, 2008, 6:37 pm

Do note the very precise syntax of the command, Binpath with switches binPath= 'c:\windows\system32\cmd.exe /k "shutdown -r"' (Ok!) binPath=c:\windows\system32\cmd.exe (Ok!) BINPATH= 'Bla' (Wrong!) binPath='bla' (Wrong!) binPath= bla /switch (Wrong!) type= interactive type= own (Ok) type= ...

Post Posted: February 12th, 2008, 5:46 pm

On the cmd box as system user, give this a shot and you'll see what i mean ;) :P
Code: [ Select ]
sc create MyCmDBox2 binPath= "C:\windows\system32\cmd.exe /k cmd" type= own type= interact error= ignore start= demand
and it will also give some insight in the syntax ;) (yeah you need ...

Post Posted: February 12th, 2008, 5:03 pm

Ow something to consider... When you want to do what you want to do, consider the fact that on startup the command might be fairly innocent, but will allready be executed on startup. So if you manage to stop the service in that session the system will still reboot after these 60 sec. And at next boo...

Post Posted: February 12th, 2008, 4:58 pm

Well in the most basic way sc is a command to manipulate the NT Service Controller. If you use the sc command somewhat like. [code] sc create [service name] [binPath= ] <option1> <option2>... CREATE OPTIONS: NOTE: The option name includes the equal sig...

Post Posted: February 12th, 2008, 4:31 pm

hehe why run it in startup? why not make it a bit more elusive?

use the sc command to introduce a new service that will run on startup and does the same?


Post Posted: February 12th, 2008, 4:27 pm

Ill just stick to notepad++ if you dont mind ;-)

Post Posted: February 12th, 2008, 2:52 pm

Oke basic idea, lets code an object and pass that one into other objects to use it there also so we dont need to keep redeclaring that object over and over again. Its being done in an effort to create somesort of MVC (Model view controller) in Php. We are talking about a mysql object that we like to...

Post Posted: January 31st, 2008, 8:51 am

Hehe, Its not a sanity check im looking for here.. :) Or PDO, which does everything you've implemented? You appear to have gone to a lot of work for no reason... PDO has either a very nasty syntax like handling LOBS for instance, or has a huge overhead that im not intend to use in a simple site http...

Post Posted: January 30th, 2008, 12:56 pm

Use that command in a batch file, then I can't remember the exact place to put the batch file on your domain controller. But in the properties for the user in active directory, under the profile tab, there is a text field called log on script, simply type the name of the script there. You'll have t...

Post Posted: January 29th, 2008, 7:11 pm

Set Location='c:\temp\'
Set WshShell = WScript.CreateObject("WScript.Shell")
Set oDel = WshShell.exec('del /s '&Location)

Do While oDel.Status = 0
WScript.Sleep 100

WScript.Echo oDel.Status

Thats the quick and dirty way :P

Post Posted: January 29th, 2008, 6:55 pm

Ask rabbitdog i know he has a basic tutorial on the blob stuff somewhere if you like to put this to the test ;)

Post Posted: January 29th, 2008, 6:51 pm

It would take more special circumstances. Like knowing where that file will get saved, knowing if it will be executable once it's uploaded. They'd need to already know things about the filesystem. Just knowing a filename isn't going to do any good And ontop of this, if handling files with your webs...

Post Posted: January 29th, 2008, 4:31 pm

Sanctions: The fact of not respecting these rights are by the law punished by up to two years of imprisonment and a fine of 150.000€ In the same way, groups can be declared responsible for these infringements penally. In the event of repetition the sanctions are doubled. Reading that part... That m...

Post Posted: January 29th, 2008, 4:14 pm

Hey guys, I have written a mysql connector where i wanted to protect the database settings inside a constructor and all native functions to do the actual connect to the database. Next an extended class uses those functions to deliver a complete dataset inside an array and make all the crucial compon...

Post Posted: January 17th, 2008, 3:51 am

Its possible using vbs in conjunction with Wsh objects.


Code: [ Select ]
Set WshShell = WScript.CreateObject("WScript.Shell")
strWallpaper = WshShell.RegRead("HKCU\Control Panel\Desktop\Wallpaper")
Wscript.Echo strWallpaper
  1. Set WshShell = WScript.CreateObject("WScript.Shell")
  2. strWallpaper = WshShell.RegRead("HKCU\Control Panel\Desktop\Wallpaper")
  3. Wscript.Echo strWallpaper

Post Posted: January 17th, 2008, 3:48 am

When you can help it, try not to use functions that you have to define. They usually take more time & resources to setup on each request than they're worth in a situation like this. But they help making it easier to maintain the code in the full picture... :) In the end people should aproach th...

Post Posted: January 17th, 2008, 3:34 am

Like creating somekind of proxy? in that case why not use the easiest way :P
PHP Code: [ Select ]
 </php $urls = array('',''); foreach($urls as $url){ echo("<iframe src=\"$urls\" width=\"100%\" border=\"0\">"); } ?>

Post Posted: January 17th, 2008, 3:29 am

Lets just say, there are a bunch of akward people arround. And.. i guess i consider myself one of those..

Post Posted: January 17th, 2008, 3:26 am

Hehehe they surely tend to :) Especially using the nice written out classes wich tend to consume allot of space, but makes it fairly easy to maintain. Ill just stick to the syntax rules layed out by smarter people then me, and keep fancying smart over understandable. people will be very confused bec...

Post Posted: January 16th, 2008, 8:04 pm

Well then i would certainly pick the CMS your most comfy with. And do the test-trail thing customers appriciate. Problem with the question is the base reason why there are so many of em. Its all because they are all based on different ideas how a CMS should function and different ideas on "what...

Post Posted: January 16th, 2008, 7:53 pm

I was trying to point out the methology. More needs to be done to make it more reliable. But then i would end up writing a whole class instead of and example. And i still think security comes before performance which would render the code as given unusable in the first place ;)


Post Posted: January 16th, 2008, 7:46 pm

Just a quick and dirty (especially durty like this) way to get the content of a site... But must say the result is rather... interesting :P [php] <?php $urls = array('', ''); class fetch_content{ public $link; protected $fhandle; p...

Post Posted: January 16th, 2008, 6:53 pm

Remove the need to maintain a array. Not recommended if you support file uploads without open file base restriction or uploads to either directories or if supporting php files like class collections are included in either one. Use this only if valid content is located in a reserved directory like ./...

Post Posted: January 16th, 2008, 6:37 pm

LOl you mean ?

He realy has to much time on his hand lol!

Post Posted: January 16th, 2008, 6:25 pm

hahaha, sleep well.. bedtime on my side of the globe ;)

Ps who is this breeze guy we shouldnt listen too? ow well...

Sleep well

Post Posted: January 16th, 2008, 6:22 pm

Uhm, something like "ps" Try echo("<Html stuff>"); To lose all the <?php ?> tags, makes the script more readable also. So cleaning up your code a bit (dont realy take much interest in the comments and all at this point, sorry for that so i stripped them) this is what ...

Post Posted: January 16th, 2008, 6:10 pm

What ideas? hehehe im still ignorant remember :P. Something like "Hey mom! im having a conversation with a internet page! no what was that again what they said about having conversations with major timeouts in the videostreaming world?!? RTSP? O.. darn it mom, you made me lose the thought again...

Post Posted: January 16th, 2008, 6:05 pm

hehehe, kinda...

Dont worry "Its internet". I could prob tell you im a nice blond girl 28 years old and get away with it :P

Post Posted: January 16th, 2008, 6:01 pm

PHP nuke, dynamic but a hell customising. Same goes for PHPBB (+ its portal). Have a real good experience with Wordpress but thats more like a blog then a site at the beginning.

Why not install various CMS systems and let the end-user decide whats best for him?

Post Posted: January 16th, 2008, 5:58 pm

I try to visualise that... lol you dont even want to know what i come up with lol :) How bout, im your avarage friendly neighbour IT-Man individual. I am fascinated by knowledge, of which the avarage social orientated individual would discard as inrelevant. manage to make a living out of it by apply...

Post Posted: January 16th, 2008, 5:52 pm

I must say i agree with all statements made, but i worry about the /userdir/ suggestion. If you like users to create dirs and all i would definitly use the php script and thus the php executing user (wwwroot) to do the fysical creating and uploading. Just to keep control over what is created / uploa...

Post Posted: January 16th, 2008, 5:44 pm

If "Geek" means that... uhm me as a person is per definition a "freaken good programmer". That prob would mean that a "geek" is someone that doesnt learn allot these days. Considering, Only wise men, and old people dont learn anymore, a "Geek" person should ei...

Post Posted: January 16th, 2008, 5:36 pm

jeffd, glad to hear you got your problem sorted. On a related note, with Linux having the image of being more difficult to use, it's pretty striking that so many problems with apache are on Windows, and I'm not surprised, it sounds horrible to set up! Makes me glad I just say "apt-get install ...

Post Posted: January 16th, 2008, 5:27 pm

Uhm whats the question again? Show some links to tutorials? Suggest a good book? Or write code that does display Gprs cords without the required libs? Uhm... Is it me or do i miss a question here, if you like to discuss the discussion ill try that. But reading the hard to read conversation im not qu...

Post Posted: January 16th, 2008, 5:17 pm

If you were to do the backside programming of a site like ours, what programming knowledge would be required? We are open to someone coming in-house and re-doing the entire or going with the existing format. I would definitly recommend if he was in fact using something like sharepoint. Or i...

Post Posted: January 10th, 2008, 6:00 pm

What i see at a glace: PHP (Phtml php encoded html) HTML (Frontend - could be generated from php in a content management) CSS (Cascading stylesheets) If php is involved (login site) you also need database knowledge depending of the database behind it. Guess it is MySQL. The introduction page (link) ...

Post Posted: January 9th, 2008, 1:33 pm

To give you a general idea, look at the source of this image from a gallery i wrote. You see the image, but its not a JPG you are looking at. Its a stream originating from a database BLOB object. Now you can still "save as" an...

Post Posted: January 9th, 2008, 1:26 pm

thats more like deep linking :)

Post Posted: January 9th, 2008, 1:00 pm

If you can run commands on the command prompt in linux you can use the date command. The following command will just output the timezone;
Code: [ Select ]
time@ntp:~$date +%z +0100 time@ntp:~$date +%Z CET
Code: [ Select ]
date --help
for all the formating options, or
Code: [ Select ]
man date

Post Posted: January 8th, 2008, 3:06 pm

but thinking this over, this might be just the thing to make a decent frontend application to link with Nagios. If it can make a raw socket connection (pretty nasty stuff). a mysql connector is a simple thing.

O well, maybe if i have tons of spare time... :P

Post Posted: January 8th, 2008, 3:01 pm

ill be damned, it takes like for ever... (creating and destroying sockets like 254 times) but it works :P

yeah, yeah, and the layout is kinda crappy atm :P

Post Posted: January 8th, 2008, 2:56 pm

If you get that error
Code: [ Select ]
Module compiled with module API=20060613, debug=0, thread-safety=1 PHP compiled with module API=20060613, debug=0, thread-safety=0
download the non-threat-save package "" from this location

Post Posted: January 8th, 2008, 2:41 pm

Code: [ Select ]
PHP Warning: PHP Startup: sockets: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=1
PHP  compiled with module API=20060613, debug=0, thread-safety=0
  1. PHP Warning: PHP Startup: sockets: Unable to initialize module
  2. Module compiled with module API=20060613, debug=0, thread-safety=1
  3. PHP  compiled with module API=20060613, debug=0, thread-safety=0

why cant it ever be simple? :P

Post Posted: January 8th, 2008, 2:18 pm

i know, i usually keep telling that to other peeps too. Too litle php programmers as it is to promote the product with .Net commin up / being there. Never realised someone would tell me the same thing. It does make you realise that at the end we are all trying to make the best of it, and should resp...

Post Posted: January 8th, 2008, 2:14 pm

katana wrote:
Why try to run before you can even walk? Start with the basics - HTML, CSS etc.

Agreed, but when i started HTML / CSS became boring pretty quick. Always nice to plan the next steps ;)

Post Posted: January 8th, 2008, 1:58 pm

Well ill be damned :S (sorry for my poor language at this point)

Think i have been staring at it all night figuring out whats wrong with it. And now i realise its a starters error i feel ashamed "lightly" ;)


Post Posted: January 8th, 2008, 8:50 am

Also with the PHP-GTK comming up it will also enable users to build windows / linux applications with php as main language :D Check and check out the demo`s. Its amazingly simple! But i would def go for php instead of javascript. Or java, but then the setup will be much more diffi...

Post Posted: January 8th, 2008, 7:54 am

Guess its a bit to deep, anywayz if you like to have a shot at it. Check php-gtk right here. Download the source. Save the code above in phpgtk/demos/ping.php next run the following command from the phpgtk folder containing php.exe php.exe -f ./demos/ping.php and have...

Post Posted: January 8th, 2008, 7:18 am

There are also different problems in the code;
PHP Code: [ Select ]
 <input type="hidden" name="soloid" value="echo $soloID[0]; ">
the input field in the do{ }while() will finaly return only one value. This is because the POST name field "soloid" will be rewritte...

Post Posted: January 8th, 2008, 6:42 am

Hi, Im not going to rewrite your code, instead ill just give you some hints on some fundemental things i noticed in your script. The first rule that was thought to me was never to trust user input. And when you get into php a bit, step 2 will be to never trust your own scripts input either. Ill show...

Post Posted: January 8th, 2008, 5:45 am

I did some reading up on the subject (also bussy implementing a network wide NTP solution) and it seems that the file /etc/sysconfig/clock contains the setting selected in the linux installer process. The contence of the file is something like; cat /etc/sysconfig/clock # The ZONE parameter is only e...

Post Posted: January 8th, 2008, 5:11 am

On linux, if the NTP package is installed there should be a ntp.conf file in the ./etc direcotry that should contain this parameter. Maybe you could use preg to find the entry and read it from there. As far as i know there isnt a parameter globally accessible to determin the timezone. This because m...

Post Posted: January 8th, 2008, 2:48 am

Realy depends on how you intepret it. Basicly "Leaching" was a term used by hackers when they exchanged software using Mirc distro's and such. But leaching can also be intepreted as "taking" where the other side is "either aware or not" sharing the information. Anti-lea...

Post Posted: January 7th, 2008, 7:58 pm

Hi guys, it has been a while. But faced a problem again, and i cant figure out what the problem is. This code is written for the GTK extention on php (to write event based applications like in C#). And for some reason it wont spawn into the method "private function __Socket_Ping()" of the ...

Post Posted: September 29th, 2006, 8:33 am

Hey folks, Maybe some of you are allready messing arround with the Free Oracle Database called Oracle XE. All it requires is a registration and is free for download afterwards. Next to that Zend has created a PHP for Oracle package (wich i didnt explore as of yet). I installed the latest php (5.1.6)...

Post Posted: August 10th, 2006, 4:38 am

Good day all. I had this little question in general. Im bussy writing my own error handling class (object). Now the problem is that the website is being constructed in good defined parts ie. Header (code => result => template) Menu (code => result => template) Content (code => result ...

Post Posted: May 16th, 2006, 6:54 am

What format are you using (jpg, png, gif, ico, bmp, other?), and see if it supports alpha blending or another transparancy filter...

Post Posted: May 16th, 2006, 6:44 am

I think you mean to "transport" data from one page to the next? If so you need the globals like this :
PHP Code: [ Select ]
/**/ //page1.php session_start(); $_SESSION['var'] = "myvar"; echo "<a href="page2.php" title="page2">Page 2</a>"; /**/

Post Posted: May 16th, 2006, 6:36 am

phpBB&Portal(forgot the name :oops: ) / Nuke / Some Blog?

Many available options...

Post Posted: May 14th, 2006, 3:22 am

cant you just do a simple validation using the is_file() function? for instance use a foreach loop to walk through the array and validate each path with a is_file() if so add it to a "new" array or else drop the value...

-Greets May

Post Posted: May 12th, 2006, 12:37 pm


You sure its just the "change" of hardware?!?

isnt there a "notice" either from php (error_reporting E_ALL )

isnt "define" a disabled function (peeps sometimes worry about url injections etc forcing peeps to set all vars in $vars) ?

Post Posted: May 12th, 2006, 12:18 pm

if you want to understand b_heyer response try looking up "constants" and their application. ... tants.html


Post Posted: May 12th, 2006, 12:01 pm

noted and appriciated :D

thx 2 rabid

always on the road making "better" & "cleaner" code..


Post Posted: May 12th, 2006, 11:38 am

in that case let me reconstruct the script, maybe you will see...
Code: [ Select ]
// Table with dropdown_options // id value 1 banana 2 orange 3 kiwi 4 strawberry 5 pineapple // End table //
Code: [ Select ]
// User_table// user_id setting 100 4
[php] /**/ // Fetch the user setting // $sql = "sele...

Post Posted: May 12th, 2006, 10:09 am

Code: [ Select ]
// Table with dropdown_options // id value 1 banana 2 orange 3 kiwi 4 strawberry 5 pineapple // End table //
[php]/**/ $selected = (isset($_POST['pull_down']) ) ? $_POST['pull_down'] : ""; $option = ""; $sql = 'select * from dropdown_options'; $result = mysql_query...

Post Posted: May 12th, 2006, 8:01 am

bit strange description indeed. Its from the unix / linux "touch" command. Dont know where they got the idea to describe it as being a function to alter date and time opening / writing nothing to it will do the same, let that anyone might even need this as a function :S after reading it ag...

Post Posted: May 12th, 2006, 7:50 am

uhm.. where are you actually sending the information? or fetching it for that fact? using php i could actually help that is. But seeing your script im clueless on where that info is going except the fact it is somewhere on you computer. Also dont have a clue on what the "webbot" is... next...

Post Posted: May 12th, 2006, 7:48 am

well if i actually knew that much vb6 i might have lended you a hand, im shamed to say thats not the case :(

Post Posted: May 12th, 2006, 7:46 am

;) think ill need to study up my thai then

Post Posted: May 12th, 2006, 7:40 am

sure, Using the touch() function and writing the binairy back to it. (most peeps read over it lol) (PHP 3, PHP 4, PHP 5) touch -- Sets access and modification time of file Description bool touch ( string filename [, int time [, int atime]] ) Attempts to set the access and modification times of the f...

Post Posted: May 12th, 2006, 3:43 am

and I'd rather not place my images in a database

Why is that ? (if i had a choice it would be db :P )

Post Posted: May 12th, 2006, 3:31 am

couldnt have explained it better myself :) thx sevster But please be cautious. If you dont know any php "deleting" random files (what ever set by $file var) doesnt feel like the right place to start learning php... There is also a "reason" i stated "some code for you to (enh...

Post Posted: May 12th, 2006, 3:26 am

uhm... Looks nice, dont know it tough

Post Posted: May 12th, 2006, 3:18 am

Extension does matter unless you have SSI working. While you can enable SSI for IIS, it requires changing exec privlidges for the site/folders to allow scripts(if you use asapi instead of php.exe). There is no htaccess. As far as i know installing the php mod into IIS (not using php.exe) will by de...

Post Posted: May 12th, 2006, 2:58 am

like usually you need to load a lib that is able to parse the xml for you. Maybe try this : XML4C Version 3.5.1 XML4C is a validating XML parser written in a portable subset of C++. XML4C makes it easy to give your application the ability to read and write XML data. A shared library is provided for ...

Post Posted: May 11th, 2006, 7:19 am

maybe you can learn the "trick" here ;) ... parent.htm

Post Posted: May 11th, 2006, 7:12 am

For those that care / would like to test with it, here is the working code ... :D [php]/**/ // Quick and dirty mysql connector // class Mysql{ var $user; var $pass; var $data; var $host; // Constructor // function mysql(){ } /* Dont worry db allready removed :) */ /* Do update the conn data though *...

Post Posted: May 11th, 2006, 7:10 am

And it looks like you are trying to use the "ID" statement instead of class of wich the syntax should be : #tablehead{ css stuff } #tablehead td{ css stuff } <table id="tablehead"> <tr> <td>(css markup)</td> </tr> </table>

Post Posted: May 11th, 2006, 1:59 am

It works like a charm, even though as i suspected the headers are set to content-type : image/jpeg, i will manage to find a "work arround" for that like resetting the headers :)

Thx for the trouble just the same :D

Post Posted: May 11th, 2006, 1:08 am

did you try to lower the batch? And are you using a "relay" within you network to handle the mail batches if so, did you check its mailque? Next to that, if you are manually "building" the smtp engine that sends the mail, it should at some point open sockets to do so. Are these s...

Post Posted: May 11th, 2006, 12:58 am

check the "just written" tutorial by rabiddog at

If you require more "tuts" just request them ;)

do mind the "huge" improvement on classes in php5, the class written for php5 will not work in php4!

Post Posted: May 11th, 2006, 12:45 am

some code you can enhance / alter :-) [php] /**/ function prepare_file_del($file){ if(is_file($file)){ if(chmod($file, "0777")){ return(true); }else{ return(false); }else{ return(false); } } function delete_file($file){ if(prepare_file_del($file) ){ if(unlink($file)){ echo "<b>$...

Post Posted: May 11th, 2006, 12:36 am

even though this is way out of my scope of knowledge i doubt that you are disturbing anyone with your question ;)

Post Posted: May 11th, 2006, 12:26 am

for all that dont know the pascal triangle (i was one of em "englisch term" that is ;) ) , its a formula te express the number of ways to devide a polygon into triangles resulting in a 'n' of sides. Cn = 1/n+1(2n/n) explicit Cn +1 = 2(2n+1)/n+2 . Cn anyways how far is your triangle going a...

Post Posted: May 11th, 2006, 12:16 am

looks more like a menu with certain options to me... :)

Post Posted: May 11th, 2006, 12:12 am

output buffering.. that might do the trick indeed, crossed my mind also was only afraid it would include "header content-type" anywayz thx in advance :D

Post Posted: May 10th, 2006, 3:26 pm

this means you are actually using the IIS Managers footer options? anyway try loading the "remote" js files into an iframe like <iframe src="to_remote_site" width="" height=""> still i think its wiser to make a template through php or such to work in. or...

Post Posted: May 10th, 2006, 3:00 pm

i might give you a suggestion and a method ;) suggestion : Save the images in mysql blob (binairy large object blocks) columns together with the image info. Deleting images will be no more then, "delete from my_image_table where id = "some_id";" method : the problem is not the &q...

Post Posted: May 10th, 2006, 2:03 pm

not to mention the poluted code it generates :S learning from that will prop give you a hard time...

Post Posted: May 10th, 2006, 2:01 pm

think it can even be done with php. as long as an other color is used, dont want to think of the math needed to decipher the correct char though.. :S

Post Posted: May 10th, 2006, 1:34 pm

uhm... ? is this the question? //ตรงนี้ครับ รับค่ายังไงครับ ผมลองใส่ a<?=$i?> แต$...

Post Posted: May 10th, 2006, 1:32 pm

lol he lost track of the "new topic" button i guess :D

Post Posted: May 10th, 2006, 1:29 pm

Solved :) updated code below for all who care :D

Post Posted: May 10th, 2006, 5:18 am

its realistic if i understand your question right. If you like to have a "directory browser" powered by php. If not please refrase the "directory" part better. php supports a wide range of directory / file manipulation functions like fopen / fclose / chmod / readdir / opendir / s...

Post Posted: May 10th, 2006, 5:05 am

hehe got quite much "comments" on using the "distinct" query on sql so i wont. :P a way might be to "first" do a select on the empref to see if it returns any results. Then if(NULL){ insert }else{ Update } the record i would say... -Greets [php] $sql = Select empRef fro...

Post Posted: May 10th, 2006, 4:56 am

Are you reffering to a "Nassi-Schneiderman" Diagram? Usually a logical flow of dicisions and actions. quite easy to understand.. ps. this verry much "reads" as a school task, and wont help with that, next you need speudocode to "make" a diagram example : IF x = = 100 TH...

Post Posted: May 10th, 2006, 4:53 am

actually with a var containing the "user_id" of the user opening the page / continueing the session. If the user is logged on he "user_id" is know. So fetch it and just put it in there...


Post Posted: May 9th, 2006, 8:44 am

maybe ill give it a spin someday.. C++ C# ASP.

and finaly be able to convert all the ugly vbs scripts to nice gui`s :D and who knows gain some functionality..

But do have the feeling i need allot to learn within php itself (php5 OO) oh well, not dead yet and time to spare :D

Post Posted: May 9th, 2006, 8:31 am

What script did you buy that you can't install? I think he means what language the script is in and more info about it.. FTP upload There are various aproaches such as downloading and installing an ftp client. One that is usually always available is you own browser. To log in to it you might want t...

Post Posted: May 9th, 2006, 8:24 am

indeed include it. and to create a even more "modular" code write them to classes..
PHP Code: [ Select ]
 /**/ //Classes.php// Class template{ my_template_function(){ } } Class session{ my_session_function(){ } another_session_function(){ } }
[php]/**/ //Index.php// require_once('Classes.php'); /* ...

Post Posted: May 9th, 2006, 7:50 am

Dont ever mention "merge" you are not denormalising you database and you arent a "data warehouse either" so no not "merge" more like "relate" the data together. By defining the "user id" you are able to make an relation to the user table, this is not...

Post Posted: May 9th, 2006, 2:26 am

I truely agree with you statement, i guess they just wanted to point out is that at some point there will be a "turning point" in doing such and you will have to find a balance when you struck that point. Looking at common web applications like "portals" and "forums" i ...

Post Posted: May 8th, 2006, 3:00 pm

php... Quotes and html specials & => &amp; Or back to specials &amp; => & [b]Strip tags http://nl3...

Post Posted: May 8th, 2006, 2:43 pm

You should put your name at the top of ths script, you deserve credit. just create a link to he helped me make this possible for you and on reply to you question how to show the "online users" update this function and insert the "additional" username in...

Post Posted: May 8th, 2006, 5:48 am

true, might only save one considerable time writing it all out, or calling a native function :)

Post Posted: May 8th, 2006, 5:28 am

PHP Code: [ Select ]
    $output = date('D - jS - F' , [int timestamp]);
//returns somthing like Fri - 21st - August based on the timestamp
// Reading the manual and altering the format 'D - js - F' can give you
// Any format you like <img src="./images/smilies/icon_wink.gif" alt=";-)" title="Wink" />
  6.     $output = date('D - jS - F' , [int timestamp]);
  12. //returns somthing like Fri - 21st - August based on the timestamp
  14. // Reading the manual and altering the format 'D - js - F' can give you
  16. // Any format you like <img src="./images/smilies/icon_wink.gif" alt=";-)" title="Wink" />

like this?

Post Posted: May 8th, 2006, 4:18 am

As a followup on myself, i asked the same question here at some of our developers and dba`s, do note we use Oracle and there are many diffences between them. development : It might be used if you are writing a quick and dirty report of a group of unknown vars. The dba`s awnserd as follow. If one is ...

Post Posted: May 7th, 2006, 12:37 pm

may wrote:

how would i solve this in my sql query without a distinct?

All nice descussions but still the basic question not anwsered :S

Post Posted: May 7th, 2006, 5:36 am

a mate of mine backwards engineered one out of a java wysiwyg maybe he`ll share the code with you.

try Borri @

not sure if he likes it to be shared, so youll just have to ask him... wont provide the source without his consensus ;)

Post Posted: May 7th, 2006, 3:22 am

see this script : Still i think they calculate themselfs, why els would he be looking up all the backlinks? or something else i ran accross (not a pearl man myself) [code] #!/usr/bin/perl use WWW::Google::PageRank; sub clean { my $x = shift ...

Post Posted: May 6th, 2006, 7:18 pm

lol :P

didnt mean to hurt your feeling m8 :) i didnt even turn the dictionairy on it, was just some foolish thing we needed to learn at school...

and my best practice usually doesnt include checking if all the information is correct :D but indeed you seem to be right :) lol

Post Posted: May 6th, 2006, 7:02 pm

this213 wrote:
Oh, and a banana is indeed a fruit.

thanks for you reply, and a bananna is actually a herb ;)

and for that matter, cant remember any place i actually needed that :? , but was still verry interested...

Post Posted: May 6th, 2006, 6:50 pm

Hey, this is very simple, and i'm here to help! :D 1st off, add this into your members table, or users (whatever you use.) Online - Varchar(255) default: No i dont think its wise to handle session information in the users table, first how are you going to count all the "guests" on you pag...

Post Posted: May 6th, 2006, 6:35 pm

As far as i know its a "public" formula used. They use the reffer information to determin the Page Rank. have a sneek peek at this, hope it helps ;) good luck, n must warn ye... its quite complicated.. not all refferers are considered a "positive...

Post Posted: May 6th, 2006, 6:28 pm

Hehe, yeah. That's a quick fix. But as it's been mentioned often, if you use DISTINCT, it means you have bad database structure, which is why you need DISTINCT. dont quite agree, what if i wanted a count of all the "distinct" fruits and how many entries each fruit has in my table? like, o...

Post Posted: May 6th, 2006, 6:14 pm

while you are at it also read the part on rabiddog its tutorial site first "how to create thumps" next how to load it all as "blob" binairy large object blocks into your database. 1. management is much easier when the images reside in the database, 2. no possible security leaks (...

Post Posted: May 6th, 2006, 5:59 pm

maybe Curl might be an awnser. the Curl lib allows you to "trigger" almost all functions a "users" browser would like sending cookies, reading header information, posting / getting vars. the only problem might be the fact the page will be put inside a var as you would fopen / fre...

Post Posted: May 6th, 2006, 5:47 pm

found this somewhere and kept just in case i wanted to do this someday as refference, maybe you can twist up the code for your own usage ;) [php] <script language="JavaScript" type="text/JavaScript"> var slideShowSpeed = <?php echo (int)$show_speed ?> // Agent sniffer...

Post Posted: May 6th, 2006, 4:02 pm

Finished the code by adding a mysql class and pouring the session stuff in a class also, before more people start "fixing" incomplete code :P (not a personal note btw) Hopes this solves your problem hooch, if you have any questions then just request tutorials on rabiddog its tutorial site,...

Post Posted: May 6th, 2006, 1:50 pm

Admin, can you remove all my "blank" posts? thx..

greets may,

Post Posted: May 6th, 2006, 1:45 pm

nice one m8 :D this might turn up as a nice way of reffering to your tutorials :D
  • Sort by

© 1998-2016. Ozzu® is a registered trademark of Unmelted, LLC.