39,326 Topics

Member Avatar for
Member Avatar for eliauction

i wrote this basic codes to check against gd library existence: [PHP]$image = @imagecreate(480, 250) or die ("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate ($im, 0, 0, 0); $text_color = imagecolorallocate ($im, 255, 0, 0); imagestring ($im, 255,255,0, "A Simple Text String", $text_color); header ("Content-type: image/gif"); imagegif($im);[/PHP] result: …

Member Avatar for eliauction
0
100
Member Avatar for Stick

I have a website that lists customer's jobs that have shipped. When they click on the carrier's name it links to the carrier's website, but it uses the current window. Can I force the link to come up in a new window so my customer can see both my site …

Member Avatar for Stick
0
117
Member Avatar for blackraven

For some reason i cant get the mssql function to be inabled. When i go to view the phpinfo.php that i made to view the extension that are enabled it gives me an error saying that it cant load the extension. So i try to enable the pdf.dll in php.in …

Member Avatar for blackraven
0
90
Member Avatar for Kris111

I belong to a forum on forumer.com. Recently, we had a member sign up (it's a support group for parents of premature babies) using STOLEN pictures from other members' websites and this new member was trying to pass these babies off as her own. Although it is NOT against forumers …

Member Avatar for DMR
0
151
Member Avatar for paradox814

Ok so I am trying to create some BB code from scratch, and my big problem is the \S and \s and .* are very greedy. For example, when I try to use bb code on something like this: [php]$text = "[b]abcdefg[/b] !@#$%^&* [b]0123456789[/b]"; $text = preg_replace("/\[b\](.*)\[\/b\]/","<b>\\1</b>",$text); //same thing: //$text …

Member Avatar for Ooble
0
134
Member Avatar for Amunra

I know how to create standard php files, but how would I add the ?blabla to the end of the url. IE my forum url looks like this /index.php?act=home How would I make it look like that? Thanks

Member Avatar for Amunra
0
160
Member Avatar for ashneet

Well i trying to make a logout link that will exit frames to go to normal html page: when someone logout this command is run 2 transfer to next page: [PHP]header("Location: index.php?result=0"); [/PHP] what i am trying to do is exit the frames so that the index file is showed …

0
57
Member Avatar for xxplosive

I have been trying to insert google adsense ads to my website but everytime i try to add the code it says that thel HTML tags im using are not allowed. I know this code is javascript but i just cant seem to use it on my site! i emailed …

0
86
Member Avatar for steven01

How can I make media photos at my site?When click them,the medias play.Which sofware should I use?Can you tell me how?

Member Avatar for steven01
0
129
Member Avatar for kulinh

i write a script to display visitor IP address. I use this : $HTTP_SERVER_VARS["REMOTE_ADDR"] but my visitor say he has two IP different when show two website. With showmyip.com he has : 222.252.36.104 With my script he has : 203.162.1.49 and he say that the IP with showmyip.com is real …

Member Avatar for kulinh
0
105
Member Avatar for michael123

If I have an array $abc=[0,0,0,1,0,2]; how to change it to $abc=[1,2]; (remove all 0), is there php function can handle that? thanks.

Member Avatar for digital-ether
0
96
Member Avatar for Lexani

to help me add some new features to my dating site, im tryin to add video chat, if u know how to do this or have some good idea pm me

Member Avatar for digital-ether
0
283
Member Avatar for tristan17

Hi, I am tryiny to write a program which will allow me to upload a image and after which i had uploaded the image, I will be able to calculate the RGB values of the image which i have uploaded. The code works this way: //user to upload image file …

Member Avatar for digital-ether
0
137
Member Avatar for rjbearcan

This is my first time posting and I apologize for already beating a dead horse with resizing images using PHP but I am constantly getting an error. I have been to: [URL]http://www.daniweb.com/techtalkforums/showthread.php?t=1722&highlight=PHP+image+resize[/URL] and [URL]http://www.daniweb.com/code/snippet250.html[/URL] and I always get this error Call to undefined function: imagecreatefromjpeg() Any suggestions? Thanks a lot

Member Avatar for digital-ether
0
54
Member Avatar for ashneet

OK I wrote this query but i keep on getting error on it: [PHP]$query2 = "INSERT INTO ATTENDANCE (Class,Time,T_User_Name,S_Number,Absent,Date) VALUES ('$Class','$S_Type','$_COOKIE[User]','$S_Number','1','$Date')"; [/PHP] the error i get from php logs is: [28-Dec-2005 17:51:07] PHP Parse error: parse error, unexpected T_VARIABLE in /test/teachers/take.php on line 27 ------------------------- line 27 is the query …

Member Avatar for ashneet
0
106
Member Avatar for Lexani

hey i own two forums that are the same, one is a free service with ads and stuff but its really good, i like all the features it has added to the admin panel [url]http://www.createforum.com/phpbb/index.php?mforum=ontarioforumtk[/url] then i have another one thats the same but paid for and hosted on one …

Member Avatar for pc2forum
0
255
Member Avatar for tristan17

Hi guys, I have written a simple code here that should be able to display the image "tulips" from my database? But it does not work, wondering what is wrong with the code? <?php // database connection $host = "localhost"; $user = "user"; $pass = "password"; $db = "imagedb"; $table= …

Member Avatar for pc2forum
0
178
Member Avatar for namit

I am looking for a very simple calander function that just reads info from mysql or txt file what ever is handier Can anyone recommend a setup?

Member Avatar for pc2forum
0
145
Member Avatar for venetian_jigsaw

I am still a bit of a newb, but am getting the hang of webdev. My problem is in changing/updating a user's password. The good news is that I know I am hitting the mySQL table b/c I am able to see data appended. However, that's also my problem. When …

Member Avatar for RamiroS
0
165
Member Avatar for tristan17

Hi, I had written a small program in php, which will allow a user to upload an image to the database. My question is whether can i locate the directory of the image from where it was uploaded from? this is part of the code for uploading: " // Do …

Member Avatar for RamiroS
0
102
Member Avatar for namit

I have a directory full of pictures how do i shrink them? Have juse installed gd Can anyone help me?

Member Avatar for namit
0
181
Member Avatar for NilovSerge

Hi! In LDAP base I have some attrs by hierarchy: cn=attributes,cn=stubs,cn=lookups,cn=domain Inside this node there is a list objects: cn=PhysDevName, cn=LogDevName, cn=Location... I read to read them in an array I do: ... $ds=ldap_connect("localhost",389); // must be a valid LDAP server! if ($ds) { if (ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) { echo …

0
73
Member Avatar for Ashley

I'm kind of new to PHP. I wanted to know how to get my site to open in it's original url ie: [url]http://blah4site.com/name[/url] instead of [url]http://blah4site.com/name/index.php[/url] or having a slpash page and then going into the [url]http://blah4site.com/name/index.php[/url], when someone first visits the site. I hope this isn't too confusing. Here …

Member Avatar for Ashley
0
151
Member Avatar for tristan17

hi, I need help in installing gd library with php4.3.10 on windows platform. I have uncommented the line "extension=php_gd2.dll" and set the directory " extension_dir = "c:\php\extensions\" " where i have installed php in the php.ini file in c:windows. But it still doesn't work. Wondering where i had gone wrong. …

Member Avatar for tristan17
0
220
Member Avatar for namit
Member Avatar for namit

I have writen a scipts in linux its called user.sh i wounder how do i run it in a php script I can if i just run it in command line ./user.sh it works perfect but can i add it into my code. thanks

Member Avatar for namit
0
141
Member Avatar for Paki^Boy

Hello friends i hope u all will be fine...am also enjoying the blessings of Life... Dears i am from Pakistan (Asia) and an IT Student.....i love to develope Web Site but hasnt any professional experience so i want to learn Php so that i may do something dynamically and i …

Member Avatar for Paki^Boy
0
122
Member Avatar for Stick

I have a database that returns information about a customer's jobs that have shipped. It displays correctly, but I would like the carrier name to be a link to the carrier's website so the customer can track it on line. I have the carrier's website listed in the database. how …

Member Avatar for Stick
0
186
Member Avatar for 1andyw

I need to improve our online calendar but the ones I have seen so far, will not handle the number of events I need to list, without horizontal scrolling. Several of our members have mobility limitations and horizontal scrolling is inappropriate. The calendar should have a chronological list for each …

Member Avatar for namit
0
148
Member Avatar for tristan17

hi guys, i ran into this error "Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\web\imagedb\pixel.php on line 19" while running the code: <?php // database connection $host = "localhost"; $user = "user"; $pass = "password"; $db = "imagedb"; $table= "image"; $conn = mysql_connect($host, $user, $pass) OR …

Member Avatar for sarahk
0
88

The End.