824 Recommended Topics

Remove Filter
Member Avatar for
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 …

Web Development mysql php
Member Avatar for Dani
0
66
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; …

Web Development php
0
53
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 …

Web Development file-system php
Member Avatar for Dani
0
48
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, …

Web Development php
4
844
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 …

Web Development php sql
Member Avatar for Jawass
1
151
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 …

Web Development mysql php
Member Avatar for Dani
0
173
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 …

Web Development php
Member Avatar for Dani
0
120
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 …

Web Development html-css javascript php
0
73
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?

Web Development file-system php
Member Avatar for Dani
0
70
Member Avatar for nextsmm

I'm currently building a SaaS product, it's just me working on it, and its been a long process. I need to generate revenue and created an Instagram account to find clients that need web & graphic services, I'm thinking of making it a recurring monthly package that costs about 100$ …

Web Development
Member Avatar for Dani
0
46
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 …

Web Development php
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 …

Web Development php
Member Avatar for Dani
2
78
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 …

Web Development file-system php
Member Avatar for larry29936
0
96
Member Avatar for hfortenberry

Hello, I have a Read More type of link at the bottom of a short list of test News items and am trying to center it horizontally under the list. I think I have the CSS correct but it appears something is inhibiting it. I know I've got the correct …

Web Development html-css
0
46
Member Avatar for KirovEli
Member Avatar for Arun_47
2
266
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 …

Web Development mysql php
Member Avatar for AndreRet
0
120
Member Avatar for emsanator

I create the product's information and variations with Ajax, but it is not possible to click on the variations, what could be the reason? <form> <div class="form-group"> <p class="mb-5"> Size: <strong><span id="sizeCaption">--</span> US</strong> </p> <div id="item_variation_size" class="mb-2"></div> <div class="form-row mb-7"> <div class="col-12 col-lg"> <button type="button" class="btn btn-block btn-dark mb-2 addToCart">Add …

Web Development javascript jquery
Member Avatar for Biiim
0
109
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

Web Development html-css php
Member Avatar for Biiim
0
98
Member Avatar for Valeriia

Hey, I'm searching for a simple 2-level popup menu that could change color and size with the help of CSS. I want the menu to appear on the left of the page, be opened by clicking on the burger icon, and be closed by clicking the cross or someplace outside …

Web Development html-css
Member Avatar for AndreRet
0
86
Member Avatar for kevindougans

![Screen_Shot_2022-02-18_at_19_31_27.jpg](https://static.daniweb.com/attachments/0/9d7516d5e671e13eb3a629920d7e4e35.jpg) I'm trying to make a form all in one line instead of over multiple lines/height. It can be seen on https://grapefruit-crocodile-hdl3.squarespace.com/ (pwd: contagency) It's supposed to look the attached image, any pointers appreciated. I've got this far, so far: form { display: flex; } .form-item.field.email, .form-item.field.select, .form-button-wrapper.field.submit { display: …

Web Development html-css
Member Avatar for Dani
1
180
Member Avatar for Valeriia

Hey, I own a site that has two versions - mobile and desktop. I’ve implemented Schema.org to the desktop version of the site. Should I add it on the mobile site as well? What do you think?

Web Development wordpress
Member Avatar for Dani
1
40
Member Avatar for Mr.M

Hi DW. I want to get a message only on that specific targeted tab id. If the messege is sent to tab id 2, it should run a script under tab id 2 to update that page displayed or for simplicity log on tab id 2 console the message. The …

Web Development javascript web-browser
Member Avatar for Mr.M
0
184
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 …

Web Development javascript php
Member Avatar for Mr.M
0
579
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? …

Web Development php
Member Avatar for KirovEli
0
121
Member Avatar for joshl_1995

Hello Daniweb, I was wondering how come a cURL API I made to call a function from my other website (but on the same hosting plan) no longer works. I even tried making a test API to call in the same directory, eg... :api.php <?php die(json_encode("something")); ?> :testing.php <?php $url …

Web Development php
Member Avatar for Dani
0
3K
Member Avatar for Bidesh
Member Avatar for Arsslan

Hi, Please can some one tell me is Cloud ERP Safe to use for your business ? THanks

Web Development javascript jquery php
Member Avatar for TyaSuite
0
118
Member Avatar for v1

If you plan to attract new customers, enhance sales, build your brand image or improve the customer experience, you need to own a mobile app.

Web Development html-css php seo
Member Avatar for Dani
0
87
Member Avatar for matei_

I am trying to use my platform's API by using PHP and cURL, but I have a problem when I try to `PATCH` some custom attributes. As the title says, I am getting an API error with code: 422 and the message: `Validation failed.`, because the `attributes` field has `Invalid …

Web Development php
Member Avatar for pritaeas
0
172
Member Avatar for erum

i have below stuff an i write each result in excel sheet . i have an issue to write in excel sheet of each sql result drop table #table_Northwind create table #table_Northwind ( RowID int not null identity(1,1) primary key, column_name varchar(50) ) insert into #table_Northwind (column_name) (SELECT TABLE_NAME FROM …

Web Development
Member Avatar for creed3
0
71

The End.