I really don't know much about php, so I put this together piece by piece. I'm trying to figure out how to reply directly to the sender. So far, if I reply to a question, I end up replying to myself. Can anyone help?

start a session, blah blah data end a session.
set an expired cookie before deleting the session.

This test requires Microsoft Edge browser because it shows the cookie in the console. I can't see the cookie info in the Firefox console. To understand the question, you need to start and end a session and use Edge console to see the session cookie. When developer tools are enabled, view source opens the console. The debugger tab shows cookies in the left pane. I can see my session cookie listed throughout the session and i can watch the session id change (regenerate_id(true). However, when i destroy the session and set the cookie expiration, I still see a cookie. Shouldn't the cookie be deleted? why can i still see it with the last session id?

if you watch the session temp folder, you can see your session file disappear when you destroy the session. shouldn't the cookie disappear? is the cookie really invalid and Edge stores it until the browser closes? I think that this is a session cookie not persistent, so if the session is closed then the cookie should be deleted. When the cookie is not deleted, i worry that the code to expire the cookie is not correct.

I am a beginner, so I wonder if the cookie is still visible because the browser only deletes it when the browser is closed or maybe my code is not really deleting the cookie. I cannot view the cookie because i cannot find its location in Windows 10. I have no idea if the cookie is really being deleted or made to be invalid, then deleted when the browser closes.

I hope that someone understands this matter, it's driving me nuts. I expect to see the cookie disappear in the console.

Thanks.
]]>PHPphpBerlinerhttp://www.webdeveloper.com/forum/showthread.php?368711-PHP-Cookie-deletionPHP session problemshttp://www.webdeveloper.com/forum/showthread.php?368704-PHP-session-problems&goto=newpost
Mon, 12 Mar 2018 15:12:50 GMTDear forum, I am a PHP beginner and I am having trouble with sessions. Summarizing: I am a photographer building a portfolio site. I wish to use sessions with secure tokens to protect my contact form. I also wish to create a login system for clients with an invitation code to view my portfolio....Dear forum, I am a PHP beginner and I am having trouble with sessions. Summarizing: I am a photographer building a portfolio site. I wish to use sessions with secure tokens to protect my contact form. I also wish to create a login system for clients with an invitation code to view my portfolio. Thus, restricting the public to only interested clients and serious contact data.

I have installed xampp on Windows 10 for development of my site and testing. I've created the contact form and the session seems to be working well. However, yesterday I noticed that the TMP folder where session data is stored is filled with session files. I guess all of the files created while i've been testing. I had around 600 files. To my knowledge php is supposed to enact GC to clean this up. I figured my sessions are not properly managed. I added $_SESSION = array(); session_unset(); session_destroy(); where I want the session destroyed and it works! to my surprise. I now believe that my sessions are functioning correctly.

However, the session file is still in the TMP folder and not deleted after 24 minutes if you leave the contact page to view another page (or leave the site). I've just waited for 30 minutes now and the file is still in the TMP folder. GC is not clearing it. why not? this can be a problem because the TMP file could be filled with old session files consuming disk space. why isn't php deleting the files?

can I detect if the session is open, then delete it on other pages? the problem for me is also that I do not know how to handle a session for two different reasons. I want a contact form session and a login session. what if you were logged in, then view the contact form. I delete the session when the contact form is submitted. wouldn't this also delete the login session? thus, I gave the contact form a session_name('ContactSession'). How can I set a cookie for contact session pages only (path: '/contact/')?

i hope that all of this makes sense. summarize:
how to detect the open session and delete it. how to separate login session from contact page session and how to set a cookie valid only for a particular path.

I hope that someone can help me. I cannot find data like this anywhere. People only mention how to start a session and delete a session. I really need some help with this.

Thank You.
]]>PHPphpBerlinerhttp://www.webdeveloper.com/forum/showthread.php?368704-PHP-session-problemsUploading multiple images for one real estate propertyhttp://www.webdeveloper.com/forum/showthread.php?368703-Uploading-multiple-images-for-one-real-estate-property&goto=newpost
Mon, 12 Mar 2018 12:54:26 GMTHi everyone,
I am using a free script I downloading to list properties on my website. The problem is if I upload more than one image, only the last image show up. Can someone look at the code and see what may wrong with it? Thank you all in advance.
Here is what I believe is the relevant part...Hi everyone,
I am using a free script I downloading to list properties on my website. The problem is if I upload more than one image, only the last image show up. Can someone look at the code and see what may wrong with it? Thank you all in advance.

]]>PHPMayordomohttp://www.webdeveloper.com/forum/showthread.php?368703-Uploading-multiple-images-for-one-real-estate-propertyGet country calling code in PHPhttp://www.webdeveloper.com/forum/showthread.php?368689-Get-country-calling-code-in-PHP&goto=newpost
Fri, 09 Mar 2018 12:41:23 GMT
---------
and fetched input value named...]]>Countries and phones are detected by plugin like [intl-tel-input.com ]
I have HTML like

How to get value such as country calling codes not only phone numbers?

I have to store as PHP value also the specific country as it is a separate value like $_REQUEST['callingcodename']
]]>PHPtoplisekhttp://www.webdeveloper.com/forum/showthread.php?368689-Get-country-calling-code-in-PHPhttp://www.webdeveloper.com/forum/showthread.php?368686-RESOLVED-While-loop-only-showing-1-result&goto=newpost
Fri, 09 Mar 2018 08:14:31 GMTI have a script that checks for dupe values in db and loops through the result and echoes the value using json. However, it is only displaying 1 record instead of 3 which is being sent to php.
I would be grateful if someone could point out my error. Thanks
PHP:
---------
$boxitems =...I have a script that checks for dupe values in db and loops through the result and echoes the value using json. However, it is only displaying 1 record instead of 3 which is being sent to php.

]]>PHPploppyhttp://www.webdeveloper.com/forum/showthread.php?368686-RESOLVED-While-loop-only-showing-1-resultloop a form, and stopping for input each timehttp://www.webdeveloper.com/forum/showthread.php?368683-loop-a-form-and-stopping-for-input-each-time&goto=newpost
Fri, 09 Mar 2018 04:06:37 GMT';
echo 'Learning PHP ? Newbie at PHP. My excuse for my amateurish code. I have cut it down to its simplest form to post here. I have the following:

When I run test.php, it loops and displays the form 3 times.
Question: how can I make it stop each time and wait for me to click Submit.

Many thanks in advance.
]]>PHPdatalinehttp://www.webdeveloper.com/forum/showthread.php?368683-loop-a-form-and-stopping-for-input-each-timeConnection between 2 groupshttp://www.webdeveloper.com/forum/showthread.php?368670-Connection-between-2-groups&goto=newpost
Thu, 08 Mar 2018 09:40:22 GMTI have a social website with groups and events . Each group have 30 people maximum. All the groups are 100. What I want to do is : I want to create a button that will create events between that 2 groups. Example let's say we have 2 groups, group a and group b. Each group have button with the name "new event" when the group b press the "new event" button from the group a, if the group a accept it then I want to automatically create new page that will have access the group a and group b together to share photos, chat etc. How can I do that? If is possible. Right now I have WordPress buddypress community. Is not necessary to use WordPress. I can start from the begin. Any ideas?
]]>PHPPeteandhttp://www.webdeveloper.com/forum/showthread.php?368670-Connection-between-2-groupshttp://www.webdeveloper.com/forum/showthread.php?368662-websites-and-google-forms-urgent-plz&goto=newpost
Wed, 07 Mar 2018 13:09:44 GMTHi guys , how are you doing ? this is my first time in this forum and i hope i will get the help i need.
I'm a student and there is this thing called a project and my part is to help our school to add a new "thing" in its website. our school is sending every month some google forms to our gmail to evaluate some things , but the problem is , some students don't respond to that and they ignore these google forms .... So i'm charged to add some kind of a warning window when a student logged in his account in the school's website saying that he needs to fill the google forms in his gmail ad preventing him from doing anything on his account unless he does that... my first idea is to use the email confirmation concept , it looks to me the same , all i need right now is what do i have to learn so i can finish this project ??
and thank you all !!
]]>PHPzestiroshttp://www.webdeveloper.com/forum/showthread.php?368662-websites-and-google-forms-urgent-plzGood practices and coding stylehttp://www.webdeveloper.com/forum/showthread.php?368649-Good-practices-and-coding-style&goto=newpost
Tue, 06 Mar 2018 01:15:21 GMTHello guys. I'm new at this forum and I hope to stay learning here for a long time, and, in a future, be helpful to new programmers.

I've been practicing html and css; now I jumped to my first programming language: PHP.

I would like to learn how to properly code and all the good practices. I want to extrapolate all that learning to a new language in the future (maybe JavaScript)

Can someone recommend me an updated guide/documentation web?

Thanks and sorry for my english :)
]]>PHPWatermelonnablehttp://www.webdeveloper.com/forum/showthread.php?368649-Good-practices-and-coding-styleDownload pdf from databasehttp://www.webdeveloper.com/forum/showthread.php?368639-Download-pdf-from-database&goto=newpost
Sun, 04 Mar 2018 14:50:13 GMTI'm in the process of redisinging an application including the database and the way that it stores documents. I need to download a few documents from the old application, which is stored in a BLOB on a MySql database, but i cannot remember how i used to do that. I would swear that i use MySql workbench to do that. Anyway, i looked around google and found a couple of scripts that should do that but nothing happens when i run them.

Thanks for the help
]]>PHPdan3460http://www.webdeveloper.com/forum/showthread.php?368639-Download-pdf-from-databaseWhere does websites get their data without any APIS?http://www.webdeveloper.com/forum/showthread.php?368634-Where-does-websites-get-their-data-without-any-APIS&goto=newpost
Sat, 03 Mar 2018 14:04:28 GMTHello
I know this subject doesnt really fit into the PHP-section but I didnt know where to post it. Its not a technical question but I hope that someone have an asnwer for me anyway.
I have been trying to learn how to use APIs for a while and it is going pretty well. I would like to code a...Hello

I know this subject doesnt really fit into the PHP-section but I didnt know where to post it. Its not a technical question but I hope that someone have an asnwer for me anyway.

I have been trying to learn how to use APIs for a while and it is going pretty well. I would like to code a "TV-listings" website for the TV-channels in my country and I have been searching around to find the channels API to get the data to this but I cant find any of their APIs so I guess they have no APIs for their data? The thing is that there are alot of TV-listings websites in my country that have this exactly data that I need so my question is how/where does they get this data from since I cant find any APIs? Then after a while I actually found an API that provide this data(http://xmltv.se/). It actually provides this data for pretty much all tv-channels in the world. This API is developed and owned by a privte person. So my second question is, where does that API get its data from? I have been trying to wrap my head around this but I cant get to understand how/where everyone get their data from when there are no APIs to be found.
]]>PHPjag1http://www.webdeveloper.com/forum/showthread.php?368634-Where-does-websites-get-their-data-without-any-APISCan anyone detect the malware in this code? :)http://www.webdeveloper.com/forum/showthread.php?368628-Can-anyone-detect-the-malware-in-this-code-)&goto=newpost
Fri, 02 Mar 2018 08:57:14 GMTMy website just got shut down from Bluehost because they found a file that contained malware.
I removed the file and got activated at Bluehost again, however, now my site does not work because that file is missing. I therefore suspect that most of the file contains important functions, while...My website just got shut down from Bluehost because they found a file that contained malware.

I removed the file and got activated at Bluehost again, however, now my site does not work because that file is missing. I therefore suspect that most of the file contains important functions, while there has been some malware code secretly inserted into some section of the code. However - I am not a programmer and have no idea which section of the code could be malware.

Can anyone here find the malware code so that I can remove it? Then I can get my site up and running again :)

/*
* if debug - the constants are used to load the live color customizer (demo) and to remove the tf bar on ios devices
*/
if (TD_DEBUG_LIVE_THEME_STYLE) {
require_once('wp_booster/demo/td_theme_style.php' );
}

This forum only allowed me to post 10000 characters in one post, so I will post the other half of the file in the next post.
]]>PHPjohan23http://www.webdeveloper.com/forum/showthread.php?368628-Can-anyone-detect-the-malware-in-this-code-)Programmatically reading datahttp://www.webdeveloper.com/forum/showthread.php?368584-Programmatically-reading-data&goto=newpost
Wed, 21 Feb 2018 05:02:02 GMTI am trying to read in data which is not formatted in a very friendly way.
Below is a sample:
Code:
---------
Operation Code Desc............................... CWI ST Techs.... Billed Clocked Job Lab Sale Job Lab GP% Job Part Sale Job Part GP% Job POL Sale Job POL GP% Job Sub Sale Job...I am trying to read in data which is not formatted in a very friendly way.

Problems with this:
1. The field headers are not fixed so cannot set fixed width column counters
2. There are spaces in headings so cannot split headings by space to determine field widths

Is there any way to programatically determine column widths so I can the read and process the data on the second line?
]]>PHPphp-bgraderhttp://www.webdeveloper.com/forum/showthread.php?368584-Programmatically-reading-data