![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
zq29
-
Posts
2,752 -
Joined
-
Last visited
-
Days Won
1
Posts posted by zq29
-
-
I'm not sure how you'd go about doing that in Apache - I'm not even sure that you can. You could do this however if you have a DNS on your network, or if you manually edit the HOSTS file on each machine on your network. Windows machines store this file in \WINDOWS\system32\etc I think.
-
Theres a good Photoshop tutorial site at psworkshop.net, I check it out every so often for ideas, but I feel a lot of the stuff there is getting a bit dated, sites are starting to look a lot cleaner these days with the 'less is more' attitude to design...
Sometimes I even check out those sites that sell web templates for ideas on new designs. -
You could use PHPs file functions...
[code]<?php
$java = "class HelloWorld {\r\n
\tpublic static void main (String[] arguments) {\r\n
\t\tSystem.out.println(\"Hello World\");\r\n
\t}\r\n
}";
$h = fopen ("hello_world.java","wb");
fwrite ($h,$java);
fclose ($h);
?>[/code]
Don't forget the semi-colon on the end of the file functions, they're removed in my example due to a bug in the forum. -
Moved to our Third Party PHP Scripts forum - The PHP Help forum is for requesting help with scripts that [i]you[/i] are currently developing.
-
Try replacing the comma with a period.
[code]$path = 'site_images/galleries/'.$path;[/code] -
Moved to our Misc forum. Please be advised that the PHP Help forum is for requesting help with scripts that you are developing.
-
[!--quoteo(post=386926:date=Jun 22 2006, 07:36 PM:name=Blue Phoenix)--][div class=\'quotetop\']QUOTE(Blue Phoenix @ Jun 22 2006, 07:36 PM) [snapback]386926[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Crayon: thank you for your reply, that is what I eventually want to do, but first I want to "validate" the VIN. In other words, I want to see if the string in VIN_ID can be found in the VIN. For that I need to check the entire column VIN_ID against the VIN and see if any of those can be found in the VIN, if this makes any sense.
[/quote]
Thats what Crayons code does... Searches all of the VIN_ID's in the database and returns all of the VIN_IDs that are found within the VIN held in $findme. You can just return a count if you like with:
[!--sql--][div class=\'sqltop\']SQL[/div][div class=\'sqlmain\'][!--sql1--][span style=\'color:blue;font-weight:bold\']SELECT[/span] [color=blue]COUNT[/color](*) [color=green]FROM[/color] [color=orange]`table`[/color] [color=green]WHERE[/color] `VIN_ID` [color=orange]LIKE[/color] [color=red]'%$findme%'[/color] [!--sql2--][/div][!--sql3--]
If that query returns a number higher than 0, you have a match. -
Have you tried assigning an absolute path to $topimg instead of a relative one?
-
I don't think the file input type supports a value attribute unfortunately...
-
Books that teach PHP4 often cover alot of the features of PHP 4.x.x, PHP4 is just a generalisation as "sub-versions" get released on a some-what regular basis.
Although, there were a handful of new functions that were implemented in PHP 4.2.x, there would be no fundimental differences in the syntax or functionality of the language. -
Surely if it is owned by the php user 'nobody', it wouldn't matter as you would be controlling it with php for the rest of your scripts anyway? Or is that not the case? I'm a little confused here too!
-
I can't see anything obvious jumping out at me, have you made sure error reporting / logging has been switched on within your php.ini file?
-
Yep, looks like its installed and working! Happy to help [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
-
I think as long as the directory is enclosed with quotes you should be fine, which it needs them anyway or you'll probably get a syntax error...
-
You could try this:
[code]<?php
exec("mogrify",$out)
echo "<pre>"; print_r($out); echo "</pre>";
?>[/code]
It should print the instructions on how to use the mogrify command in ImageMagick. (Don't forget the semi-colon on the end of exec() - left out on purpose due to forum bug!) -
[!--quoteo(post=386365:date=Jun 21 2006, 01:30 PM:name=w3sl3y2003)--][div class=\'quotetop\']QUOTE(w3sl3y2003 @ Jun 21 2006, 01:30 PM) [snapback]386365[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Thanks for the response SemiApocalyptic.
I'm not sure how that would help me. even if i could just get the full url of y.php after i provide the username and password that would be great.
is that even possible?
[/quote]
Oh, I'm sorry, I missunderstood you. With regards to your question, I'm not sure, hopefully somone will pop along soon that does know :) -
You can set the session ID with session_id() function.
-
[!--quoteo(post=386290:date=Jun 21 2006, 06:22 AM:name=PikaKiller)--][div class=\'quotetop\']QUOTE(PikaKiller @ Jun 21 2006, 06:22 AM) [snapback]386290[/snapback][/div][div class=\'quotemain\'][!--quotec--]It really doesnt work at all and i have tried to figure it out but does not work. Can you help?[/quote]
What is it (not) doing, and what are you expecting it to do? -
You could try:
[code] echo date("D",strtotime("19-06-2006"));[/code] -
You could use glob() - file() - strpos()
-
session_start(); needs to be called before any output (including HTML), its best to put it right at the top of your file, so that line 1 is "<?php session_start(); ?>".
-
Is session_start(); called before [i]all[/i] page output?
-
You haven't got more than one user with the same email and password have you? If you have, your code will assign the last user of those selected to your session variables.
-
Can you post an example encrypted password?
[b]EDIT:[/b] Just searched on Google, and someone posted somewhere else that vB hashes passwords through md5, then salts it, then through md5 again... Maybe you could extract the encryption function from vB and use it to encrypt your passwords?
Simple Image Scaling
in PHP Coding Help
Posted