39,316 Topics

Member Avatar for
Member Avatar for EricIskhakov

Hey. I'm trying to open a dir under safe mode. and i keep getting this error : Fatal error: Uncaught exception 'RuntimeException' with message 'DirectoryIterator::__construct() [<a href='directoryiterator.--construct'>directoryiterator.--construct</a>]: Unable to access /home/mypath/mysite.com/public_html/path/to' in /home/mypath/mysite.com/public_html/site/loaddir.php:7 Stack trace: #0 /home/mypath/mysite.com/public_html/site/loaddir.php(7): DirectoryIterator->__construct('/home/mypath...') #1 {main} thrown in /home/mypath/mysite.co/public_html/site/loaddir.php on line 7 my question is : …

Member Avatar for EricIskhakov
0
244
Member Avatar for JoyBh

Hi! I'm unable to connect to my ODBC data resource from PHP. The code I have written is given below. Secondly, I'm not sure what username and password combination to use in the odbc_connect function when the ODBC data source is MS-Access. Joy. [CODE] $connect = odbc_connect("SerMas", "Joyji", ""); # …

0
51
Member Avatar for ebanbury

Hi I'm trying to parse a recordID from a table of data in one page and pass data based on the chosen record to another page. The data is taken from a database and I've used recordsets: I have one recordset called rs_search which contains data from 2 tables called …

Member Avatar for ebanbury
0
198
Member Avatar for Emeryl

Hi! I'm pretty far from the best coder in the world, but I recently moved to a new host and re-uploaded my files. I was clicking around to check that they still worked and noticed one of the pages wasn't loading properly anymore. When I look at the code, it …

Member Avatar for Emeryl
0
96
Member Avatar for adamworld

I have a script that I am using to retrieve zip codes within a certain radius using a foreach php statement. However, with these zip codes that I am getting, I want to add a comma between each value (for example: 11111,22222,33333) to use in a SQL query using the …

Member Avatar for qazplm114477
0
3K
Member Avatar for jrotunda85

I am trying to create a page where a registered user can go, view the information from their profile, and update that information if necessary. I've started putting something together however it's inefficient in my opinion. Here's what I'm trying to figure out: [LIST=1] [*]Is there a way to check …

Member Avatar for diafol
0
173
Member Avatar for rkayd

I copied this code from some forms that work and changed some information to apply to the new situation but something is wrong. The form "editreg.php" seems to be working fine. It populates the fields correctly. When it gets redirected to "editregsubmit.php" I get the message that the record was …

Member Avatar for qazplm114477
0
165
Member Avatar for jrotunda85

I am in the process of creating a website in PHP/mySQL and the next thing I wanted to tackle was creating an option for users to be able to upload a small avatar (maybe max of 50x50 let’s say). I’m not as familiar with how images are stored/retrieved in a …

Member Avatar for diafol
0
288
Member Avatar for tiggsy

I suspect there isn't a way to do this, but in case there is: Does anyone know how to pick up all the possible set values for a particular field from php? The reason I'm asking is that it means adding a new set value will not break all the …

Member Avatar for diafol
0
161
Member Avatar for deecoup

how it works ? it is activated in Word press Plugin Directory but asking for license is it beneficial for SEO point of view?

Member Avatar for diafol
0
91
Member Avatar for amazed

Hi I have LAMP stack as server and doing my development work on windows. What version system would be perfect in this scenario? Thanks

Member Avatar for mschroeder
1
103
Member Avatar for leemyers

Hi i have a php script that create a new user account on my online backup server via a api, when i open in i.e or firefox i get this error message Parse error: syntax error, unexpected $end in /home/public_html/123-backup.com/test.php on line 297 I' am not sure what is missing …

Member Avatar for kmonroe
0
151
Member Avatar for lkrvk

hi guys, i wanted a table to get created with the table name submitted from the form. how shall i go about this, i have tried it with my basic knowledge its here bellow but it dint work well, please help me anyone. [CODE] <?php if (isset($_POST['update'])) { mysql_connect('localhost', 'root', …

Member Avatar for smantscheff
0
160
Member Avatar for kurakar

Hi, I cant sent email using smtp and php. I am using one form with email,subject message, etc i want to sent an email to that email (in form) while submit button click. I am givin the code bellow(only php) [CODE] if(isset($_POST['Submit'])) { require ("req_mail.php"); $from = "support@somecompany.com"; $to = …

Member Avatar for pritaeas
0
228
Member Avatar for Aser Gado

After successfully creating a Registration/Signin/user profile... now I am assigning a profile picture for a user ... I have a question... Everytime I hit upload it doesnt upload I added an "echo' to say if no file is chosen "Please Select a file", it shows this even when I select …

Member Avatar for Aser Gado
0
127
Member Avatar for thijscream

i made a dropdown menu on top of my page, i thaught everything went well. you can see the example @ [URL="http://www.thijscream.nl/wijnkado"]http://www.thijscream.nl/wijnkado[/URL] the only problem is that the page is kinda wide, so the menu isn't centered. is there a solution for this? this is my menu: [CODE]<div id="menu"> <ul …

Member Avatar for thijscream
-1
146
Member Avatar for khushhappy

Hi I cannot figure out the results when the code reaches at line 41 (while loop) . ! it throws an error. displaying records of two different tables, want the solution but with the JOIN statement. Thanks, and kindly look into the Attachment file as it contains jpg file.

Member Avatar for khushhappy
0
83
Member Avatar for Fancycoder

I want to replace a part of a string but ignore some other parts of it. I have pattern but don't know how to use it. [CODE] $message = '<div class="sacred">http://www.daniweb.com/ is inside the div tag so I do not want it replaced.</div>http://www.google.com/ is outside the div tag so I …

Member Avatar for smantscheff
0
842
Member Avatar for william604

Hi im new to php and i have been following along on a video on how to create a registration form, but im getting an error "Notice: Undefined index: button in E:\EasyPHP-5.3.2i\www\Survey\register.php on line 3" Please help im new to php and don't know much Here is the code: [CODE]<?php …

Member Avatar for stefh
0
109
Member Avatar for shenbagam

Is anybody having idea about bar chart in php. I need to import the datas from excel sheet into php. I have created static bar chart. but i have to create dynamic bar chart . The datas should be retrieved from mysql or from excel sheet. If anybody knows kindly …

Member Avatar for qazplm114477
0
559
Member Avatar for professor123

hi can you help me l trying to run a certain php job recruitment system but l am getting the following error: [COLOR="Red"]Fatal error: Using $this when not in object context in D:\xampp\htdocs\jobs\pb_events.php on line 5[/COLOR] and below is the referred pb_events.php script. [CODE]<?php function DoEvents($this) { global $_CONF, $_PAGE, …

Member Avatar for qazplm114477
0
95
Member Avatar for oree

My question is, if I want to upload 4 files at a time do I néed to store at my database all 4 filesize type and path or can I get away with only storing the file name and upload them. Thanks

Member Avatar for sudeepjd
0
131
Member Avatar for dhairyaguptha

I use following code to Upload images to Web Server. But it shows successfully uploaded and even it shows image exists when i try to reload the same. But i cant see those in my Document root. I use Godaddy Windows hosting. Please Help me. Thanks. [CODE]if ((($_FILES["file"]["type"] == "image/gif") …

Member Avatar for dhairyaguptha
0
126
Member Avatar for jj.amonit

Can somebody help me get my lingo and terms correct? I have a website hosted on Godaddy.com (please no criticisms, I know it's not the best. It's temporary). It the most basic hosting option. I need to run a nightly script at a specific time. I know and use php, …

Member Avatar for chrishea
0
135
Member Avatar for raghujosh

I have a simple login module wherein I enter login info to a database. After that, I use another file, loginauth.php which validates the login info. However, I am getting the else statement executed. Can somebody point out what's wrong. [CODE]<?php session_start(); if (isset($_POST['userid']) && isset($_POST['password'])) { $userid = trim($_POST['userid']); …

Member Avatar for raghujosh
0
117
Member Avatar for ale89

Hi everyone! I am doing in php that among users can be added as friends. When I save the data I keep this name user1 logged and username2 of who wants to be friends. User1 keep the session and when I click on follow me this appears Unknown column 'UserSession …

Member Avatar for diafol
0
1K
Member Avatar for qazplm114477

I hope this is the right place to post this, since it's more of a wordpress question than anything else. I was wondering if anyone can give me an opinion on the best way to redirect a site to another url when a mobile phone opens the page. Since I'm …

0
99
Member Avatar for chrishea

I recently came across [URL="http://www.twilio.com/"]Twilio.com[/URL] that provides API facilities to implement voice or text capabilities through the internet. They aren't the first to provide this kind of service but the capability of the API and their pricing seem to make them worth looking at for anyone who has a need …

1
154
Member Avatar for kardklub

The code below displays a signature on the screen previously signed on the form before. It has now displayed the image as a png. How do i go about saving the image into a mysql database field so i can recover the picture as and when i need to / …

Member Avatar for kardklub
0
54
Member Avatar for MagicMedia

I'm having a bit of trouble replacing parts of a string. I'm using preg_replace and it works but it replaces everything in between. I need it to search for every match between the string. What I have so far: $message = 'I have a [color]red[/color] apple and a [color]blue[/color] car.'; …

Member Avatar for MagicMedia
0
100

The End.