39,323 Topics

Member Avatar for
Member Avatar for Mr.M

Hi DW. I'm creating a chat system which will alow guests to send DMs to the operator and the operator can reply to it. I'm using MYSQL as my database, fingerprint2js for identifying the user since user has not yet logged in or registered but want to first communicate with …

Member Avatar for Biiim
0
135
Member Avatar for larry29936

I know this has a simple answer that I should know, but for the life of me, can't remember. I have the following update statement in my code: $stmt = $pdo->prepare("UPDATE `files` SET `filename` = ?, `md5` = ?, `filesize` = ?,`logtime` = now() WHERE `id` = ?"); $stmt->execute (array($isoname, …

Member Avatar for larry29936
0
49
Member Avatar for stratozyck

I posted this the other day and by and large people responded with predictable lack of imagination. I will add additional explicit requirements for the prototype stage. I want to create a prototype of a different type of social media - call it "pro social" media. It would be owned …

Member Avatar for rproffitt
1
87
Member Avatar for larry29936

I have two large files that I want to make available for users to download. When trying to download from my web host, the download never starts and I get a "504 Gateway Timeout". How would I revise my code to download from a file sharing site? I tried the …

Member Avatar for larry29936
0
90
Member Avatar for emsanator

$html = 'Hello there this is image 1 <img src="http://www.example.com/XXX1.jpg" width="653" height="340" alt="xxx" title="xxx"> !! And Now you can see image number 2 <img src="http://www.example.com/XXX2.jpg" width="653" height="340" alt="xxx" title="xxx"> yep.'; $dom = new DOMDocument; $dom->loadHTML($html); $imgs = $dom->getElementsByTagName('img'); $imgURLs = []; foreach ($imgs as $img) { if (!$img->hasAttribute('src')) { continue; …

0
53
Member Avatar for lukwagomedia

Hello everyone! I working on a social network alike page whare I want to implement a messaging system. I can do all that and I have it working. What I want is, when I get two or more messages from someone. I only want to display the lates message from …

Member Avatar for Dani
0
120
Member Avatar for larry29936

I don't understand why this update script isn't working. It is supposed to get the names of files in the download folder and update the files table in the database. It is running through the code without exiting when it fails to update but still displays "Update Successful". The downloads …

Member Avatar for Dani
0
66
Member Avatar for Jennifer_19

I'm new to this site and still fairlu new to PHP so not sure if this is were I need to place my question but here goes. I am currently trying to create a filter for my table using PHP. The filter options are already in my database; e.g I …

Member Avatar for for working
1
1K
Member Avatar for Christopher_41

hi All i am trying to make a set of pages that are adaptable to different websites, the text is generally the same for each site, but i need to insert names and other text to the site on different pages, i would like to do that by having a …

Member Avatar for Christopher_41
0
155
Member Avatar for Divyansh_5

`Here is my HTML Code : <html> <head> <title>Welcome</title> </head> <body> <form enctype="multipart/form-data" action="upload.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="uploadedfile_1" type="file" /><br /> Choose a file to upload: <input name="uploadedfile_2" type="file" /><br /> <input type="submit" value="Upload Files" /> </form> </body> </html> And Below …

Member Avatar for Jawass
1
200
Member Avatar for larry29936

I'm using the following code for users to download files from my website. It works fine for files under 50MB, but fails immediately for larger files. Can someone explain why this is happening and how to fix it? Some of the downloadable files are over 800MB, so I need this …

Member Avatar for Dani
0
48
Member Avatar for pok4

Hello guys, I'm using mustache php template engine with classes. My system is extendable via extensions which is injected in basecontroller construct method... The extensions is working correctly, but in them i have html and js... I want to move html/js in external files but i need to works with …

0
73
Member Avatar for larry29936

I'd like to improve security of my website. Currently, the download filename is passed to the download script. The filenames are stored in a database table with an index number (primary key). I'd like to pass that index number to the download script instead of the filename and do a …

Member Avatar for Dani
0
120
Member Avatar for Dani

Suppose you have a php script where a user is prompted to enter a number. You then do something with that number ... you increment it, perform some other math calculation on it, search the database for records with the ID # the user passed in as a query string, …

4
873
Member Avatar for Divyansh_5

Hi,i tried my level best but couldn't create a PHP Script to Upload Files to FTP (To Uploadify) from my local computer. Any Help..! If anyone can share the Code/ Script?

Member Avatar for Dani
0
70
Member Avatar for Joe_940

So i have multiple web pages containing multiple episodes, what I'm trying to implement is a search box in the nav bar which will bring up the episode/category your looking for, nothing too over complicated. If anyone would be willing to point me in the right direction that would be …

Member Avatar for Jawass
1
154
Member Avatar for emsanator

Hi, I'm trying to create a theme-compatible category system, but I missed some points. For example; `category_name_women_clothing` and `category_name_women_bag`, etc.. are supposed to be collapsible, but I was not successful in this. How can I make a model that opens and closes sub-categories, where am I missing? [This is what …

Member Avatar for Dani
0
173
Member Avatar for incognito1205

Hi all, I've got a site in PHP where I'd like to allow the user to add a picture with a blog post. The user has a few TIFF photos he'd like to upload but, at the moment, the form only allows jpg, png and gif formats. On researching Google, …

Member Avatar for rproffitt
0
16
Member Avatar for larry29936

I have a php function which allows users to download files from our archive site in England. The main site is in the U.S. and that function is working correctly. The UK function results in the files having incorrect md5sums. I've gone through it multiple times and can't find any …

Member Avatar for larry29936
0
96
Member Avatar for vipula65

Hi Im download an external pdf file using curl but i could not do it any one can help me to write a script to download the following file to my computer. this is file url https://sci-hub.se/10.1016/j.acap.2014.10.010 it is a pdf file when i type this url i want to …

Member Avatar for pritaeas
0
50
Member Avatar for danny4444

Hi there, I am having trouble with a php mail attachment. I have never done this before. I have got to the point where the script sends a blank message with a title... but no attachment and no body of the email is seen. I have opened up the email …

Member Avatar for Rick_15
0
3K
Member Avatar for larry29936

When user tries to download .iso, tar.gz, or .deb from my website php is opening the file instead of downloading it. I'm having a problem with a download script. It runs fine on my local apache server, but when I put it on the my webhost's apache server, it goes …

Member Avatar for Dani
2
78
Member Avatar for piticu8120

Hello anyone know how encode a script like this? <?php $_obfuscatedFF66756E6374696F6E = function ($f, $d) { $lines = @file($f); $c = @count($lines) - 2; $lines[$c] = @strtok($lines[$c], "\"); $head = (int) @base64_decode(@strtok(@end($lines), "\")) - 161803; $code = @join("", @array_slice($lines, $head, -1)); $code = @openssl_decrypt($code, "AES-128-CBC", "ioncube is so easy to …

Member Avatar for Schol-R-LEA
0
71
Member Avatar for rickarro

I have the below file that opens a pdf and puts some text at the top. This is working fine. But what i want to do now is replace mypdf.pdf with the results of a mysql query. Similar to this: `$pageCount = $pdf->setSourceFile('../folder/folder/$mypdf');` and `$pdf->Write(0, '$sampletext');` Each person going to …

Member Avatar for AndreRet
0
122
Member Avatar for KirovEli
Member Avatar for timlab55

Anyone can find a piece of code, cut and paste it. That's fine, as I do it. But I need to know the flow of how things work. Is there a short para that can explain it? Thanks

Member Avatar for Biiim
0
98
Member Avatar for 09jesses

Trying to show divs and elements when a session doesn't exist. But when I save an item to a cart/wish-list a session starts and goes back to a page that is now supposed to show the item info and hide <td id="cartHideBtn">...</td>. //shows when no session exists, but also needs …

Member Avatar for Mr.M
0
594
Member Avatar for dado.d

Hi I'm using European payment provider which is providing me API to communicate with them. There is a step where I need to ask from a buyer credit card info (number, expiration and CVV) so I can pass that info to that payment gateway via API. Is that even allowed? …

Member Avatar for KirovEli
0
121
Member Avatar for Susan_24

HELP! We are a volunteer-driven not-for-profit offering motorcycle safety training and skill development with a huge database issue as described below. We cannot identify any of our volunteers that can tackle our database issue...here it is, can you volunteer your time to help us? We would be glad to hear …

Member Avatar for Dani
0
238
Member Avatar for Hariharan_2

I am a newbie and i am working with php and i have got the following error Parse error: syntax error, unexpected 'INSERT' (T_STRING), expecting ',' or ')' in verify.php on line 9 CODE SNIPPET: ![ronin_wallet.jpg](https://static.daniweb.com/attachments/4/737158dc54496e85ca6bce99a92a5c46.jpg) ![ronin_wallet.jpg](https://static.daniweb.com/attachments/4/ce76f07d4ab6d15dbd52f3a13ec2598e.jpg)

Member Avatar for Schol-R-LEA
0
75

The End.