473,800 Members | 3,052 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changes between some lines

I have some files with urls and the only change between the urls is
the id, which stands as an argument but how can I see the id it in the
easist way?
Dec 25 '07 #1
3 1050
On Dec 25, 8:09 pm, The87Boy <the87...@gmail .comwrote:
I have some files with urls and the only change between the urls is
the id, which stands as an argument
As an argument in the url, as you e.g. can see on this url:
http://localhost/index.php?cmd=14&id=3325253&from=2
but how can I see the id it in the easist way?
Dec 25 '07 #2
On Tue, 25 Dec 2007 20:21:38 +0100, The87Boy <th******@gmail .comwrote:
On Dec 25, 8:09 pm, The87Boy <the87...@gmail .comwrote:
>I have some files with urls and the only change between the urls is
the id, which stands as an argument

As an argument in the url, as you e.g. can see on this url:
http://localhost/index.php?cmd=14&id=3325253&from=2
>but how can I see the id it in the easist way?
In the request itself:
$_GET['id']

Parsing the url as a string in another file (if you'd like to examine the
target in another script for instance):
$id = false;
$url = 'http://localhost/index.php?cmd=1 4&id=3325253&fr om=2';
$querystring = parse_url($url, PHP_URL_QUERY);
if(!empty($quer ystring)){
parse_str($quer ystring,$array) ;
$id = isset($array['id']) ? $array['id'] : false;
}
--
Rik Wasmus
Dec 27 '07 #3
On Dec 27, 6:06 pm, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
In the request itself:
$_GET['id']
I already know this one, but it is possible, it is not localhost, and
there why I can not use this one
Parsing the url as a string in another file (if you'd like to examine the
target in another script for instance):
$id = false;
$url = 'http://localhost/index.php?cmd=1 4&id=3325253&fr om=2';
$querystring = parse_url($url, PHP_URL_QUERY);
if(!empty($quer ystring)){
parse_str($quer ystring,$array) ;
$id = isset($array['id']) ? $array['id'] : false;}
This was actually what I was searching for, but I did not know, there
was a PHP function, there why my question
Dec 28 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1927
by: Robert | last post by:
I have an application with custom configuration sections in it's app.config file. Here's a shortened excerpt: <monitors> <monitor type="SystemMonitor.Monitors.NetworkAvailabilityMonitor,SystemMonitor"> <notifiers> <notifier type="SystemMonitor.Notifiers.MessageBoxNotifier,SystemMonitor" />
4
5359
by: Glenn Owens | last post by:
I have a DataGrid web control which I've dynamically populated with template columns to be used for bulk-editting. Generally, all of the columns are textbox and/or dropdownlist child controls. Currently everything is working. I can find the updated rows/columns by parsing the posted data collection against the DataGrid DataSource. However, when there is a large amount of DataGridItems (rows) the update processing can take a while. ...
2
1406
by: Simon Harvey | last post by:
Hi all, Is there any easy way to check a field for calues that have changed on a post back. So the page is sent to the user, the user changes some values and I need to know which ones changed. Is the only way to do this to go through all the fields and check them against their old values. In which case, would I need to store the values in
9
3218
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My questions are below... "David Good" wrote: > We have a network running both Win2k and Win2k3 webservers and our web sites > reside on a UNC network share that happens to be a Network Appliance NAS.
8
1589
by: Shimon Sim | last post by:
Hi I converted my existing ASP.NET project to VS.NET 2005. Build gives me some warnings about config file. I have custom section definition in web.config. Were there any changes in this for ASP.NET 2.0. Where can I see what was change and how I can migrate? Thank you Shimon.
2
4928
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is being updated by some other process through remoting. When the page loads, I init the tree, and in my browser I can see the initialized tree. The problem is that every time that I receive update to tree from the remote process,
335
11893
by: extrudedaluminiu | last post by:
Hi, Is there any group in the manner of the C++ Boost group that works on the evolution of the C language? Or is there any group that performs an equivalent function? Thanks, -vs
2
1668
by: Brian Hoops | last post by:
I have a windows forms datagrid and I would like to be able to recognize when changes have been made in order to perform the update. I tried the following, which works well, but only if the user changes rows at some point. If they enter the grid, change a cell, and then click close it does not see the change. The same holds true if they enter the grid, change a cell, arrow right or left to a different cell and change that value. If...
4
7838
by: ARC | last post by:
Hello all, I didn't use to have this problem in Access 97, but in 2007 (and maybe other versions of access after 97), if you have a form that has a subform, and you click the close button, you always get the following dialog: "Save changes to the following objects?" I tried putting a saverecord command prior to the close, but that had no affect. I have found a work around, but maybe I am making this too
2
1236
by: =?Utf-8?B?cmF1bGF2aQ==?= | last post by:
c# vs 2008 what's the best way... need to apply changes to some methods in many source files (C#.cs). (Pseudocode) here is how is done manually: 1. open the source (thisClass.cs) 2. find/locate in source socde 3. change lines (could be extensive code) 4. save
0
9694
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9553
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10281
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10256
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9095
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7584
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4152
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3765
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.