Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 101
Search took 0.01 seconds.
Search: Posts Made By: Moharo
Forum: Pro PHP October 6th, 2005, 07:14 PM
Replies: 1
Views: 1,397
Posted By Moharo
hey that's no problem... all you have to do...

hey

that's no problem... all you have to do is generate certain file naming convention like so:

$new_filename = [userid] . "_" . microtime();

the renaming is done when you copy the file from...
Forum: Pro PHP September 5th, 2005, 07:50 AM
Replies: 2
Views: 1,378
Posted By Moharo
this is how you can do it: when user visits...

this is how you can do it:

when user visits a page, record the timestamp of a visit.... like 1039743934 or something

when they move to other page, just generate current timestamp and subtract...
Forum: Pro PHP September 5th, 2005, 07:39 AM
Replies: 3
Views: 2,153
Posted By Moharo
are you talking about decrypting? encrypting term...

are you talking about decrypting? encrypting term refers to making a clear text into something not readable like so:

$clear = "whassup";
echo md5($clear); //encoding

you have to know that...
Forum: Pro PHP September 5th, 2005, 07:30 AM
Replies: 1
Views: 1,034
Posted By Moharo
PHP runs on a lot of platforms including Linux......

PHP runs on a lot of platforms including Linux... what's the name of the software you are using? why do you want to edit .dll files? i don't think you would have the permission to do it under windows...
Forum: Pro PHP June 3rd, 2005, 02:53 PM
Replies: 3
Views: 972
Posted By Moharo
hey harpua what infomation do you want to...

hey harpua

what infomation do you want to encrypt and what will users be able to update? :D .... that can help me answer your question....

www.campusgrind.com - college portal
Forum: PHP How-To April 28th, 2005, 07:57 AM
Replies: 2
Views: 1,253
Posted By Moharo
howdy if you provided some more examples of...

howdy

if you provided some more examples of how it doesn't work. try removing username and password from mysql_connect(), just have the 'localhost' there....

another thing - don't use...
Forum: Pro PHP April 28th, 2005, 07:45 AM
Replies: 5
Views: 1,912
Posted By Moharo
howdy sir this error occurs only if you have...

howdy sir

this error occurs only if you have some output to a browser before session_start() is invoked. if you don't have anything like that, that means that the code you have, has created an...
Forum: Javascript How-To April 13th, 2005, 10:00 AM
Replies: 1
Views: 1,390
Posted By Moharo
this is very simple... 1. have the "id"...

this is very simple...

1. have the "id" and/or "name" attribute for the big image (example "bigImage")
2. when those links below are clicked, read and change "src" attribute of an <img>
3. you...
Forum: PHP Databases April 13th, 2005, 09:26 AM
Replies: 1
Views: 653
Posted By Moharo
that depends how you pass those variables from...

that depends how you pass those variables from page to page.... if you are doing it using URL links, use urlencode() on a string... it would be best if you provided some code

www.campusgrind.com...
Forum: PHP Databases April 13th, 2005, 09:22 AM
Replies: 2
Views: 982
Posted By Moharo
try doing just this: ...

try doing just this:

mysql_connect("localhost");

do not specify username and password....

www.campusgrind.com -college portal
Forum: Beginning PHP April 13th, 2005, 09:20 AM
Replies: 2
Views: 2,057
Posted By Moharo
i don't know if that is going to help you but...

i don't know if that is going to help you but check something called "character sets" in mysql

www.campusgrind.com -college portal
Forum: Beginning PHP April 13th, 2005, 08:58 AM
Replies: 1
Views: 697
Posted By Moharo
i'm not sure but i never seen notation like...

i'm not sure but i never seen notation like this...

since all you have to do is to increment a variable by one each time, wouldn't it be better if you passed it by url and perhaps added 1 to it?...
Forum: Pro PHP November 20th, 2004, 07:30 AM
Replies: 0
Views: 868
Posted By Moharo
copying images from a remote http server

greetings fellows

here's my question: how can i copy an image from a different (remote) server to my server.... for instance i have a image named "x.gif" on server www.anydomain.com and i want to...
Forum: Pro PHP November 1st, 2004, 05:45 AM
Replies: 2
Views: 1,455
Posted By Moharo
hey there i don't really know the solution...

hey there

i don't really know the solution to your problem, but this is what you can do:

1. check if you have "chmod 777" on the directory that you are uploading files to.
2. in the page where...
Forum: Pro PHP October 8th, 2004, 09:21 AM
Replies: 6
Views: 1,518
Posted By Moharo
hey Snib i gotta admit that regular...

hey Snib

i gotta admit that regular expressions are not my favorites... but this is what i came up with for your problem... (might be buggy)....

<?php

$teststr = "<a href='index.php'>";...
Forum: Beginning PHP September 27th, 2004, 10:09 AM
Replies: 2
Views: 1,698
Posted By Moharo
first of all there is no "value" attribute for...

first of all there is no "value" attribute for <input type="file">. if you add <input type="file"> you will notice there's a button next to the textbox with "browse" value, use that to browse for the...
Forum: Pro PHP September 27th, 2004, 09:59 AM
Replies: 5
Views: 1,852
Posted By Moharo
i think that using blobs in mysql is very...

i think that using blobs in mysql is very inefficient and slow. the best way to do is to store just image source in mysql table...
Forum: Beginning PHP September 19th, 2004, 09:59 AM
Replies: 7
Views: 1,537
Posted By Moharo
Snib sorry for being uninformative.. this is...

Snib

sorry for being uninformative.. this is what i meant:

function getTheJuicyMeat($date)
{
$date = getdate(strtotime($date));
return $date["minutes"]; // if you want the minutes
// return...
Forum: Beginning PHP September 18th, 2004, 03:47 PM
Replies: 7
Views: 1,537
Posted By Moharo
use the get_date() function..... ...

use the get_date() function.....

http://pl.php.net/manual/en/function.getdate.php



www.campusgrind.com the college portal
Forum: Beginning PHP September 12th, 2004, 05:24 AM
Replies: 3
Views: 972
Posted By Moharo
what kind of details are you talking about?...

what kind of details are you talking about? besides i think this forum has asp.net section (this is php :D)

www.campusgrind.com the college portal
Forum: Beginning PHP September 10th, 2004, 02:08 PM
Replies: 3
Views: 1,354
Posted By Moharo
Hey Snib I'm writing about $_COOKIE as messy...

Hey Snib

I'm writing about $_COOKIE as messy because some time ago I had some real problems with cookies when I used $_COOKIE, it (as usually) concerned IE 6. I read somewhere that IE6 uses...
Forum: Beginning PHP September 10th, 2004, 05:27 AM
Replies: 3
Views: 1,354
Posted By Moharo
hey Spookster :D first of all, you need to...

hey Spookster :D

first of all, you need to add some stuff for your code. if you want to specify the expiration time for a cookie you need to invoke the setcookie() function with more params...
...
Forum: Beginning PHP September 10th, 2004, 05:08 AM
Replies: 3
Views: 1,000
Posted By Moharo
hey i tried your code and it works totally...

hey

i tried your code and it works totally fine... remember that you are using the rand() function, which generates numbers from 1 to 5, sometimes number occurrences can be same.
...
Forum: Pro PHP August 21st, 2004, 05:31 AM
Replies: 2
Views: 1,125
Posted By Moharo
after mysql_query() which inserts some data to...

after mysql_query() which inserts some data to db, call header("location: whatever.php"), like this:

$sql = "INSERT INTO tb_name VALUES ('whatever')";

if(mysql_query($sql,$conn))
{...
Forum: Pro PHP August 12th, 2004, 01:44 PM
Replies: 6
Views: 41,514
Posted By Moharo
hello if you want to have all 4 drop downs...

hello

if you want to have all 4 drop downs visible, just remove "if()" conditions that are responsible for displaying a given select each time. however this might create some problems because you...
Showing results 1 to 25 of 101

 


All times are GMT -4. The time now is 03:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.