Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 500
Search took 1.18 seconds.
Search: Posts Made By: hinch
Forum: PHP 01-22-2013, 02:26 PM
Replies: 2
Views: 214
Posted By hinch
kind of right its pointless doing it purely in...

kind of right its pointless doing it purely in php.
but there are already hundreds of network and service monitoring tools out there for windows and linux all mostly opensource why re-invent the...
Forum: PHP 01-15-2013, 11:29 AM
Replies: 23
Views: 574
Posted By hinch
I know exactly what an SMTP server does you...

I know exactly what an SMTP server does you appear to be getting confused between client server and distribution/routing protocols though.
I'm not getting confused either with your recommendation...
Forum: PHP 01-15-2013, 10:21 AM
Replies: 23
Views: 574
Posted By hinch
you can but relying on external applications as...

you can but relying on external applications as bridge layers adds an extra level of potential issues. say for example your windows xxx layer service crashes do you have ways of monitoring if its...
Forum: PHP 01-14-2013, 04:15 PM
Replies: 23
Views: 574
Posted By hinch
thats why i use swiftmail because its write once...

thats why i use swiftmail because its write once use anywhere library just tell it to use the smtp transport and it works the same on every server windows or unix based.

using the windows based...
Forum: PHP 01-14-2013, 02:50 PM
Replies: 23
Views: 574
Posted By hinch
[mail function] ; For Win32 only. ;...

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from =...
Forum: PHP 01-14-2013, 02:33 PM
Replies: 23
Views: 574
Posted By hinch
you don't need to run a local mail server, you're...

you don't need to run a local mail server, you're connected to the internet. your ISP provides you with an open access relaying SMTP server.

edit php.ini there's 4-5 lines in there were you can...
Forum: PHP 01-14-2013, 01:32 PM
Replies: 23
Views: 574
Posted By hinch
just edit php.ini to send via an external smtp...

just edit php.ini to send via an external smtp relay? or use something like swiftmail or sending your mail that supports multiple transports.

that way your email goes outbound and will arrive on a...
Forum: PHP 01-14-2013, 11:42 AM
Replies: 11
Views: 377
Posted By hinch
$query->bindValue(:array, join(',',...

$query->bindValue(:array, join(',', $_SESSION['cart']));

or perhaps $query->bindValue(":array", join(',', $_SESSION['cart']));

also why use join for putting the array together why not just...
Forum: PHP 01-11-2013, 04:53 PM
Replies: 6
Views: 344
Posted By hinch
$sql_cnt = "SELECT DISTINCT item_id FROM main...

$sql_cnt = "SELECT DISTINCT item_id FROM main WHERE platform_no = '$platform_id' AND plat_type = '$Db_type'";

$result_cnt = mysql_query($sql_cnt) or die("could not count the ITEMS"....
Forum: PHP 01-11-2013, 03:58 PM
Replies: 11
Views: 377
Posted By hinch
rather than doing the same sql query n times for...

rather than doing the same sql query n times for each itteration could you not just do a select where productid IN($array)

so you only run the query once rather than potentially hundreds of times.
Forum: PHP 01-11-2013, 01:23 PM
Replies: 5
Views: 223
Posted By hinch
good good yes $valueindb is the value...

good good



yes $valueindb is the value of the column / row in your db that stores either your yes or no
Forum: PHP 01-11-2013, 11:46 AM
Replies: 2
Views: 181
Posted By hinch
regex for fqdn. something like this may/may not...

regex for fqdn. something like this may/may not be 100% accurate or working off top of head without any form of testing


$txt='google.com offers a variety of ways to discover new websites. You...
Forum: PHP 01-11-2013, 11:38 AM
Replies: 5
Views: 223
Posted By hinch
<?php if ($valueindb="yes") { $selected =...

<?php
if ($valueindb="yes") {
$selected = "selected=\"selected\"";
} else {
$selected = "";
}
?>
<input type="radio" name="whatever" id="whatever" value="yes" <?php echo $selected;?> />
Forum: PHP 01-10-2013, 02:06 PM
Replies: 3
Views: 191
Posted By hinch
ceil() always round up!

ceil()

always round up!
Forum: PHP 01-08-2013, 04:09 PM
Replies: 5
Views: 270
Posted By hinch
SELECT * FROM category OUTER JOIN assignment ON...

SELECT * FROM category OUTER JOIN assignment ON category.id=assignment.ClassID OUTER JOIN product ON assignment.productID=product.ID GROUP BY category.id

something like that i don't really ahve...
Forum: PHP 01-07-2013, 12:49 PM
Replies: 4
Views: 286
Posted By hinch
would work fine

would work fine
Forum: PHP 01-04-2013, 03:12 PM
Replies: 8
Views: 410
Posted By hinch
return urlencode($string);

return urlencode($string);
Forum: PHP 01-04-2013, 01:12 PM
Replies: 3
Views: 253
Posted By hinch
something like this though i suspect what you're...

something like this though i suspect what you're doing is wrong over all not just code wise.

you're double looping one table (not required), selecting a sum but then referencing the individual...
Forum: PHP 01-04-2013, 09:27 AM
Replies: 5
Views: 340
Posted By hinch
try changing...

try changing $UnreadMail=mysql_num_rows($UnreadMail);

to $unreadcount = mysql_num_rows($UnreadMail);

though thats assuming your db class works like that. does the db class not have something...
Forum: PHP 01-04-2013, 09:24 AM
Replies: 3
Views: 253
Posted By hinch
you are doing fetch_array twice on the same...

you are doing fetch_array twice on the same result set?

$row = mysql_fetch_array($res);

and

while ($arr=mysql_fetch_array($res)){
$sum += $arr['delivery_details_revenue'];
}
Forum: PHP 12-15-2011, 04:30 PM
Replies: 3
Views: 297
Posted By hinch
alternatively you can strtotime it to do the...

alternatively you can strtotime it to do the conversion in code rather than in mysql.

date( 'd/m/Y H:i:s', strtotime( $date_from_db ) );
Forum: PHP 12-15-2011, 03:39 PM
Replies: 3
Views: 359
Posted By hinch
<?php $query = "SELECT * FROM members"; ...

<?php
$query = "SELECT * FROM members";
$result = mysql_query($query) or die(mysql_error());
$rowcount = 0;
while($row = mysql_fetch_array($result)){
if ($rowcount == 0) {
$class = "row1";
...
Forum: PHP 12-07-2011, 09:06 AM
Replies: 2
Views: 320
Posted By hinch
the JS its self is included in a buttonevents.js...

the JS its self is included in a buttonevents.js file which is included like this in the header.

<script type="text/javascript" src="js/buttonevents.js"></script>

The button its self is just a...
Forum: PHP 12-06-2011, 04:49 PM
Replies: 21
Views: 922
Posted By hinch
did you increase the php memory limit

did you increase the php memory limit
Forum: PHP 12-06-2011, 12:18 PM
Replies: 2
Views: 781
Posted By hinch
curl something like this $ch =...

curl

something like this

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://api.ean.com/ean-services/rs/hotel/v3/list");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT +1. The time now is 12:13 AM.