Josh Connerty 20 Unverified User

Post your counter and I will take a look at it. ;)

Josh Connerty 20 Unverified User

I suppose you could yes, you would need to play a little with the configuration. When I say a little I mean you would have to literally rewrite allot of how wordpress work.

Also I have had my shared hosting accout hacked via a loop hole in WordPress, so I wouldn't advise you to use WordPress at all.

Josh Connerty 20 Unverified User

We aren't here to programm for you, we are here to help you program. Do you have any knowledge of PHP?

Josh Connerty 20 Unverified User

Actually I tried that instially and another module besides these two didn't load. I used the extension_dir to specify the extension directory and another DLL started working, just leaves these two not working :(

Josh Connerty 20 Unverified User

Lol, was my though inistially, BUT I would really like to learn the ASP.NET language so I would require IIS :(.

Will try that now ;)

EDIT: Nope didn't work :(

Josh Connerty 20 Unverified User

What system is the website running on?

You can use the following commands to find this out:

echo "Site Software: ".$_SERVER["SERVER_SOFTWARE"]."<br />";
echo "Proccessors: ".$_SERVER["NUMBER_OF_PROCESSORS"];

If the proccessor returns something silly like 1 then that might be an issue (these things can take allot of proccessing) but this wouldn't be the main issue.

Does your site finish loading or does it take soo long you give up? If this is the case AND the site software is Windows IIS then it could mean you need to configure IIS to accept PHP extensions.

Josh Connerty 20 Unverified User

Hey guys,

I have a new server :P I am currently configuring it and I ahve come across an issue. The issue being that PHP 5 does not support MySql from standard. I have managed to resolve an issue with the installation of PHP on IIS BUT I am strugling to enable these required extensions for PHP 5 and MySql to comunicate.

The problem is that (I think) PHP doe4sn't have permission to load the DLL's:

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mysql.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mysqli.dll' - The specified module could not be found. in Unknown on line 0

So I need to find a way of allowing PHP to execute these extensions. I have tried adding them to the C:\WINDOWS directory, but to no prevail. Oh yes I am currently running Windows Server 2003 Enterprise Edition if that makes any difference.

Thanks in advance,
Josh.

Josh Connerty 20 Unverified User

Yes, wmp11 has vital DVD codecs missing, silly really as many people liek yourself will play dvds via their PCs using wmp. The codecs are wide spread though so there is many places you will be able to download the required codecs.

kaninelupus commented: don't be a d1ck... NO media player has EVERY codec available, especially as some codecs are propietary! +1
Josh Connerty 20 Unverified User

Okay, just checked on my windows server 2003 box. It seems it is under Date & Time . You should be able to change the timezone and other time related settings there.

Josh Connerty 20 Unverified User

I'm not overly sure, try the regional settings in the control panel, might turn something up.

Josh Connerty 20 Unverified User

No you don't...

At least I don't...

Should do it fine, I presume nigelburrell (if he is still alive) has made a little cock up in his form, the idea is that it submits the current form...

Josh Connerty 20 Unverified User

Well, they would be screwed. All there is to it, good practive for him. Besides you only have to look at the script to figure out what the column is used for, for instance you wouldn't put desc in <tr><td>Name:</td><td><?=$row['desc']?></td></tr> LOL. Just pulling your leg. But seriously, I am stuck in the habbit now :P.

Josh Connerty 20 Unverified User

Thanks for the reply, I think the issue is resolved now (not sure how though). It seems to have fixed itself :P, maybe the PSU felt the same way as me about installing Vista updates. :D

Thanks for your input, will make sure my provider knows it did it once though just so they know.

Josh Connerty 20 Unverified User

And we all know how important .Net and front page support is for PHP development ;-)
(This is the PHP forum, right?)

Given the choice, most PHP developers would probably choose to keep Apache rather then IIS.
Some of use would actually do pretty much anything to not get stuck with IIS.

Not to mention that some PHP applications rely on, or at least work better with, some of the Apache mods.
mod_rewrite being one of the more popular once.

I'm not debating that, what I'm trying to say is, why both?

Okay so you prefer Apache, then just run apache, not much use in having the two running it will be asking for trouble.

It's like how windows always manages to fuck up the linux partion. Same thing, windows hate everything that isn't windows :P.

No I am having trouble installing PHP on IIS actually :(. I woudl rather keep IIS though.

Josh Connerty 20 Unverified User

Hey guys,

I am in the proccess of setting up my server. It is running Windows Server 2003 R, with IIS 6.0 (I think). Now the issue came when installing PHP.

First off I got a IIS timeout error whilst running a PHP script containing no php :@. I managed to solve this by adding %s %S after my executable path in the Script Map.

Second time (now) I am getting this:

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

I have read through pages and pages, forums and forums, but to no prevail. It seems like most don't actually know and those who don't, don't tell. I have found some usefull information but it was pointless because allot of it didn't work on my System.

I need to get it off to the colocation provider later next week. Can someone help me with this a little please? I'd rather configure most at home so it saves me having to do it all via VNC.

Any suggestions would b great!

Thanks,
Josh ;)

Josh Connerty 20 Unverified User

No problem. If it happens again just reply to this thread. I am automatically subscribed so I will know when you post back plus it will be bumped to the top of the pile. ;)

Josh Connerty 20 Unverified User

I don't agree. As long as you use correct cyntax (ie. `desc`) and as long as you know what `desc` means it isn't a problem. I use desc myself.

Josh Connerty 20 Unverified User

Why not just have one, I am running IIS6 on my Windows Server 2003 and I wouldn't really need an apache server. They both do the same thing but if you are running a windows server edition then you have no need for apache as you can install IIS and ASP.NET engines and front page extensions in one sweep.

Why is it that you need them both installed?

Josh Connerty 20 Unverified User

You need to look into the jQuery.ajax function, this will send/receive information from a PHP document.

What you need to do is set up a PHP document that will handle the the form as though it were being posted to by http, or by setting the action on the <form> tag.

You then need to make a function similar to this:

var name = $("input[name=name]").val();
var email = $("input[name=email]").val();
jQuery.ajax({
type: "POST",
url: "document handle/ php document",
timeout: 4000,
beforeSend: function() {
$("#loadingScreen").html('<img src="link to loading image, optional" alt="" />');
},
data: "name="+name+"&email="+email,
error: function() {
alert("We are experiencing some issues at the moment. \r\n Please try again soon.");
},
success: function( success ) {
$("#results").html( success );
}
});

The beforeSend is optional, if you don't want a loading image or text then you can remove the three lines relating to the attribute.

The others are quite self explanitary, for data though you must have the first name of the value inside the $_POST[' but when adding a second you must have the + infornt of the name.

This is virtual submiting certain values without page refresh and mutch input from the user.

By the way you are going in the right direction with jQuery, it is a brilliant framework. I use it with majority of JavaScript work. Someone asked recently where a good place to learn jQuery was. Well themeforest (http://themeforest.net) have a beginners series on their blog. Try googling theme …

Josh Connerty 20 Unverified User

Is this on the local server or a remote host?

If this is on a webserver then your host should set this up for you.

Else if it is on local host it is not worth setting up. Just suppress it with and @ infront of the mail function.

When you upload to a webserver it will work properly.

If you really want to set it up so you send mail then you need to look into getting a mail server then getting and configuring a DNS server, then add these settings to your php.ini.

Josh Connerty 20 Unverified User
number_format( $string , 2 , "Decimals" , "Thousands" );
function fomat_brazil ( $case ) {
// Presuming the brazilian use "," as the equvilant of "." or the reverse
echo number_format( $case , 2 , "," , "." );
}

function format_english( $case ) {
echo number_format( $case , 2 , "." , "," );
}

Hope this helps ;)

Josh Connerty 20 Unverified User

Sounds very much like robo form. Have you tried searching roboform faq's or documentation?

Okay sorry I haven't had Vista for too long (and I doubt I will have it for much longer) so I don't tend to know the paths off of the top of my head :P

Okay: Control Panel -> Classic View (on the left) -> Administrative Tools (second icon) -> Event Viewer This one is a little more complicated. Basicly click on the (oh ray mears survival is on) link tab that says Windows Logs this should reveal another four or five tabs. Your best bet is to scower them and find a System Shut Down error. They should be listed in accurence order or top ones are the last ones to happen.

After you find it then post it here. ;)

Josh Connerty 20 Unverified User

The issue is that the include is include the file .php .

What is the line that you called the main/include function?

Josh Connerty 20 Unverified User
<?php

mysql_connect("localhost","root","");

mysql_select_db("student") or die("Unable to select database"); 
?>

<form name="form" action="result.php" method="get">

Subject   <input type="text" name="q" />
Topic <input type="text" name="r" />
Ability <input type="text" name="s" />

  <input type="submit" name="Submit" value="Search" />
</form>

<?php
  // Get the search variable from URL
 $q = $_GET['q'] ;

  $r = $_GET['r'] ;

  $s = $_GET['s'] ;

// Build SQL Query  
 $myquery = "select * from lesson where subject like '%".$q."%'  AND learningArea like '%".$r."%'  AND  ability like '%".$s."%'";
//echo $myquery ;
 $result = mysql_query ($myquery); 


 echo "<table>"  ;
echo "<tr><th>Lesson ID</th>";
echo "<th>Subject</th>";
echo "<th>Learning Area</th>";
echo "<th>No of Students</th>";
echo "<th>Time Period</th>";
echo "<th>Class</th>";
echo "<th>Ability</th></tr>";

while ($row= mysql_fetch_array($result)) 
 {
$lessonID = $row["lessonID"];  
  $subject = $row["subject"];
  $learningArea= $row["learningArea"];
    $noofstudent= $row["noofstudents"];
    $minutes= $row["minutes"];
    $class= $row["class"];
    $ability= $row["ability"];

//display the row
   
echo <<<EOD
<tr>
<td><a href="details.php?lessonID=$lessonID"> </a></td>
<td>$subject</td> 
<td>$learningArea</td> 
<td>$noofstudents</td> 
<td>$minutes</td>  
<td>$class</td>  
<td> $ability</td>  
</tr>
EOD;
}
echo "</table>";
  
?>
Josh Connerty 20 Unverified User

Is 203.142.18.33 your IP?

If so then you need to use the localhost IP (127.0.0.1).

Else I would look into fsockopen.

Josh Connerty 20 Unverified User

You really need to make a HTML structure and then give them an input box to change the value of the CSS color: <this>; .

Got to http://bebo.com/ and try creating a skin and that will give you a little idea on what might be safe. (You might have to sign up :/)

Josh Connerty 20 Unverified User

Also you might want to look into AJAX. ;)

Josh Connerty 20 Unverified User

You are really expecting allot from us. We would need a little more information and definetly the contents of the file you mentioned.
;)

Josh Connerty 20 Unverified User

Oh I am in my own little world, don't mind me :P.

I haven't taken much of a look at PHP5. Not sure if it is the version but the shit with all of the arrows, make my neck crawl. It seems pointless.

Josh Connerty 20 Unverified User

They woudln't replace HereDoc. With NowDoc that would defeat the whole purpose of HereDoc.

I love HereDoc. Good for making results pages. Means you can make a whole html page and stick the PHP in without having to use the tags etc

Josh Connerty 20 Unverified User

I love how you guys have just taken over the poor man's thread... haha
I think his disappeared anyways... lol

Best way imo, sessions and then if required outside of user login/logout database, but I doubt there would be very many scenarios that would 'require' it maybe just a little feature but session the way to go, agreed?

Nope, disagreed. :)

I just siad no. I have actually looked into it and as far as a know you can't retreive cookies from users to decide wether they are on or not.

You would have to run a query to tell the sql db that the user (that just changed a page) is online. Then give it a timestamp and then run a query when displaying online users saying:

// 360 = 5mins
if( $row['timestamp'] > ( time() - 360 ) ) {
echo "Online";
} else {
echo "Offline";
}
Josh Connerty 20 Unverified User

Care to give some example code for?
1) Run a statement every X seconds
2) links to a form.php
5) You would just link to a form or a function that php would check for recent rows added and return them?
7) Why replace then just add?

Nope, a good magician never reveals his tricks or a good developer never shares his source :P

Um I would but it takes a while and I'm a little busy.

Plus I would only be able to do it with the jQuery framework (I learnt JS with it) :(

Josh Connerty 20 Unverified User

Hey guys,

I used to keep getting a screen of death error in XP and I got a new PSU (advice of novatech) and it seemed to have done the trick. However I was installing SP2 for Vista and on the restart to do Step 3 I got a blue screen error:

Product
Windows

Problem
Shut down unexpectedly

Date
11/06/2009 03:15

Status
Solution Available

Problem signature
Problem Event Name:	BlueScreen
OS Version:	6.0.6001.2.1.0.768.3
Locale ID:	2057

Files that help describe the problem (some files may no longer be available)
Mini061109-02.dmp
sysdata.xml
Version.txt

Extra information about the problem
BCCode:	d1
BCP1:	2DE871CC
BCP2:	00000002
BCP3:	00000000
BCP4:	A43D50CD
OS Version:	6_0_6001
Service Pack:	1_0
Product:	768_1
Server information:	d6669ae8-064f-45e4-a60a-9e516a90845c

ALTHOUGH Vista did say it has provided a solution, it hasn't. Actually what it did was try accusing me of stealing Vista or something claiming it wasn't genuine. Anyway, I tried maybe twice to get it to boot again but kept getting blue screens. I booted in safe mode and did a restore, but this did nothing and got the blue screen error again.

So I restored my BOS settings and it booted up fine. I'm starting to think this maybe a MOBO issue. I mean I haven't changed much in the BIOS as it is. I think I changed the boot disk priority, but thats it.

If the blue screen happens again I'm going to clear my CMOS.

Before then, do you guys have any suggestions?

Josh Connerty 20 Unverified User

Go to Control Panel -> Administrative Tools -> Event Viewer and then find an error (should be marked by ! in a red circle).

Look for one that reports that windows shut down to prevent further damage.

If you like you can also type in the start menu search solutions and there should be Windows Reports & Solutions click that and look for a windows shutdown. Try reporting this or finding a solution.

If that turns up nothing then when you double click it it will show you the details and you should see in the bottom left a copy to clipboard link click it and paste it in a reply.

Josh Connerty 20 Unverified User

What scan did you do using MAlwarebytes' ?? and do u remember what kind of infection was found??
DO the foll :

Update Malwarebytes' Anti-Malware and run a full system scan, In the normal mode and not safe mode...remove all infections and save the logfile...Reboot...
Download Hijackthis and click on 'Run a scan and save a logfile'...then upload both MBAM and HJT logfiles here...

Nope I know what it is. Got to Control Panel -> Administrative Tools -> Services look for a service called DHCP Client. If it is turned off then you need to try and turn it on.

If it is what I think it is it will tell you that it is missing a dependant server( or something) Error 1075. My case is similar, I got a virus from a P2P program and I managed to wipe it with mbam but now the DHCP Client is not working. I am still looking for a resolution. Will keep you posted.

Josh Connerty 20 Unverified User

In deed, a little lesson for the future then :P.

GL Buddy.

Josh Connerty 20 Unverified User

Maybe Joomla may have a way to block this from happening, that is if you want to block this. Always try to use [at] instead of @ as some bad bots scan the web for this @ sign and will take the address and just spam them.

Josh Connerty 20 Unverified User

This seems to be your issue $webResults = $resUrl->getElementsByTagName($prnt0); .

Try print_r( $resUrl ); this should print out something.

You need to do this for pretty much every variable you have so as you know were things are dropping their values.

Maybe take a look at either the manual or the documentation about this specific method as I don't have much knowledge of it.

Could you not create a function that uses a series of explotions and loops to extract the values?

I could give you some help with this. I am not really much of a PHP 5 & 6 guy as I learnt PHP years ago. PHP 5 should suffice.

Josh Connerty 20 Unverified User

Hmmmm, it seems you may need to inspect their document for doctypes etc.

Can you open the source for the website in question and post it here?

Josh Connerty 20 Unverified User

I wouldn't know :P,
Used to be on csscreator.com a while back but haven't been on their for a while.
I faced the fact I wasn't creative.

Josh Connerty 20 Unverified User

I don't speak programming language, I can write it but models, associative array etc. mean nothing to me. :P

Can you explain in a little more human terms what exactly you are trying to do?

Josh Connerty 20 Unverified User

Can you post the form it is most likley the way you have structured the form.

Josh Connerty 20 Unverified User

The field in the mysql database what char type is it? (eg. VARCHAR or INT or SMALLINT etc.)

It maybe that the browser is parsing it as a mailto link.

Try doing this:

<?php
$newEmail = str_replace( "@" , "[at]" , $email );
echo $newEmail;
?>

If that doesn't have a link then it is most likely the browser that is parsing it as an email address, else it is the way in witch the MySql database is handling it.

Josh Connerty 20 Unverified User

So the issue is above the decleration of $webResults, whats $prnt0 ?

It seems like the method you are using to fetch the data is not working.

Josh Connerty 20 Unverified User

Resolved, to conclude I had to edn teh program server and that killed the proccess under my username called services.exe that then allowed me to access the internet and download mbam however I had to rename mbab as the hacker was blocking the mbam.exe proccess.

Josh Connerty 20 Unverified User

A little update, the second proccess is a system proccess and seems okay. As for the first it was supporting server (program) that I can only presume was theifing my data.

I actually killed it by ending the program LOL!!!!

Just downloading malware bytes.

Josh Connerty 20 Unverified User

My son's computer had a good sized spyware attack, thanks to his Limewire use (now cutoff). I was able to clean it up using Malware Bytes AntiMalware, but now it will not start the Internet Connection Sharing service. I get an error that says "cannot find specified file" when trying to start the ICS service. This computer uses a wireless card to get online, so it will not get online without this service.
I have not found any solutions on MS Knowledge base that are pertinent.
Anyone have a solution for this? I do NOT have an XP disk to reload from.

Sounds like you may still have malware.

If not then Pirating a identical OS copy isn't illegal. As long as you own the equivilent OS you can download it and burn it to a rom and then use it to repair your current OS.

Josh Connerty 20 Unverified User

Sorry, so are the DIV's fetched from the database? Presuming it is MySql then you can add ORDER BY column ASC/DESC Column being the column name to identify the divs and DESC meaning descending and ASC meansin ascending.

Josh Connerty 20 Unverified User

Have you tried using a print_r( $webResults ); statement to make sure that this variable has the values you are hoping for?

Josh Connerty 20 Unverified User

Hmmmm, is this changing often. You mentioned using JavaScript to change them. Will JavaScript be changing them often?

If so then you might aswell get JavaScript to order them. Theres little point in PHP organizing them for JavaScript to come and cock them up.